Add file attachments toggle to admin GitLab Duo settings

What does this MR do and why?

Adds a new admin toggle to /admin/gitlab_duo/configuration that will allow admins to enable or disable file upload to agentic chat on SM instance

image.png

References

Admin setting issue: https://gitlab.com/gitlab-org/gitlab/-/work_items/633198

File upload epic: &20481

.com TLG equivalent: !268362 (merged)

Depends on code added in: !268881 (merged)

Will be used in: !268832 (merged) (Not stacked due to other conflicts)

Full PoC: !268274

How to set up and validate locally

  1. On non SaaS GITLAB_SIMULATE_SAAS: '0' in gdk.yml
  2. With Feature.enable(:dap_web_chat_file_attachments)
  3. Visit http://gdk.test:8080/admin/gitlab_duo/configuration
  4. Confirm that File attachments section exists, and toggle works and saves.
  5. With Feature.disable(:dap_web_chat_file_attachments)
  6. Confirm that the toggle is not visible

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 #633198

Edited by Kaveh Nejad

Merge request reports

Loading
Loading