[14/50] [abbrv] ambari git commit: AMBARI-21724 Hosts filters work incorrectly. (atkach)

2017-10-09 Thread jaimin
AMBARI-21724 Hosts filters work incorrectly. (atkach)

(cherry picked from commit 52daee8fa02b071383083884305bcc10564bb4d4)

Change-Id: I75d812edec08b25c4f61a0672becb8451cd38f4e


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

Branch: refs/heads/2.5-maint
Commit: fd3379f2fd92164c53b539cfc5a7770c1898e16a
Parents: 4f101bd
Author: Andrii Tkach 
Authored: Wed Aug 16 14:49:20 2017 +0300
Committer: atk...@apache.org 
Committed: Wed Aug 16 13:06:36 2017 +

--
 ambari-web/app/mappers/hosts_mapper.js |  2 ++
 ambari-web/app/models/host.js  |  2 ++
 ambari-web/app/views/main/host.js  | 10 ++
 3 files changed, 14 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/fd3379f2/ambari-web/app/mappers/hosts_mapper.js
--
diff --git a/ambari-web/app/mappers/hosts_mapper.js 
b/ambari-web/app/mappers/hosts_mapper.js
index 5042e67..a2d64bf 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -206,6 +206,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 parsedItem.not_started_components = notStartedComponents;
 parsedItem.components_in_passive_state = componentsInPassiveState;
 parsedItem.components_with_stale_configs = componentsWithStaleConfigs;
+parsedItem.is_filtered = true;
 
 hostIds[item.Hosts.host_name] = parsedItem;
 
@@ -224,6 +225,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 
   //"itemTotal" present only for Hosts page request
   if (!Em.isNone(json.itemTotal)) {
+App.Host.find().setEach('isFiltered', false);
 App.Host.find().clear();
 //App.HostComponent.find contains master components which requested 
across the app hence it should not be cleared
   }

