Fix 503 errors due to job count
What does this MR do and why?
On a handful of cases the jobs query fails for projects due to the count
field. This MR abstracts the count
into it's own query to ensure we still display jobs to the user even if the count
query fails. Indexes will be added to improve the overall performance of this query in the near future here #391628 (closed).
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- Visit Project > CI/CD > Jobs
- Ensure all functionality still works
- Test failing count query by adding manual error to query
jobsCount
(changethis.fullPath
tothis.fullPathhh
) - View/test cache changes by
console.log(existing, incoming)
inapp/assets/javascripts/jobs/components/table/graphql/cache_config.js
to get an idea of the new incoming data
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 #389347 (closed)
Edited by Payton Burdette