You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Di Li (JIRA)" <ji...@apache.org> on 2016/04/05 21:04:25 UTC

[jira] [Created] (AMBARI-15719) Make list of reassignable components stack driven instead of hardcoding them in the UI code

Di Li created AMBARI-15719:
------------------------------

             Summary: Make list of reassignable components stack driven instead of hardcoding them in the UI code
                 Key: AMBARI-15719
                 URL: https://issues.apache.org/jira/browse/AMBARI-15719
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server, ambari-web
    Affects Versions: trunk
            Reporter: Di Li
             Fix For: trunk


When a component is reassignable, the Ambari web UI adds the "Move" menu item to the component menu on the host page.

The logic on whether a component should be displayed with the "Move" menu item is currently controlled by the following hardcoded list.

/** @property {Boolean} isReassignable - component supports reassign action **/
  isReassignable: function() {
    return ['NAMENODE', 'SECONDARY_NAMENODE', 'JOBTRACKER', 'RESOURCEMANAGER', 'APP_TIMELINE_SERVER', 'OOZIE_SERVER', 'WEBHCAT_SERVER', 'HIVE_SERVER', 'HIVE_METASTORE', 'MYSQL_SERVER', 'METRICS_COLLECTOR'].contains(this.get('componentName'));
  }.property('componentName'),

We should make the list stack driven by specify whether a component is reassignable via a flag in the metainfo.xml.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)