http://git-wip-us.apache.org/repos/asf/ambari/blob/fd3379f2/ambari-web/app/models/host.js
--
diff --git a/ambari-web/app/models/host.js b/ambari-web/app/models/host.js
index 58ffd41..69e43ba 100644
--- a/ambari-web/app/models/host.js
+++ b/ambari-web/app/models/host.js
@@ -55,6 +55,8 @@ App.Host = DS.Model.extend({
   index: DS.attr('number'),
   stackVersions: DS.hasMany('App.HostStackVersion'),
 
+  isFiltered: DS.attr('boolean'),
+
   /**
* Is host checked at the main Hosts page
*/

http://git-wip-us.apache.org/repos/asf/ambari/blob/fd3379f2/ambari-web/app/views/main/host.js
--
diff --git a/ambari-web/app/views/main/host.js 
b/ambari-web/app/views/main/host.js
index 52692cc..273fd10 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -50,6 +50,16 @@ App.MainHostView = 
App.TableView.extend(App.TableServerViewMixin, {
*/
   contentBinding: 'controller.content',
 
+  filteredContent: [],
+
+  filteredContentObserver: function() {
+Em.run.once(this, this.setFilteredContentOnce);
+  }.observes('content.@each'),
+
+  setFilteredContentOnce: function() {
+this.set('filteredContent', 
this.get('content').filterProperty('isFiltered'));
+  },
+
   onRequestErrorHandler: function() {
 this.set('requestError', null);
 this.set('filteringComplete', true);



[07/51] [abbrv] ambari git commit: AMBARI-21724 Hosts filters work incorrectly. (atkach)

2017-08-22 Thread lpuskas
AMBARI-21724 Hosts filters work incorrectly. (atkach)


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

Branch: refs/heads/feature-branch-AMBARI-21307
Commit: f2379a4468de071c3fc1dea2de58f53e4a86913f
Parents: fc8dd78
Author: Andrii Tkach 
Authored: Wed Aug 16 15:39:10 2017 +0300
Committer: Andrii Tkach 
Committed: Wed Aug 16 15:39:10 2017 +0300

--
 ambari-web/app/mappers/hosts_mapper.js |  2 ++
 ambari-web/app/models/host.js  |  2 ++
 ambari-web/app/views/main/host.js  | 10 ++
 3 files changed, 14 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/f2379a44/ambari-web/app/mappers/hosts_mapper.js
--
diff --git a/ambari-web/app/mappers/hosts_mapper.js 
b/ambari-web/app/mappers/hosts_mapper.js
index c2c69ca..784c48a 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -206,6 +206,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 parsedItem.not_started_components = notStartedComponents;
 parsedItem.components_in_passive_state = componentsInPassiveState;
 parsedItem.components_with_stale_configs = componentsWithStaleConfigs;
+parsedItem.is_filtered = true;
 
 hostIds[item.Hosts.host_name] = parsedItem;
 
@@ -224,6 +225,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 
   //"itemTotal" present only for Hosts page request
   if (!Em.isNone(json.itemTotal)) {
+App.Host.find().setEach('isFiltered', false);
 App.Host.find().clear();
 //App.HostComponent.find contains master components which requested 
across the app hence it should not be cleared
   }

http://git-wip-us.apache.org/repos/asf/ambari/blob/f2379a44/ambari-web/app/models/host.js
--
diff --git a/ambari-web/app/models/host.js b/ambari-web/app/models/host.js
index 58ffd41..69e43ba 100644
--- a/ambari-web/app/models/host.js
+++ b/ambari-web/app/models/host.js
@@ -55,6 +55,8 @@ App.Host = DS.Model.extend({
   index: DS.attr('number'),
   stackVersions: DS.hasMany('App.HostStackVersion'),
 
+  isFiltered: DS.attr('boolean'),
+
   /**
* Is host checked at the main Hosts page
*/

http://git-wip-us.apache.org/repos/asf/ambari/blob/f2379a44/ambari-web/app/views/main/host.js
--
diff --git a/ambari-web/app/views/main/host.js 
b/ambari-web/app/views/main/host.js
index 78eb82b..5c4048b 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -50,6 +50,16 @@ App.MainHostView = 
App.TableView.extend(App.TableServerViewMixin, {
*/
   contentBinding: 'controller.content',
 
+  filteredContent: [],
+
+  filteredContentObserver: function() {
+Em.run.once(this, this.setFilteredContentOnce);
+  }.observes('content.@each'),
+
+  setFilteredContentOnce: function() {
+this.set('filteredContent', 
this.get('content').filterProperty('isFiltered'));
+  },
+
   onRequestErrorHandler: function() {
 this.set('requestError', null);
 this.set('filteringComplete', true);



[12/18] ambari git commit: AMBARI-21724 Hosts filters work incorrectly. (atkach)

2017-08-17 Thread jonathanhurley
AMBARI-21724 Hosts filters work incorrectly. (atkach)


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

Branch: refs/heads/branch-feature-AMBARI-21450
Commit: ba9ab71ed7463b9a4d02b4dc279979856afbd7f3
Parents: c126b37
Author: Andrii Tkach 
Authored: Thu Aug 17 10:35:43 2017 +0300
Committer: Andrii Tkach 
Committed: Thu Aug 17 10:36:06 2017 +0300

--
 ambari-web/app/mappers/hosts_mapper.js |  2 ++
 ambari-web/app/models/host.js  |  2 ++
 ambari-web/app/views/main/host.js  | 10 ++
 3 files changed, 14 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/ba9ab71e/ambari-web/app/mappers/hosts_mapper.js
--
diff --git a/ambari-web/app/mappers/hosts_mapper.js 
b/ambari-web/app/mappers/hosts_mapper.js
index 5042e67..a2d64bf 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -206,6 +206,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 parsedItem.not_started_components = notStartedComponents;
 parsedItem.components_in_passive_state = componentsInPassiveState;
 parsedItem.components_with_stale_configs = componentsWithStaleConfigs;
+parsedItem.is_filtered = true;
 
 hostIds[item.Hosts.host_name] = parsedItem;
 
@@ -224,6 +225,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 
   //"itemTotal" present only for Hosts page request
   if (!Em.isNone(json.itemTotal)) {
+App.Host.find().setEach('isFiltered', false);
 App.Host.find().clear();
 //App.HostComponent.find contains master components which requested 
across the app hence it should not be cleared
   }

http://git-wip-us.apache.org/repos/asf/ambari/blob/ba9ab71e/ambari-web/app/models/host.js
--
diff --git a/ambari-web/app/models/host.js b/ambari-web/app/models/host.js
index 58ffd41..69e43ba 100644
--- a/ambari-web/app/models/host.js
+++ b/ambari-web/app/models/host.js
@@ -55,6 +55,8 @@ App.Host = DS.Model.extend({
   index: DS.attr('number'),
   stackVersions: DS.hasMany('App.HostStackVersion'),
 
+  isFiltered: DS.attr('boolean'),
+
   /**
* Is host checked at the main Hosts page
*/

http://git-wip-us.apache.org/repos/asf/ambari/blob/ba9ab71e/ambari-web/app/views/main/host.js
--
diff --git a/ambari-web/app/views/main/host.js 
b/ambari-web/app/views/main/host.js
index 52692cc..273fd10 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -50,6 +50,16 @@ App.MainHostView = 
App.TableView.extend(App.TableServerViewMixin, {
*/
   contentBinding: 'controller.content',
 
+  filteredContent: [],
+
+  filteredContentObserver: function() {
+Em.run.once(this, this.setFilteredContentOnce);
+  }.observes('content.@each'),
+
+  setFilteredContentOnce: function() {
+this.set('filteredContent', 
this.get('content').filterProperty('isFiltered'));
+  },
+
   onRequestErrorHandler: function() {
 this.set('requestError', null);
 this.set('filteringComplete', true);



[21/32] ambari git commit: AMBARI-21724 Hosts filters work incorrectly. (atkach)

2017-08-17 Thread ababiichuk
AMBARI-21724 Hosts filters work incorrectly. (atkach)


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

Branch: refs/heads/branch-feature-logsearch-ui
Commit: f2379a4468de071c3fc1dea2de58f53e4a86913f
Parents: fc8dd78
Author: Andrii Tkach 
Authored: Wed Aug 16 15:39:10 2017 +0300
Committer: Andrii Tkach 
Committed: Wed Aug 16 15:39:10 2017 +0300

--
 ambari-web/app/mappers/hosts_mapper.js |  2 ++
 ambari-web/app/models/host.js  |  2 ++
 ambari-web/app/views/main/host.js  | 10 ++
 3 files changed, 14 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/f2379a44/ambari-web/app/mappers/hosts_mapper.js
--
diff --git a/ambari-web/app/mappers/hosts_mapper.js 
b/ambari-web/app/mappers/hosts_mapper.js
index c2c69ca..784c48a 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -206,6 +206,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 parsedItem.not_started_components = notStartedComponents;
 parsedItem.components_in_passive_state = componentsInPassiveState;
 parsedItem.components_with_stale_configs = componentsWithStaleConfigs;
+parsedItem.is_filtered = true;
 
 hostIds[item.Hosts.host_name] = parsedItem;
 
@@ -224,6 +225,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 
   //"itemTotal" present only for Hosts page request
   if (!Em.isNone(json.itemTotal)) {
+App.Host.find().setEach('isFiltered', false);
 App.Host.find().clear();
 //App.HostComponent.find contains master components which requested 
across the app hence it should not be cleared
   }

http://git-wip-us.apache.org/repos/asf/ambari/blob/f2379a44/ambari-web/app/models/host.js
--
diff --git a/ambari-web/app/models/host.js b/ambari-web/app/models/host.js
index 58ffd41..69e43ba 100644
--- a/ambari-web/app/models/host.js
+++ b/ambari-web/app/models/host.js
@@ -55,6 +55,8 @@ App.Host = DS.Model.extend({
   index: DS.attr('number'),
   stackVersions: DS.hasMany('App.HostStackVersion'),
 
+  isFiltered: DS.attr('boolean'),
+
   /**
* Is host checked at the main Hosts page
*/

http://git-wip-us.apache.org/repos/asf/ambari/blob/f2379a44/ambari-web/app/views/main/host.js
--
diff --git a/ambari-web/app/views/main/host.js 
b/ambari-web/app/views/main/host.js
index 78eb82b..5c4048b 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -50,6 +50,16 @@ App.MainHostView = 
App.TableView.extend(App.TableServerViewMixin, {
*/
   contentBinding: 'controller.content',
 
+  filteredContent: [],
+
+  filteredContentObserver: function() {
+Em.run.once(this, this.setFilteredContentOnce);
+  }.observes('content.@each'),
+
+  setFilteredContentOnce: function() {
+this.set('filteredContent', 
this.get('content').filterProperty('isFiltered'));
+  },
+
   onRequestErrorHandler: function() {
 this.set('requestError', null);
 this.set('filteringComplete', true);



ambari git commit: AMBARI-21724 Hosts filters work incorrectly. (atkach)

2017-08-17 Thread atkach
Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 c126b37e6 -> ba9ab71ed


AMBARI-21724 Hosts filters work incorrectly. (atkach)


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

Branch: refs/heads/branch-2.6
Commit: ba9ab71ed7463b9a4d02b4dc279979856afbd7f3
Parents: c126b37
Author: Andrii Tkach 
Authored: Thu Aug 17 10:35:43 2017 +0300
Committer: Andrii Tkach 
Committed: Thu Aug 17 10:36:06 2017 +0300

--
 ambari-web/app/mappers/hosts_mapper.js |  2 ++
 ambari-web/app/models/host.js  |  2 ++
 ambari-web/app/views/main/host.js  | 10 ++
 3 files changed, 14 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/ba9ab71e/ambari-web/app/mappers/hosts_mapper.js
--
diff --git a/ambari-web/app/mappers/hosts_mapper.js 
b/ambari-web/app/mappers/hosts_mapper.js
index 5042e67..a2d64bf 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -206,6 +206,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 parsedItem.not_started_components = notStartedComponents;
 parsedItem.components_in_passive_state = componentsInPassiveState;
 parsedItem.components_with_stale_configs = componentsWithStaleConfigs;
+parsedItem.is_filtered = true;
 
 hostIds[item.Hosts.host_name] = parsedItem;
 
@@ -224,6 +225,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 
   //"itemTotal" present only for Hosts page request
   if (!Em.isNone(json.itemTotal)) {
+App.Host.find().setEach('isFiltered', false);
 App.Host.find().clear();
 //App.HostComponent.find contains master components which requested 
across the app hence it should not be cleared
   }

http://git-wip-us.apache.org/repos/asf/ambari/blob/ba9ab71e/ambari-web/app/models/host.js
--
diff --git a/ambari-web/app/models/host.js b/ambari-web/app/models/host.js
index 58ffd41..69e43ba 100644
--- a/ambari-web/app/models/host.js
+++ b/ambari-web/app/models/host.js
@@ -55,6 +55,8 @@ App.Host = DS.Model.extend({
   index: DS.attr('number'),
   stackVersions: DS.hasMany('App.HostStackVersion'),
 
+  isFiltered: DS.attr('boolean'),
+
   /**
* Is host checked at the main Hosts page
*/

http://git-wip-us.apache.org/repos/asf/ambari/blob/ba9ab71e/ambari-web/app/views/main/host.js
--
diff --git a/ambari-web/app/views/main/host.js 
b/ambari-web/app/views/main/host.js
index 52692cc..273fd10 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -50,6 +50,16 @@ App.MainHostView = 
App.TableView.extend(App.TableServerViewMixin, {
*/
   contentBinding: 'controller.content',
 
+  filteredContent: [],
+
+  filteredContentObserver: function() {
+Em.run.once(this, this.setFilteredContentOnce);
+  }.observes('content.@each'),
+
+  setFilteredContentOnce: function() {
+this.set('filteredContent', 
this.get('content').filterProperty('isFiltered'));
+  },
+
   onRequestErrorHandler: function() {
 this.set('requestError', null);
 this.set('filteringComplete', true);



ambari git commit: AMBARI-21724 Hosts filters work incorrectly. (atkach)

2017-08-16 Thread atkach
Repository: ambari
Updated Branches:
  refs/heads/trunk fc8dd78e1 -> f2379a446


AMBARI-21724 Hosts filters work incorrectly. (atkach)


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

Branch: refs/heads/trunk
Commit: f2379a4468de071c3fc1dea2de58f53e4a86913f
Parents: fc8dd78
Author: Andrii Tkach 
Authored: Wed Aug 16 15:39:10 2017 +0300
Committer: Andrii Tkach 
Committed: Wed Aug 16 15:39:10 2017 +0300

--
 ambari-web/app/mappers/hosts_mapper.js |  2 ++
 ambari-web/app/models/host.js  |  2 ++
 ambari-web/app/views/main/host.js  | 10 ++
 3 files changed, 14 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/f2379a44/ambari-web/app/mappers/hosts_mapper.js
--
diff --git a/ambari-web/app/mappers/hosts_mapper.js 
b/ambari-web/app/mappers/hosts_mapper.js
index c2c69ca..784c48a 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -206,6 +206,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 parsedItem.not_started_components = notStartedComponents;
 parsedItem.components_in_passive_state = componentsInPassiveState;
 parsedItem.components_with_stale_configs = componentsWithStaleConfigs;
+parsedItem.is_filtered = true;
 
 hostIds[item.Hosts.host_name] = parsedItem;
 
@@ -224,6 +225,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 
   //"itemTotal" present only for Hosts page request
   if (!Em.isNone(json.itemTotal)) {
+App.Host.find().setEach('isFiltered', false);
 App.Host.find().clear();
 //App.HostComponent.find contains master components which requested 
across the app hence it should not be cleared
   }

http://git-wip-us.apache.org/repos/asf/ambari/blob/f2379a44/ambari-web/app/models/host.js
--
diff --git a/ambari-web/app/models/host.js b/ambari-web/app/models/host.js
index 58ffd41..69e43ba 100644
--- a/ambari-web/app/models/host.js
+++ b/ambari-web/app/models/host.js
@@ -55,6 +55,8 @@ App.Host = DS.Model.extend({
   index: DS.attr('number'),
   stackVersions: DS.hasMany('App.HostStackVersion'),
 
+  isFiltered: DS.attr('boolean'),
+
   /**
* Is host checked at the main Hosts page
*/

http://git-wip-us.apache.org/repos/asf/ambari/blob/f2379a44/ambari-web/app/views/main/host.js
--
diff --git a/ambari-web/app/views/main/host.js 
b/ambari-web/app/views/main/host.js
index 78eb82b..5c4048b 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -50,6 +50,16 @@ App.MainHostView = 
App.TableView.extend(App.TableServerViewMixin, {
*/
   contentBinding: 'controller.content',
 
+  filteredContent: [],
+
+  filteredContentObserver: function() {
+Em.run.once(this, this.setFilteredContentOnce);
+  }.observes('content.@each'),
+
+  setFilteredContentOnce: function() {
+this.set('filteredContent', 
this.get('content').filterProperty('isFiltered'));
+  },
+
   onRequestErrorHandler: function() {
 this.set('requestError', null);
 this.set('filteringComplete', true);



ambari git commit: AMBARI-21724 Hosts filters work incorrectly. (atkach)

2017-08-16 Thread atkach
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 640fefb21 -> 52daee8fa


AMBARI-21724 Hosts filters work incorrectly. (atkach)


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

Branch: refs/heads/branch-2.5
Commit: 52daee8fa02b071383083884305bcc10564bb4d4
Parents: 640fefb
Author: Andrii Tkach 
Authored: Wed Aug 16 14:49:20 2017 +0300
Committer: Andrii Tkach 
Committed: Wed Aug 16 15:31:42 2017 +0300

--
 ambari-web/app/mappers/hosts_mapper.js |  2 ++
 ambari-web/app/models/host.js  |  2 ++
 ambari-web/app/views/main/host.js  | 10 ++
 3 files changed, 14 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/52daee8f/ambari-web/app/mappers/hosts_mapper.js
--
diff --git a/ambari-web/app/mappers/hosts_mapper.js 
b/ambari-web/app/mappers/hosts_mapper.js
index 5042e67..a2d64bf 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -206,6 +206,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 parsedItem.not_started_components = notStartedComponents;
 parsedItem.components_in_passive_state = componentsInPassiveState;
 parsedItem.components_with_stale_configs = componentsWithStaleConfigs;
+parsedItem.is_filtered = true;
 
 hostIds[item.Hosts.host_name] = parsedItem;
 
@@ -224,6 +225,7 @@ App.hostsMapper = App.QuickDataMapper.create({
 
   //"itemTotal" present only for Hosts page request
   if (!Em.isNone(json.itemTotal)) {
+App.Host.find().setEach('isFiltered', false);
 App.Host.find().clear();
 //App.HostComponent.find contains master components which requested 
across the app hence it should not be cleared
   }

http://git-wip-us.apache.org/repos/asf/ambari/blob/52daee8f/ambari-web/app/models/host.js
--
diff --git a/ambari-web/app/models/host.js b/ambari-web/app/models/host.js
index 58ffd41..69e43ba 100644
--- a/ambari-web/app/models/host.js
+++ b/ambari-web/app/models/host.js
@@ -55,6 +55,8 @@ App.Host = DS.Model.extend({
   index: DS.attr('number'),
   stackVersions: DS.hasMany('App.HostStackVersion'),
 
+  isFiltered: DS.attr('boolean'),
+
   /**
* Is host checked at the main Hosts page
*/

http://git-wip-us.apache.org/repos/asf/ambari/blob/52daee8f/ambari-web/app/views/main/host.js
--
diff --git a/ambari-web/app/views/main/host.js 
b/ambari-web/app/views/main/host.js
index 52692cc..273fd10 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -50,6 +50,16 @@ App.MainHostView = 
App.TableView.extend(App.TableServerViewMixin, {
*/
   contentBinding: 'controller.content',
 
+  filteredContent: [],
+
+  filteredContentObserver: function() {
+Em.run.once(this, this.setFilteredContentOnce);
+  }.observes('content.@each'),
+
+  setFilteredContentOnce: function() {
+this.set('filteredContent', 
this.get('content').filterProperty('isFiltered'));
+  },
+
   onRequestErrorHandler: function() {
 this.set('requestError', null);
 this.set('filteringComplete', true);