Ask CustomersDot-ineligible groups to purchase Orbit

What does this MR do and why?

A group that CustomersDot cannot give an Orbit trial got TRIAL_REQUIRED as its turnOnDenialReason, with the message "Start a free trial to turn on Orbit for this group." Now it gets PURCHASE_REQUIRED and "Purchase GitLab Orbit to turn it on for this group." The UI already shows Contact sales from the access state, so only API clients see the change.

Related: https://gitlab.com/gitlab-org/orbit/knowledge-graph/-/work_items/1392 (item 4), https://gitlab.com/gitlab-org/orbit/knowledge-graph/-/work_items/1399 (S2.1b)

CustomersDot trial status Before After
ineligible TRIAL_REQUIRED PURCHASE_REQUIRED

No new CustomersDot call: turn_on_allowed? already reads the trial status on this path, and the status is memoized per check.

How to validate

  • ee/spec/lib/analytics/orbit/billing/account_access_spec.rb has the new case.
  • E2E scenario S2.1b on GDK with local CustomersDot: the API now returns PURCHASE_REQUIRED, and the page still shows Contact sales.

Merge request reports

Loading
Loading