GraphQL: Add lazy loader for blocking epics count
What does this MR do and why?
Related to #355739 (closed)
When querying an epic's blocking count with GraphQL we are getting N+1 queries:
query epicBlocksData {
group(fullPath: EPIC_GROUP_PATH) {
epic(iid: EPIC_IID) {
blockingCount
}
}
}
This MR extends Issuables::LazyBlockAggregate
to take an extra query_type
argument, which makes it be able to lazy load blocking data as well as the existing blocked data.
See !87830 (comment 964949630) for more context.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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.
Edited by Eugenia Grieff