Skip to content

Conversation

@RakeshGuptaDev
Copy link
Contributor

What changes were proposed in this pull request?

When using the Role Name filter, it only matches values from the Role Name column. It does not match values from the Roles column, even though that column contains the role

How was this patch tested?

Tested and Validated search for below API.

/roles/lookup/roles?subRoleName=r2
/roles/lookup/roles?subRoleNamePartial=r2

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extends the existing “Role Name” filter so that it also searches values in the sub-role (Associated Role) column.

  • Adds a new “Associated Role” text filter to the Roles tab UI
  • Registers subRoleName and subRoleNamePartial in the service search fields and request parameter mapping
  • Hooks the new filters into the backend predicate logic

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
security-admin/.../RoleListing.jsx Added new UI filter object for Associated Role
security-admin/.../RangerRoleServiceBase.java Registered full and partial sub-role search fields
security-admin/.../RangerSearchUtil.java Mapped HTTP parameters for sub-role filters
agents-common/.../SearchFilter.java Defined constants for subRoleName filters
agents-common/.../RolePredicateUtil.java Added predicate calls for new sub-role filters

Copy link
Contributor

@dhavaljrajpara dhavaljrajpara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI changes are approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants