Scope ComponentsResolver to Group

What does this MR do and why?

Scope ComponentsResolver to Group

Related to #490352 (closed)

Database review

Group-level query (GraphQL)

https://explain.depesz.com/s/iDJw

Group-level query (JSON)

https://postgres.ai/console/gitlab/gitlab-production-main/sessions/31804/commands/98447

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.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. In rails console - Feature.enable(:group_level_dependencies_filtering_by_component)
  2. In GraphQL Explorer you can try the following GraphQL queries
GraphQL queries
query groupLevelQuery {
  group(fullPath: "security") {
    components(name: "websocket") {
      nodes {
        id
        name
      }
    }
  }
}
Edited by Ryan Wells

Merge request reports

Loading