incubator-atlas git commit: ATLAS-1938: updated search UI to avoid unnecessary calls on Refresh button click

2017-07-10 Thread madhan
Repository: incubator-atlas
Updated Branches:
  refs/heads/master ee8c81df4 -> b13501825


ATLAS-1938: updated search UI to avoid unnecessary calls on Refresh button click

Signed-off-by: Madhan Neethiraj 


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

Branch: refs/heads/master
Commit: b13501825028ea6c8ede8f6eacdf97bf58feacb8
Parents: ee8c81d
Author: Kalyani 
Authored: Fri Jul 7 16:09:36 2017 +0530
Committer: Madhan Neethiraj 
Committed: Mon Jul 10 06:35:29 2017 -0700

--
 dashboardv2/public/js/views/search/SearchLayoutView.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/b1350182/dashboardv2/public/js/views/search/SearchLayoutView.js
--
diff --git a/dashboardv2/public/js/views/search/SearchLayoutView.js 
b/dashboardv2/public/js/views/search/SearchLayoutView.js
index 7ac394c..c77d8a7 100644
--- a/dashboardv2/public/js/views/search/SearchLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchLayoutView.js
@@ -235,7 +235,9 @@ define(['require',
 },
 onRefreshButton: function() {
 this.fetchCollection();
-if (this.searchVent) {
+//to check url query param contain type or not 
+var checkURLValue = Utils.getUrlState.getQueryParams(this.url);
+if (this.searchVent && (_.has(checkURLValue, "tag") || 
_.has(checkURLValue, "type") || _.has(checkURLValue, "query"))) {
 this.searchVent.trigger('search:refresh');
 }
 },



incubator-atlas git commit: ATLAS-1938: updated search UI to avoid unnecessary calls on Refresh button click

2017-07-10 Thread madhan
Repository: incubator-atlas
Updated Branches:
  refs/heads/0.8-incubating 92f30b0e3 -> 688064fbf


ATLAS-1938: updated search UI to avoid unnecessary calls on Refresh button click

Signed-off-by: Madhan Neethiraj 
(cherry picked from commit b13501825028ea6c8ede8f6eacdf97bf58feacb8)


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/688064fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/688064fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/688064fb

Branch: refs/heads/0.8-incubating
Commit: 688064fbfbfb08dfb74a85b51b63e28f9493eeae
Parents: 92f30b0
Author: Kalyani 
Authored: Fri Jul 7 16:09:36 2017 +0530
Committer: Madhan Neethiraj 
Committed: Mon Jul 10 06:53:59 2017 -0700

--
 dashboardv2/public/js/views/search/SearchLayoutView.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/688064fb/dashboardv2/public/js/views/search/SearchLayoutView.js
--
diff --git a/dashboardv2/public/js/views/search/SearchLayoutView.js 
b/dashboardv2/public/js/views/search/SearchLayoutView.js
index 7ac394c..c77d8a7 100644
--- a/dashboardv2/public/js/views/search/SearchLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchLayoutView.js
@@ -235,7 +235,9 @@ define(['require',
 },
 onRefreshButton: function() {
 this.fetchCollection();
-if (this.searchVent) {
+//to check url query param contain type or not 
+var checkURLValue = Utils.getUrlState.getQueryParams(this.url);
+if (this.searchVent && (_.has(checkURLValue, "tag") || 
_.has(checkURLValue, "type") || _.has(checkURLValue, "query"))) {
 this.searchVent.trigger('search:refresh');
 }
 },