----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/74648/#review225835 -----------------------------------------------------------
security-admin/src/main/java/org/apache/ranger/biz/GdsDBStore.java Line 1263 (original), 1263 (patched) <https://reviews.apache.org/r/74648/#comment314260> It will be efficient to use x_dataset_policy table to find policies associated with a dataset. Consider using GdsDBStore.getDatasetPolicies(datasetId). - Madhan Neethiraj On Oct. 7, 2023, 7:46 a.m., Subhrat Chaudhary wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/74648/ > ----------------------------------------------------------- > > (Updated Oct. 7, 2023, 7:46 a.m.) > > > Review request for ranger and Madhan Neethiraj. > > > Bugs: https://issues.apache.org/jira/browse/RANGER-4463 > > https://issues.apache.org/jira/browse/https://issues.apache.org/jira/browse/RANGER-4463 > > > Repository: ranger > > > Description > ------- > > With the changes in https://issues.apache.org/jira/browse/RANGER-4445, > dataset name is not getting added in the resources for the dataset policy. > The computation of DatasetSummary.principalsCount is based on getting > policies based on dataset name. The principalsCount is not getting updated in > DatasetSummary. > > > Diffs > ----- > > security-admin/src/main/java/org/apache/ranger/biz/GdsDBStore.java > eeebb6394 > > > Diff: https://reviews.apache.org/r/74648/diff/1/ > > > Testing > ------- > > Validated proper prinicpal count from policies - > DatasetSummary.principalsCount, is coming for datasets. > > > Thanks, > > Subhrat Chaudhary > >
