Add file attachments toggle to group GitLab Duo settings

What does this MR do and why?

Update the top level group settings/gitlab_duo/configuration to include a new setting for File Attachments in chat. API added in !268538 (merged).

This will allow admins to enable and disable file uploads in chat for their org.

Also includes instance level docs changes for admin setting on instance level introduced in !269169 (merged)

References

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

File upload epic: &20481

Depends on: !268538 (merged)

Full PoC: !268274

Screenshots or screen recordings

http://gdk.test:8080/groups/gitlab-duo/-/settings/gitlab_duo/configuration

Flag (dap_web_chat_file_attachments) Image
Enabled (Appears) image.png
Disabled (hidden) image.png

How to set up and validate locally

  1. Feature.enable(:dap_web_chat_file_attachments)
  2. Follow new steps in doc/user/gitlab_duo_chat/agentic_chat.md on SaaS top level group to set the setting.
  3. Confirm setting is saved.
  4. Confirm setting is not visible when Feature.disable(:dap_web_chat_file_attachments)
  5. Confirm setting is not visible on sub-groups and SM

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