----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/73694/#review224789 -----------------------------------------------------------
Ship it! Ship It! - Madhan Neethiraj On Sept. 29, 2022, 2:37 a.m., Xuze Yang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/73694/ > ----------------------------------------------------------- > > (Updated Sept. 29, 2022, 2:37 a.m.) > > > Review request for ranger, Abhay Kulkarni, Madhan Neethiraj, Mahesh Bandal, > Pradeep Agrawal, Ramesh Mani, Sailaja Polavarapu, Vishal Suvagia, and > Velmurugan Periasamy. > > > Bugs: RANGER-3500 > https://issues.apache.org/jira/browse/RANGER-3500 > > > Repository: ranger > > > Description > ------- > > modify the getServicePolicies() method to support sorting by field and > sortType(i.e. asc or desc). The changes are as following: > 1. Add sortBy and sortType to searchFilter > 2. Support sorting by sortType("desc" means in decreasing order, otherwise in > increasing order) > 3. Delete a redundant line of code > > > Diffs > ----- > > > agents-common/src/main/java/org/apache/ranger/plugin/store/AbstractPredicateUtil.java > 38d6b03 > agents-common/src/main/java/org/apache/ranger/plugin/util/SearchFilter.java > c5f13b5 > security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java > fdead07 > > > Diff: https://reviews.apache.org/r/73694/diff/3/ > > > Testing > ------- > > 1. compile and package the code > 2. deploy ranger > 3. generate hdfs policies and get the hdfs policyList via postman using url > like > "http://192.168.0.12:6080/service/plugins/policies/service/2?sortBy=policyName&sortType=desc&serviceName=default-Hdfs" > 4. the return policyList is sorted according our specified sortBy and sortType > > > File Attachments > ---------------- > > 0002-RANGER-3500-Ranger-policy-list-doesn-t-support-sorti.patch > > https://reviews.apache.org/media/uploaded/files/2022/09/29/61ba9494-1dc8-4b67-80ed-44c7e9f313a1__0002-RANGER-3500-Ranger-policy-list-doesn-t-support-sorti.patch > > > Thanks, > > Xuze Yang > >
