----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/75271/#review227055 -----------------------------------------------------------
security-admin/src/main/java/org/apache/ranger/common/RangerServicePoliciesCache.java Lines 551 (patched) <https://reviews.apache.org/r/75271/#comment315346> Policies in RangerServicePoliciesCache are provided to plugins. Pruning of unused attributes was done to reduce the payload, especially where there are a large number of policies. I would suggest to not update the cache for the reported issue. If a list of APIs that require pruned attributes, consider updating these APIs to directly read from the database instead of from cache. - Madhan Neethiraj On Nov. 13, 2024, 4:51 p.m., Guru Thejus Arveti wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/75271/ > ----------------------------------------------------------- > > (Updated Nov. 13, 2024, 4:51 p.m.) > > > Review request for ranger and Pradeep Agrawal. > > > 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 > ----- > > > security-admin/src/main/java/org/apache/ranger/common/RangerServicePoliciesCache.java > c8d1e5d08 > security-admin/src/main/resources/conf.dist/ranger-admin-default-site.xml > 1af339010 > > > Diff: https://reviews.apache.org/r/75271/diff/1/ > > > 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 > >