Revert "Improve GQL query for fetching groups and projects"
Purpose of revert
We're seeing a recent high spike in 503 errors relating to the getTokenAccessGroupsAndProjects GraphQL operation. These are related to ActiveRecord::QueryCanceled errors.
See gitlab-com/gl-infra/production#18446 (closed).
We're reverting this MR to bring back functionality to this query.
Checklist
-
Create an issue to reinstate the merge request and assign it to the author of the reverted merge request. (#480818 (closed)) - [-] If the revert is to resolve a broken 'master' incident, please read through the Responsibilities of the Broken
master
resolution DRI. - [-] If the revert involves a database migration, please read through Deleting existing migrations.
- [-] Add the appropriate labels before the MR is created. We can skip CI/CD jobs only if the labels are added before the CI/CD pipeline is created.
Milestone info
-
I am reverting something in the current milestone. No changelog is needed, and I've added a ~"regression:*"
label. - [-] I am reverting something in a different milestone. A changelog is needed, and I've removed the
~"regression:*"
label.
Related issues and merge requests
Edited by Mireya Andres