[ https://issues.apache.org/jira/browse/RANGER-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17384483#comment-17384483 ]
Madhan Neethiraj commented on RANGER-3332: ------------------------------------------ Commit in master branch: {noformat} commit 280d0a694886931fe5587921083a767a70ce7183 (HEAD -> master, origin/master, origin/HEAD) Author: Madhan Neethiraj <mad...@apache.org> Date: Thu Jul 8 06:12:48 2021 -0700 RANGER-3332: script evaluator updated to provide JavaScript style access to details of request/user/groups/tags {noformat} Commit in ranger-2.2 branch: {noformat} commit 0c0271651b553409a604cf773dd3b29f0c07bd5d (HEAD -> ranger-2.2, origin/ranger-2.2) Author: Madhan Neethiraj <mad...@apache.org> Date: Thu Jul 8 06:12:48 2021 -0700 RANGER-3332: script evaluator updated to provide JavaScript style access to details of request/user/groups/tags (cherry picked from commit 280d0a694886931fe5587921083a767a70ce7183) {noformat} > Script evaluator to support JSON style access to context details > ---------------------------------------------------------------- > > Key: RANGER-3332 > URL: https://issues.apache.org/jira/browse/RANGER-3332 > Project: Ranger > Issue Type: Improvement > Components: plugins > Reporter: Madhan Neethiraj > Assignee: Madhan Neethiraj > Priority: Major > Fix For: 3.0.0, 2.2.0 > > Attachments: RANGER-3332.patch > > > Script evaluator currently require use of methods to access context details, > like: > * ctx.getUser() > * ctx.getUserGroups() > * tag.getType() > * tag.getAttributes().get("emailAddress") > > This makes the script in conditions cumbersome to write and read. It will be > simpler to be able to access context details with Json style syntax, like: > * _ctx.user > * _ctx.userGroups > * _ctx.tag.type > * _ctx.tag.attributes.emailAddress -- This message was sent by Atlassian Jira (v8.3.4#803005)