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
- Create a new enum in
app/graphql/types/groups/archived_enum.rbsimilar toapp/graphql/types/projects/archived_enum.rb. - Add an
archivedargument toapp/graphql/resolvers/groups_resolver.rbwith the archived enum as input type. - Ensure that the
archivedargument is propagated to the GroupsFinder. - If not already added from the API change, add
archivedas a parameter to the GroupsFinder, similar to the ProjectsFinder implementation.
Edited by Shane Maglangit