This is an automated email from the ASF dual-hosted git repository.
atkach pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8d455f4 AMBARI-23676 In Select Target Host page as part of Move
Master wizard, the host holding the component is not present in list of options
8d455f4 is described below
commit 8d455f495d6f7d36e6d4485fa2199967bf9a145f
Author: Andrii Tkach <[email protected]>
AuthorDate: Wed Apr 25 12:51:50 2018 +0300
AMBARI-23676 In Select Target Host page as part of Move Master wizard, the
host holding the component is not present in list of options
---
.../controllers/main/service/reassign/step2_controller.js | 9 ---------
ambari-web/app/models/client_component.js | 14 +++++++-------
2 files changed, 7 insertions(+), 16 deletions(-)
diff --git
a/ambari-web/app/controllers/main/service/reassign/step2_controller.js
b/ambari-web/app/controllers/main/service/reassign/step2_controller.js
index 828f967..f40508c 100644
--- a/ambari-web/app/controllers/main/service/reassign/step2_controller.js
+++ b/ambari-web/app/controllers/main/service/reassign/step2_controller.js
@@ -47,15 +47,6 @@ App.ReassignMasterWizardStep2Controller =
Em.Controller.extend(App.AssignMasterC
return [];
}.property('content.reassign.component_name',
'servicesMastersToShow.length'),
- renderComponents: function(masterComponents) {
- this._super(masterComponents);
- const currentMasterHost = this.get('content.reassign.host_id');
- const currentServiceMaster =
this.get('selectedServicesMasters').findProperty('selectedHost',
currentMasterHost);
- const freeHosts = this.get('hosts').rejectProperty('host_name',
this.get('content.reassign.host_id'));
- currentServiceMaster.set('selectedHost',
freeHosts.mapProperty('host_name')[0]);
- this.set('hosts', freeHosts);
- },
-
/**
* Assignment is valid only if for one master component host was changed
* @returns {boolean}
diff --git a/ambari-web/app/models/client_component.js
b/ambari-web/app/models/client_component.js
index 8914290..f802f76 100644
--- a/ambari-web/app/models/client_component.js
+++ b/ambari-web/app/models/client_component.js
@@ -23,13 +23,13 @@ App.ClientComponent = DS.Model.extend({
service: DS.belongsTo('App.Service'),
componentName: DS.attr('string'),
displayName: DS.attr('string'),
- installedCount: DS.attr('number'),
- installedAndMaintenanceOffCount: DS.attr('number'),
- installFailedCount: DS.attr('number'),
- initCount: DS.attr('number'),
- unknownCount: DS.attr('number'),
- startedCount: DS.attr('number'),
- totalCount: DS.attr('number'),
+ installedCount: DS.attr('number', {defaultValue: 0}),
+ installedAndMaintenanceOffCount: DS.attr('number', {defaultValue: 0}),
+ installFailedCount: DS.attr('number', {defaultValue: 0}),
+ initCount: DS.attr('number', {defaultValue: 0}),
+ unknownCount: DS.attr('number', {defaultValue: 0}),
+ startedCount: DS.attr('number', {defaultValue: 0}),
+ totalCount: DS.attr('number', {defaultValue: 0}),
stackInfo: DS.belongsTo('App.StackServiceComponent'),
hostNames: DS.attr('array'),
staleConfigHosts: DS.attr('array'),
--
To stop receiving notification emails like this one, please contact
[email protected].