AMBARI-20158 - Host filter is missing for admin user after upgrading to ambari 2.4.2 or above (rzang via jaimin)
Change-Id: I985c4423b7bec84aeda9410ab06f8465f1976b11 Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8397eb59 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8397eb59 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8397eb59 Branch: refs/heads/AMBARI-2.4.2.16 Commit: 8397eb5914f7da462bb9846f3616780b60fd2b7c Parents: 83748a5 Author: Richard Zang <[email protected]> Authored: Thu Feb 23 15:58:18 2017 -0800 Committer: Jaimin Jetly <[email protected]> Committed: Wed Mar 1 12:23:18 2017 -0800 ---------------------------------------------------------------------- ambari-web/app/config.js | 1 - ambari-web/app/controllers/experimental.js | 2 +- ambari-web/app/templates/main/host/combo_search_box.hbs | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/8397eb59/ambari-web/app/config.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/config.js b/ambari-web/app/config.js index aae323f..7a521c6 100644 --- a/ambari-web/app/config.js +++ b/ambari-web/app/config.js @@ -79,7 +79,6 @@ App.supports = { showPageLoadTime: false, skipComponentStartAfterInstall: false, preInstallChecks: false, - hostComboSearchBox: true, serviceAutoStart: false, logSearch: true, redhatSatellite: false, http://git-wip-us.apache.org/repos/asf/ambari/blob/8397eb59/ambari-web/app/controllers/experimental.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/experimental.js b/ambari-web/app/controllers/experimental.js index 3642cd9..6b108c2 100644 --- a/ambari-web/app/controllers/experimental.js +++ b/ambari-web/app/controllers/experimental.js @@ -35,7 +35,7 @@ App.ExperimentalController = Em.Controller.extend(App.UserPref, { getUserPrefSuccessCallback: function (response, request, data) { if (response) { - App.set('supports', response); + App.set('supports', $.merge(response, App.get('supports'))); } }, http://git-wip-us.apache.org/repos/asf/ambari/blob/8397eb59/ambari-web/app/templates/main/host/combo_search_box.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/main/host/combo_search_box.hbs b/ambari-web/app/templates/main/host/combo_search_box.hbs index 6b118a9..6830e4b 100644 --- a/ambari-web/app/templates/main/host/combo_search_box.hbs +++ b/ambari-web/app/templates/main/host/combo_search_box.hbs @@ -15,7 +15,6 @@ * See the License for the specific language governing permissions and * limitations under the License. }} -{{#if App.supports.hostComboSearchBox}} <br/> {{#if view.errMsg}} <div class="alert alert-error"> @@ -23,4 +22,3 @@ </div> {{/if}} <div id="combo_search_box"></div> -{{/if}} \ No newline at end of file
