Skip to content

Create a GraphQL query for inactive groups

What / Why

For &13781 (closed) we need a way to show groups that are inactive or archived. This request is very similar to !161355 (merged) which was made for Projects.

Ideally we can access this from the groups graphql query Something like:

query {
  groups(archived: $archived) {
    nodes {
      ...Group
    }
  }
}

The feature to archive groups is currently being worked on under #481969 (closed)

Implementation Plan

  1. Create a new enum in app/graphql/types/groups/archived_enum.rb similar to app/graphql/types/projects/archived_enum.rb.
  2. Add an archived argument to app/graphql/resolvers/groups_resolver.rb with the archived enum as input type.
  3. Ensure that the archived argument is propagated to the GroupsFinder.
  4. If not already added from the API change, add archived as a parameter to the GroupsFinder, similar to the ProjectsFinder implementation.
Edited by Shane Maglangit