ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject ambari git commit: AMBARI-21913. UI part: Server returns 500 error for create config group request (akovalenko)
Date Fri, 08 Sep 2017 13:26:14 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 f1bd9af01 -> 82881689c


AMBARI-21913. UI part: Server returns 500 error for create config group request (akovalenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/82881689
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/82881689
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/82881689

Branch: refs/heads/branch-2.6
Commit: 82881689c2afe3060fac1a0c6e44fcc5f36fb66d
Parents: f1bd9af
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Fri Sep 8 14:19:55 2017 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Fri Sep 8 16:26:03 2017 +0300

----------------------------------------------------------------------
 ambari-web/app/mixins/common/configs/configs_saver.js            | 1 +
 ambari-web/app/mixins/main/service/configs/config_overridable.js | 2 ++
 2 files changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/82881689/ambari-web/app/mixins/common/configs/configs_saver.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/configs/configs_saver.js b/ambari-web/app/mixins/common/configs/configs_saver.js
index bdb5df2..d2a8f59 100644
--- a/ambari-web/app/mixins/common/configs/configs_saver.js
+++ b/ambari-web/app/mixins/common/configs/configs_saver.js
@@ -574,6 +574,7 @@ App.ConfigsSaverMixin = Em.Mixin.create({
         "cluster_name": App.get('clusterName') || this.get('clusterName'),
         "group_name": group.name,
         "tag": group.service_id,
+        "service_name": group.service_id,
         "description": group.description,
         "hosts": groupHosts,
         "service_config_version_note": configVersionNote || "",

http://git-wip-us.apache.org/repos/asf/ambari/blob/82881689/ambari-web/app/mixins/main/service/configs/config_overridable.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/main/service/configs/config_overridable.js b/ambari-web/app/mixins/main/service/configs/config_overridable.js
index 4a9d012..b621e67 100644
--- a/ambari-web/app/mixins/main/service/configs/config_overridable.js
+++ b/ambari-web/app/mixins/main/service/configs/config_overridable.js
@@ -239,6 +239,7 @@ App.ConfigOverridable = Em.Mixin.create({
         "group_name": newConfigGroupData.name,
         "tag": newConfigGroupData.service_id,
         "description": newConfigGroupData.description,
+        "service_name": newConfigGroupData.service_id,
         "desired_configs": newConfigGroupData.desired_configs.map(function (cst) {
           var type = Em.get(cst, 'site') || Em.get(cst, 'type');
           return {
@@ -300,6 +301,7 @@ App.ConfigOverridable = Em.Mixin.create({
         group_name: configGroup.get('name'),
         description: configGroup.get('description'),
         tag: configGroup.get('service.id'),
+        service_name: configGroup.get('service.id'),
         hosts: configGroup.get('hosts').map(function (h) {
           return {
             host_name: h


Mime
View raw message