This is an automated email from the ASF dual-hosted git repository. ababiichuk 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 04e120a AMBARI-25094 Remove Flume Live widget from Ambari, alongside the Flume service during upgrade to HDP3. (ababiichuk) 04e120a is described below commit 04e120a9334f21773cf0ce3fc94c84ff4c0da11f Author: ababiichuk <ababiic...@hortonworks.com> AuthorDate: Wed Jan 9 20:52:54 2019 +0200 AMBARI-25094 Remove Flume Live widget from Ambari, alongside the Flume service during upgrade to HDP3. (ababiichuk) --- ambari-web/app/views/main/dashboard/widgets.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ambari-web/app/views/main/dashboard/widgets.js b/ambari-web/app/views/main/dashboard/widgets.js index bcc219f..76c3f81 100644 --- a/ambari-web/app/views/main/dashboard/widgets.js +++ b/ambari-web/app/views/main/dashboard/widgets.js @@ -539,7 +539,7 @@ App.MainDashboardWidgetsView = Em.View.extend(App.Persist, App.LocalStorage, App }, /** - * check if stack has upgraded from HDP 1.0 to 2.0 OR add/delete services. + * Check if any services with widgets were added or deleted. * Update the value on server if true. */ checkServicesChange: function () { @@ -560,6 +560,12 @@ App.MainDashboardWidgetsView = Em.View.extend(App.Persist, App.LocalStorage, App newValue[state].push(id); } }); + userPreferences[state].forEach(id => { + if (!defaultPreferences.visible.contains(id) && !defaultPreferences.hidden.contains(id)) { + isChanged = true; + newValue[state] = newValue[state].without(id); + } + }); Object.keys(defaultPreferences.groups).forEach(groupName => { const groupPreferences = defaultPreferences.groups[groupName], subGroupForAllItems = groupPreferences['*'],