Skip to content

Make isKnownErrorCode a common utility

What does this MR do and why?

  • Make isKnownErrorCode a common utility that can be reused
  • Clear alerts upon new assignment / un-assignment

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.

Scenario Screen recording
Known error codes Screen Recording 2024-04-03 at 3.50.28 PM.mov
Unknown errors showing generic error message Screen Recording 2024-04-03 at 4.02.32 PM.mov

Clearing alerts

Before After
Before.mov After.mov

How to set up and validate locally

Application setup

  1. Customers Dot needs to be setup in order to view the billing page for a group
  2. Start GDK in SaaS mode GITLAB_SIMULATE_SAAS=1 gdk start

Group setup

  1. Create a Group
  2. Buy a Subscription for your group from Settings > Billing

Feature flag

Run the following in your rails console

Feature.enable(:hamilton_seat_management, Namespace.find(your-group-id))
Feature.enable(:gitlab_com_duo_pro_bulk_user_assignment, Namespace.find(your-group-id))

Add-on purchase

Purchase an add-on for the subscription purchased above in Group setup step by following the instructions here (under Add Code Suggestions Add-On to a subscription section).

Code Suggestions tab

  1. Visit /groups/<your-namespace-name>/-/usage_quotas#code-suggestions-usage-tab

Related to #454238

Edited by Vamsi Vempati

Merge request reports