This is an automated email from the ASF dual-hosted git repository.
sneethir pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 7ee520ae8 RANGER-4260: UI fix for initial load of policies for Add
Permissions
7ee520ae8 is described below
commit 7ee520ae8e9a3995f5edc74cea2cdb2ebe6f1ff6
Author: stalin.nadar <[email protected]>
AuthorDate: Thu Jun 1 12:16:52 2023 +0530
RANGER-4260: UI fix for initial load of policies for Add Permissions
Signed-off-by: Selvamohan Neethiraj <[email protected]>
---
security-admin/src/main/webapp/scripts/views/policies/PermissionList.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
index ecd59cc07..ca3db854d 100644
--- a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
+++ b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
@@ -1035,7 +1035,7 @@ define(function(require) {
this.collection.add(new Backbone.Model())
}
this.storeResourceRef = [];
- var resourceDefByPolicyType =
this.getResourceDefByPolicyType();
+ var resourceDefByPolicyType =
_.sortBy(this.getResourceDefByPolicyType(), 'itemId');
if(!this.model.isNew()){
_.each(_.union([this.model.get('resources')],
this.model.get('additionalResources')), function(obj, index){
var resourceNames = Object.keys(obj);