Skip to content

Remove resource if not authorized

Mark Chao requested to merge nilify-resource-in-ide into master

What does this MR do and why?

Fix https://gitlab.com/gitlab-org/gitlab/-/issues/471277.

If API(IDE) provides a resource, and if that resource is not authorized, we nullify that and continue the AI completion process, instead of aborting chat.

We also remove the duo_chat_set_warden feature flag, because this fix requires that to default to true.

MR acceptance checklist

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

Screenshots or screen recordings

Demo (private video) https://youtu.be/v4sy0lm_Qcc

How to set up and validate locally

  1. Create a group SSO protected project
  2. Set up IDE to link to GDK
  3. Clone & open the project in IDE
  4. In IDE, type 'hihi' in duo chat
  5. We should receive response
Edited by Mark Chao

Merge request reports

Loading