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.rb
similar toapp/graphql/types/projects/archived_enum.rb
. - Add an
archived
argument toapp/graphql/resolvers/groups_resolver.rb
with the archived enum as input type. - Ensure that the
archived
argument is propagated to the GroupsFinder. - 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