ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From me...@apache.org
Subject ranger git commit: RANGER-2250-Service configs fields are not showing for atlas service form page
Date Wed, 17 Oct 2018 04:21:07 GMT
Repository: ranger
Updated Branches:
  refs/heads/ranger-1.1 9e783c5b0 -> fcdbd738f


RANGER-2250-Service configs fields are not showing for atlas service form page

Signed-off-by: Mehul Parikh <mehul@apache.org>


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

Branch: refs/heads/ranger-1.1
Commit: fcdbd738f80eca7d1c1976523ac3bb9d526f3e78
Parents: 9e783c5
Author: ni3galave <nitin.galave@gmail.com>
Authored: Tue Oct 16 18:16:35 2018 +0530
Committer: Mehul Parikh <mehul@apache.org>
Committed: Wed Oct 17 09:50:34 2018 +0530

----------------------------------------------------------------------
 .../src/main/webapp/scripts/models/BackboneFormDataType.js      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/fcdbd738/security-admin/src/main/webapp/scripts/models/BackboneFormDataType.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/models/BackboneFormDataType.js b/security-admin/src/main/webapp/scripts/models/BackboneFormDataType.js
index 22a418d..1ae2aef 100644
--- a/security-admin/src/main/webapp/scripts/models/BackboneFormDataType.js
+++ b/security-admin/src/main/webapp/scripts/models/BackboneFormDataType.js
@@ -72,9 +72,10 @@ define(function(require) {
 			configs = getResourceConfigs(configs);
 			configs = _.sortBy(configs, function(m){ return m.itemId });
 			configs = _.filter(configs, function(m){
-				if(! _.isUndefined(m.uiHint) && ! XAUtils.hideIfNull(m, form)){
-					return m;
+				if(m.uiHint && !_.isEmpty(m.uiHint) && XAUtils.hideIfNull(m, form)){
+					return;
 				}
+				return m;
 			})
 			var samelevelFieldCreated = [];
 			_.each(configs, function(v, k,config) {


Mime
View raw message