ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject git commit: ARGUS-107:Fixed HBase Table lookup spinning forever
Date Thu, 09 Oct 2014 01:14:05 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master 7b1b3e436 -> e93b05fdf


ARGUS-107:Fixed HBase Table lookup spinning forever

Signed-off-by: sneethiraj <sneethir@apache.org>


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

Branch: refs/heads/master
Commit: e93b05fdf8af2cc8918dc647e0d1579f7a84131f
Parents: 7b1b3e4
Author: vperiasamy <vperiasamy@hortonworks.com>
Authored: Wed Oct 8 18:56:53 2014 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Wed Oct 8 21:13:37 2014 -0400

----------------------------------------------------------------------
 .../src/main/webapp/scripts/views/hbase/HbasePolicyForm.js   | 6 ++++--
 .../src/main/webapp/scripts/views/hive/HivePolicyForm.js     | 6 ++++--
 .../src/main/webapp/scripts/views/knox/KnoxPolicyForm.js     | 8 +++++---
 .../src/main/webapp/scripts/views/storm/StormPolicyForm.js   | 6 ++++--
 4 files changed, 17 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/e93b05fd/security-admin/src/main/webapp/scripts/views/hbase/HbasePolicyForm.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/hbase/HbasePolicyForm.js b/security-admin/src/main/webapp/scripts/views/hbase/HbasePolicyForm.js
index 6c87190..4a8ecc1 100644
--- a/security-admin/src/main/webapp/scripts/views/hbase/HbasePolicyForm.js
+++ b/security-admin/src/main/webapp/scripts/views/hbase/HbasePolicyForm.js
@@ -321,8 +321,10 @@ define(function(require){
 						},
 						results: function (data, page) { 
 							var results = [];
-							if(data.resultSize != "0"){
-								results = data.vXStrings.map(function(m, i){	return {id : m.value, text: m.value};
});
+							if(!_.isUndefined(data)){
+								if(data.resultSize != "0"){
+									results = data.vXStrings.map(function(m, i){	return {id : m.value, text: m.value};
});
+								}
 							}
 							return { 
 								results : results

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/e93b05fd/security-admin/src/main/webapp/scripts/views/hive/HivePolicyForm.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/hive/HivePolicyForm.js b/security-admin/src/main/webapp/scripts/views/hive/HivePolicyForm.js
index 5f8cc85..c1ac9d9 100644
--- a/security-admin/src/main/webapp/scripts/views/hive/HivePolicyForm.js
+++ b/security-admin/src/main/webapp/scripts/views/hive/HivePolicyForm.js
@@ -499,8 +499,10 @@ define(function(require){
 						},
 						results: function (data, page) { 
 							var results = [];
-							if(data.resultSize != "0"){
-								results = data.vXStrings.map(function(m, i){	return {id : m.value, text: m.value};
});
+							if(!_.isUndefined(data)){
+								if(data.resultSize != "0"){
+									results = data.vXStrings.map(function(m, i){	return {id : m.value, text: m.value};
});
+								}
 							}
 							return { 
 								results : results

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/e93b05fd/security-admin/src/main/webapp/scripts/views/knox/KnoxPolicyForm.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/knox/KnoxPolicyForm.js b/security-admin/src/main/webapp/scripts/views/knox/KnoxPolicyForm.js
index 645df48..b34f132 100644
--- a/security-admin/src/main/webapp/scripts/views/knox/KnoxPolicyForm.js
+++ b/security-admin/src/main/webapp/scripts/views/knox/KnoxPolicyForm.js
@@ -296,9 +296,11 @@ define(function(require){
 						},
 						results: function (data, page) { 
 							var results = [];
-							if(data.resultSize != "0"){
-								results = data.vXStrings.map(function(m, i){	return {id : m.value, text: m.value};
});
-							}
+							if(!_.isUndefined(data)){
+								if(data.resultSize != "0"){
+									results = data.vXStrings.map(function(m, i){	return {id : m.value, text: m.value};
});
+								}
+							}	
 							return { 
 								results : results
 							};

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/e93b05fd/security-admin/src/main/webapp/scripts/views/storm/StormPolicyForm.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/storm/StormPolicyForm.js b/security-admin/src/main/webapp/scripts/views/storm/StormPolicyForm.js
index 564cab6..3ce9606 100644
--- a/security-admin/src/main/webapp/scripts/views/storm/StormPolicyForm.js
+++ b/security-admin/src/main/webapp/scripts/views/storm/StormPolicyForm.js
@@ -296,8 +296,10 @@ define(function(require){
 						},
 						results: function (data, page) { 
 							var results = [];
-							if(data.resultSize != "0"){
-								results = data.vXStrings.map(function(m, i){	return {id : m.value, text: m.value};
});
+							if(!_.isUndefined(data)){
+								if(data.resultSize != "0"){
+									results = data.vXStrings.map(function(m, i){	return {id : m.value, text: m.value};
});
+								}
 							}
 							return { 
 								results : results


Mime
View raw message