-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/75271/
-----------------------------------------------------------

(Updated Nov. 19, 2024, 7:01 a.m.)


Review request for ranger, Madhan Neethiraj and Pradeep Agrawal.


Changes
-------

Made pruning unused policy attributes while storing policies in cache at all 
times, previously pruning was missing during deltas/policy updates. And as 
well, currently retrieving and setting policy meta time data from db while 
returning policies if the flag is set


Bugs: RANGER-4996
    https://issues.apache.org/jira/browse/RANGER-4996


Repository: ranger


Description
-------

RANGER-4996: Made meta attributes fields in policy rest api response 
configurable for retrieval


Diffs (updated)
-----

  agents-common/src/main/java/org/apache/ranger/plugin/store/ServiceStore.java 
97072391e 
  security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java 
0dee87734 
  
security-admin/src/main/java/org/apache/ranger/common/RangerServicePoliciesCache.java
 c8d1e5d08 
  security-admin/src/main/java/org/apache/ranger/rest/PublicAPIsv2.java 
b93b63f85 
  security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java 
ce3a95766 
  
security-admin/src/main/java/org/apache/ranger/service/RangerBaseModelService.java
 26f76578e 
  security-admin/src/main/resources/conf.dist/ranger-admin-default-site.xml 
1af339010 


Diff: https://reviews.apache.org/r/75271/diff/2/

Changes: https://reviews.apache.org/r/75271/diff/1-2/


Testing
-------

Tested the /service/public/v2/api/policy rest api from swagger and as well as 
from postman and verified that createTime, updateTime, createdBy, updatedBy 
fields are being retrieved in the response when the 
ranger.admin.api.include.policy.meta.attributes flag is set


Thanks,

Guru Thejus Arveti

Reply via email to