Bug: GitLab Duo Agent Platform setting should not be shown on subgroups in any instance or root groups in self-managed instances
## Summary The Duo Agent Platform setting allows customers to turn off DAP. For SM instances, the setting exists at the instance level. For GitLab.com, it exists at the root namespace level. The expected configuration options are documented here: https://docs.gitlab.com/user/gitlab_duo/turn_on_off/#turn-gitlab-duo-agent-platform-on-or-off Right now, we show the namespace level setting for self-managed instances as well. This is a bug, it should not be shown because on the backend we ignore this setting for groups unless you are on gitlab.com. ## Steps to reproduce - Run GDK in SM mode - Visit root group - Visit Settings > General > GitLab Duo features - What I see: DAP setting. - What I expect to see: no DAP setting. This setting is also showing on subgroups. This setting should never show up on a subgroup. ## Definition of done 1. All GitLab instances: this setting is hidden for subgroups 2. SM GitLab instances only: this setting is hidden for root namespaces 3. We should consider backporting this fix as the frontend was added as part of 18.7.
issue