Skip to content

Adjust BulkAssignService to accept SM assignment

Divya Mahadevan requested to merge 467525-sm-bulk-assign-service into master

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

  1. Start as a SM instance with GITLAB_SIMULATE_SAAS=0
  2. Visit http://localhost:3000/admin/code_suggestions, this is under the Admin area
  3. Enable feature flags, self_managed_code_suggestions and sm_duo_pro_bulk_user_assignment . Frontend should now display bulk assignment elements.
  4. 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

Merge request reports