Use the session user as the recommend_reviewers_on_workhorse actor
What does this merge request do and why?
Checks the recommend_reviewers_on_workhorse feature flag against the user of the Duo session instead of :instance. With the instance actor, the flag can only be on or off for all of GitLab.com. With a user actor, we can enable it for the gitlab_team_members feature group first.
Ai::Catalog::CodingEnvironment.resolve and .default_runtime_for take an optional user:. ExecuteRunService, StartWorkflowService and Workflow#last_runtime pass the session user, so the runtime choice, the support check, the CI clone and the resume of one session all resolve the same coding environment. Callers with no session still resolve with no actor, so only a global enable applies to them.
References
Screenshots or screen recordings
| Before | After |
|---|---|
Merge request acceptance checklist
Evaluate this merge request against the merge request acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.