Fix initial user selection after search
What does this MR do and why?
Initial selection was cleaned out when user performed selection after search This MR fixes this bug
This code update enhances the user selection component in the security orchestration policy editor. It introduces a search feature that filters users based on input, making it easier to find and select specific users. Additionally, it ensures that previously selected users remain selected even after performing a search, improving the overall user experience and efficiency when managing policy approvers.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
See video in parent issue | selection.mov |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Go to Group/Projects
- Secure -> Policies
- New policy -> New approval policy
- Go to actions
- Select individual users
- Select one user
- Perform search, make sure selected user is filtered out
- Select filtered user, make sure selected items are reflected in dropdown
- See detailed steps in parent issue
Related to #474645 (closed)