Add issues query at the root level of GraphQL API
What does this MR do and why?
We are adding a new issues
query at the root of the GraphQL schema. Using this query, the user can fetch issues they can read across all projects and groups. At the same time, they can use the same exact filters the project scoped query can.
To add full spec coverage to the new query I will move all project.issues query specs to a shared example so it can also be used with the new query. I have put the new field behind a feature flag, since I don't want it to be available until I finish moving all specs to the shared example, and I'm going to do that in multiple MRs to make the review process easier (this one is already pretty big).
How to validate locally
- Enable the feature flag in the rails console
Feature.enable(:root_level_issues_query)
- Perform a GraphQL query in http://localhost:3000/-/graphql-explorer like:
{ issues { nodes { id projectId } } }
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #377514 (closed)