Repository: ambari Updated Branches: refs/heads/branch-2.5 f35667653 -> ff412f9f8
AMBARI-19701. Provide minimal call context from UI when making stack advisor calls. <fix1> (rzang) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ff412f9f Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ff412f9f Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ff412f9f Branch: refs/heads/branch-2.5 Commit: ff412f9f84e47466aae34b0dc0e8674fda905671 Parents: f356676 Author: Richard Zang <[email protected]> Authored: Wed Jan 25 16:57:24 2017 -0800 Committer: Richard Zang <[email protected]> Committed: Wed Jan 25 16:57:24 2017 -0800 ---------------------------------------------------------------------- ambari-web/app/mixins/common/configs/enhanced_configs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ff412f9f/ambari-web/app/mixins/common/configs/enhanced_configs.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mixins/common/configs/enhanced_configs.js b/ambari-web/app/mixins/common/configs/enhanced_configs.js index 4bdc25f..882f69d 100644 --- a/ambari-web/app/mixins/common/configs/enhanced_configs.js +++ b/ambari-web/app/mixins/common/configs/enhanced_configs.js @@ -245,17 +245,17 @@ App.EnhancedConfigsMixin = Em.Mixin.create(App.ConfigWithOverrideRecommendationP var controllerName = this.get('content.controllerName'); var changes = dataToSend.changed_configurations; if (changes) { - dataToSend['user-context'] = {"operation" : "EditConfig"}; + dataToSend['user_context'] = {"operation" : "EditConfig"}; } else { if (!controllerName) { - dataToSend['user-context'] = {"operation" : "RecommendAttribute"}; + dataToSend['user_context'] = {"operation" : "RecommendAttribute"}; } else if (controllerName == 'addServiceController') { - dataToSend['user-context'] = { + dataToSend['user_context'] = { "operation" : "AddService", "operation_details" : (this.get('content.services')|| []).filterProperty('isSelected').filterProperty('isInstalled', false).mapProperty('serviceName').join(',') }; } else if (controllerName == 'installerController'){ - dataToSend['user-context'] = {"operation" : "ClusterCreate"}; + dataToSend['user_context'] = {"operation" : "ClusterCreate"}; } } },
