Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8909181D4 for ; Fri, 18 Mar 2016 13:11:33 +0000 (UTC) Received: (qmail 58196 invoked by uid 500); 18 Mar 2016 13:11:33 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 58115 invoked by uid 500); 18 Mar 2016 13:11:33 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 58089 invoked by uid 99); 18 Mar 2016 13:11:33 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2016 13:11:33 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B4D422C1F6C for ; Fri, 18 Mar 2016 13:11:33 +0000 (UTC) Date: Fri, 18 Mar 2016 13:11:33 +0000 (UTC) From: "Di Li (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-15443) Make Host bulk command menu item list stack driven instead of a hardcoded list in UI code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-15443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Di Li updated AMBARI-15443: --------------------------- Attachment: AMBARI-15443.patch > Make Host bulk command menu item list stack driven instead of a hardcoded list in UI code > ----------------------------------------------------------------------------------------- > > Key: AMBARI-15443 > URL: https://issues.apache.org/jira/browse/AMBARI-15443 > Project: Ambari > Issue Type: Improvement > Components: ambari-server, ambari-web > Affects Versions: trunk > Reporter: Di Li > Assignee: Di Li > Fix For: trunk > > Attachments: AMBARI-15443.patch > > > The items described here are the ones on the Hosts tab, in the Actions drop-down list where the UI shows entries such as All Hosts. If user mouses over the All Hosts, it shows a sub-list including Hosts and slave components. > The slave component items are hardcoded in hosts_table_menu_view.js as shown below. This jira is to put this info into each service's metainfo.xml so that the slave component items can be stack driven. > components: function () { > var serviceNames = App.Service.find().mapProperty('serviceName'); > var menuItems = [ > O.create({ > serviceName: 'HDFS', > componentName: 'DATANODE', > masterComponentName: 'NAMENODE', > componentNameFormatted: Em.I18n.t('dashboard.services.hdfs.datanodes') > }), > O.create({ > serviceName: 'YARN', > componentName: 'NODEMANAGER', > masterComponentName: 'RESOURCEMANAGER', > componentNameFormatted: Em.I18n.t('dashboard.services.yarn.nodeManagers') > }), > O.create({ > serviceName: 'HBASE', > componentName: 'HBASE_REGIONSERVER', > masterComponentName: 'HBASE_MASTER', > componentNameFormatted: Em.I18n.t('dashboard.services.hbase.regionServers') > }), > O.create({ > serviceName: 'STORM', > componentName: 'SUPERVISOR', > masterComponentName: 'SUPERVISOR', > componentNameFormatted: Em.I18n.t('dashboard.services.storm.supervisors') > })]; > return menuItems.filter(function (item) { > return serviceNames.contains(item.serviceName); > }); > }.property(), -- This message was sent by Atlassian JIRA (v6.3.4#6332)