Skip to content

Pass Duo pro bulk assignment option to SM code_suggestions frontend

Divya Mahadevan requested to merge 467526-sm-bulk-assignment into master

What does this MR do and why?

Resolves: https://gitlab.com/gitlab-org/gitlab/-/issues/467526

We are currently adding abilities for self managed instances also to assign users in bulk through the admin Duo pro UI similar to https://gitlab.com/groups/gitlab-org/-/epics/11463. As the related feature flag that handles the bulk assignment option for SM, was just recently merged !156779 (merged). This MR utilises this new feature flag to pass this value to the frontend for enabling/disabling bulk assignment feature on SM admin section. Only the Frontend part is adjusted through this MR, the backend is to be worked on through a different issue.

Note: This is a follow-up merge request to !156779 (merged)

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
Screenshot 2024-06-19 at 20.18.10.png Screenshot 2024-06-19 at 20.16.29.png

How to set up and validate locally

  1. Make sure you're running the self-managed gitlab instance with the option, GITLAB_SIMULATE_SAAS=0
  2. After logging in as administrator for the instance, visit http://localhost:3000/admin/code_suggestions
  3. Enable the feature flags, self_managed_code_suggestions and sm_duo_pro_bulk_user_assignment
  4. The FE should display UI elements to be able to bulk assign eligible users.
Edited by Divya Mahadevan

Merge request reports