Use Duo default billing namespace for CS events if project unavailable

What does this MR do and why?

Sends the user's default Duo billing namespace if the CS encounters an API call where the project isn't available

How to set up and validate locally

  1. Make sure you have GITLAB_SIMULATE_SAAS=1 env var set
  2. Set your user's default Duo namespace
  3. curl -X "POST" "http://localhost:3000/api/v4/code_suggestions/direct_access" \ -H 'Authorization: Bearer <AUTH TOKEN' -H 'Content-Type: application/json' -d $'{}'

You should have both "x-gitlab-root-namespace-id" and "x-gitlab-namespace-id" in the "headers" response.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #582549

Edited by Allen Cook

Merge request reports

Loading