BUG: Subscription unavailable error banner shows up in 'GitLab Duo' and 'Usage Quotas' tab

Summary

When visiting GitLab Duo page, an error banner is shown saying: GitLab subscription not available

Screenshot

Screenshot 2024-09-20 at 17.43.29.png

How to reproduce

  1. Start gdk on SaaS mode GITLAB_SIMULATE_SAAS=1 gdk restart
  2. Buy a Premium or Ultimate subscription for a top-level namespace
  3. Go to GitLab Duo page
  4. See the error banner
  5. You can also check the network tab for GraphQL request

Extra context

  1. #481957 (comment 2113403206)
  2. #476256 (comment 2081478109)
  3. Slack Thread Internal
  4. Possible related MR: !163327 (merged)

Current Behaviour

Error banner being shown incorrectly

Expected Behaviour

No error banner should be shown

Possible cause

Calling for getCurrentLicense graphql on SaaS - GitLab.com context

Potential Fix

Do not call getCurrentLicense on SaaS - GitLab.com context

Edited by Bishwa Hang Rai