You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by me...@apache.org on 2017/06/15 11:29:09 UTC

ranger git commit: RANGER-1642-Policies listed on 2nd page and onwards of Policy Landing page don't reflect any edits on them

Repository: ranger
Updated Branches:
  refs/heads/master 57783900c -> a94de1104


RANGER-1642-Policies listed on 2nd page and onwards of Policy Landing page don't reflect any edits on them


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

Branch: refs/heads/master
Commit: a94de11049c498cb93a96f00eae51af817b56d6b
Parents: 5778390
Author: Nitin Galave <ni...@gmail.com>
Authored: Wed Jun 14 17:57:31 2017 +0530
Committer: Mehul Parikh <me...@apache.org>
Committed: Thu Jun 15 16:58:27 2017 +0530

----------------------------------------------------------------------
 security-admin/src/main/webapp/scripts/controllers/Controller.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/a94de110/security-admin/src/main/webapp/scripts/controllers/Controller.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/controllers/Controller.js b/security-admin/src/main/webapp/scripts/controllers/Controller.js
index 041c6b7..2be915f 100755
--- a/security-admin/src/main/webapp/scripts/controllers/Controller.js
+++ b/security-admin/src/main/webapp/scripts/controllers/Controller.js
@@ -309,9 +309,13 @@ define(function(require) {
 		   var view 			= require('views/policies/RangerPolicyCreate');
 		   var RangerService	= require('models/RangerService');
 		   var RangerPolicy		= require('models/RangerPolicy');
+		   var RangerPolicyList  = require('collections/RangerPolicyList');
+		   var XAUtil			 = require('utils/XAUtils');
 		   
 		   var rangerService = new RangerService({id : serviceId});
 		   var rangerPolicy = new RangerPolicy({ id : policyId});
+		   rangerPolicy.collection =new RangerPolicyList();
+		   rangerPolicy.collection.url = XAUtil.getServicePoliciesURL(serviceId);
 		   rangerService.fetch({
 			   cache : false,
 			   async : false,