Browse Source

AMBARI-15224. On Trunk, UI has missing names for components which have alert information associated with them (alexantonenko)

Alex Antonenko 9 năm trước cách đây
mục cha
commit
067cc6223b

+ 1 - 0
ambari-web/app/controllers/global/update_controller.js

@@ -458,6 +458,7 @@ App.UpdateController = Em.Controller.extend({
       realUrl = '/components/?' + flumeHandlerParam + atsHandlerParam + haComponents +
         'ServiceComponentInfo/category=MASTER&fields=' +
         'ServiceComponentInfo/service_name,' +
+        'host_components/HostRoles/display_name,' +
         'host_components/HostRoles/host_name,' +
         'host_components/HostRoles/state,' +
         'host_components/HostRoles/maintenance_state,' +

+ 1 - 0
ambari-web/app/mappers/service_metrics_mapper.js

@@ -150,6 +150,7 @@ App.serviceMetricsMapper = App.QuickDataMapper.create({
   config3: {
     work_status: 'HostRoles.state',
     passive_state: 'HostRoles.maintenance_state',
+    display_name: 'HostRoles.display_name',
     component_name: 'HostRoles.component_name',
     host_id: 'HostRoles.host_name',
     host_name: 'HostRoles.host_name',