AMBARI-19688 - Ubuntu14 base url fields on "Select version" page are duplicates (rzang)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b3a070c0 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b3a070c0 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b3a070c0 Branch: refs/heads/branch-dev-patch-upgrade Commit: b3a070c0011a542504c9fd586b26bccfaf1568f1 Parents: 6046200 Author: Richard Zang <rz...@apache.org> Authored: Tue Jan 24 15:15:47 2017 -0800 Committer: Richard Zang <rz...@apache.org> Committed: Tue Jan 24 15:28:38 2017 -0800 ---------------------------------------------------------------------- ambari-web/app/controllers/installer.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/b3a070c0/ambari-web/app/controllers/installer.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js index 44e7907..35056f7 100644 --- a/ambari-web/app/controllers/installer.js +++ b/ambari-web/app/controllers/installer.js @@ -21,7 +21,7 @@ var App = require('app'); var stringUtils = require('utils/string_utils'); var validator = require('utils/validator'); -App.InstallerController = App.WizardController.extend({ +App.InstallerController = App.WizardController.extend(App.UserPref, { name: 'installerController', @@ -754,6 +754,16 @@ App.InstallerController = App.WizardController.extend({ this.setSelected(data.stackInfo.isStacksExistInDb); } } + // log diagnosis data for abnormal number of repos + var post_diagnosis = false; + data.versionDefinition.operating_systems.map(function(item) { + if (item.repositories.length > 2) { + post_diagnosis = true; + } + }); + if (post_diagnosis) { + this.postUserPref('stack_response_diagnosis', data); + } } },