You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2018/05/03 15:34:40 UTC

[ambari] branch trunk updated: AMBARI-23752 Hide SmartSense master components in HDF stack

This is an automated email from the ASF dual-hosted git repository.

atkach pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new e7e44aa  AMBARI-23752 Hide SmartSense master components in HDF stack
e7e44aa is described below

commit e7e44aa6e788486f71b371a751cd383966adb109
Author: Andrii Tkach <at...@apache.org>
AuthorDate: Thu May 3 16:55:40 2018 +0300

    AMBARI-23752 Hide SmartSense master components in HDF stack
---
 ambari-web/app/controllers/installer.js | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js
index 09c90f9..d2a2de2 100644
--- a/ambari-web/app/controllers/installer.js
+++ b/ambari-web/app/controllers/installer.js
@@ -160,6 +160,21 @@ App.InstallerController = App.WizardController.extend(App.Persist, {
   },
 
   /**
+   * TODO remove when functionality to skip master components ready
+   * @param jsonData
+   */
+  loadServiceComponentsSuccessCallback: function(jsonData) {
+    if (App.Stack.find().findProperty('isSelected', true).get('stackName') === 'HDF') {
+      jsonData.items.forEach((service) => {
+        service.components = service.components.reject((component) => {
+          return ['ACTIVITY_ANALYZER', 'ACTIVITY_EXPLORER'].contains(component.StackServiceComponents.component_name);
+        });
+      });
+    }
+    this._super(jsonData);
+  },
+
+  /**
    * total set of hosts registered to cluster, analog of App.Host model,
    * used in Installer wizard until hosts are installed
    */

-- 
To stop receiving notification emails like this one, please contact
atkach@apache.org.