Adjust BulkAssignService to accept SM assignment
Resolves: #467525
What does this MR do and why?
Currently the bulk assignment service only performs bulk assignment for Saas instances due to requiring a namespace. This MR adjusts this service, to also adapt for Self-managed user assignments.
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
No frontend changes
How to set up and validate locally
- Start
as a SM instance with GITLAB_SIMULATE_SAAS=0
- Visit http://localhost:3000/admin/code_suggestions, this is under the Admin area
- Enable feature flags,
self_managed_code_suggestions
andsm_duo_pro_bulk_user_assignment
. Frontend should now display bulk assignment elements. - Make sure your duo pro add on has enough seats, and assigning multiple users should successfully assign seats.
Related to #467525
Edited by Divya Mahadevan