You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rz...@apache.org on 2017/01/24 23:21:46 UTC
ambari git commit: AMBARI-19688 - Ubuntu14 base url fields on "Select
version" page are duplicates (rzang)
Repository: ambari
Updated Branches:
refs/heads/branch-2.5 adc63c05a -> 337a651fa
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/337a651f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/337a651f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/337a651f
Branch: refs/heads/branch-2.5
Commit: 337a651fa0a1cfdab79d71b06d3c7976e16e6992
Parents: adc63c0
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:15:47 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/337a651f/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);
+ }
}
},