Add a `aimed_for_deletion` and `include_hidden` argument to `Query.projects`
Background
For &13066 we want to use the Query.projects
GraphQL query to render the projects that are pending deletion in the Inactive
tab.
Proposal
Add aimed_for_deletion
and include_hidden
arguments to Query.projects
GraphQL query. Then we can use the same logic in ee/app/controllers/ee/dashboard/projects_controller.rb#L44 in the GraphQL query.
Implementation guide
- Add
aimed_for_deletion
andinclude_hidden
arguments to ee/app/graphql/ee/resolvers/projects_resolver.rb - Pass arguments to
EE::ProjectsFinder
which should already support those arguments - Add tests
Edited by Peter Hegman