Skip to content

Add error handling to apollo call

What does this MR do and why?

Add error handling to apollo call.

Capture errors when requesting subscription permissions data Refactor tests and remove saas/sm ones as we show the button anyway for all cases

Related to #456937

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

Screenshot_2024-04-29_at_12.44.07

How to set up and validate locally

  1. Purchase a subscription with Duo Pro.
  2. Create a new group (via gitlab.com) and link the subscription to it.
  3. Visit http://localhost:3000/groups/<NEW_GROUP_NAME>/-/usage_quotas#code-suggestions-usage-tab
  4. Mock the API response to check error and empty state.
  5. In both cases you should still see the Add seats button
Edited by Diana Zubova

Merge request reports