Add a blocked websites card to the GitLab Duo web search settings

What does this MR do and why?

Adds a Blocked websites card under the web search checkbox in the GitLab Duo settings, for top-level groups on GitLab.com and for the instance on GitLab Self-Managed and GitLab Dedicated. It reuses the Network access domain list card, so every domain list on the page works the same way.

Stacked on !270974 (merged).

References

Screenshots or screen recordings

Before After
before after

How to set up and validate locally

  1. Check out this branch and enable the flag: Feature.enable(:dap_web_search).
  2. With GITLAB_SIMULATE_SAAS=1, go to http://gdk.test:3000/groups/<group>/-/settings/gitlab_duo/configuration for a top-level group.
  3. Under Web search, add *.Python.org in Blocked websites. It shows as python.org. Remove it.
  4. With GITLAB_SIMULATE_SAAS=0, as an administrator, repeat on http://gdk.test:3000/admin/gitlab_duo/configuration.

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.

Edited by Eva Kadlecová

Merge request reports

Loading
Loading