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
- Make sure you have
GITLAB_SIMULATE_SAAS=1env var set - Set your user's default Duo namespace
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