Query complexity exceeded in objective page
When loading https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/1736, the following error is seen at the top.
Query has complexity of 255, which exceeds max complexity of 250
The query responsible is `workItemNotesByIid`
query workItemNotesByIid($fullPath: ID!, $iid: String, $after: String, $pageSize: Int) {
workspace: project(fullPath: $fullPath) {
id
workItems(iid: $iid) {
nodes {
id
iid
widgets {
... on WorkItemWidgetNotes {
type
discussions(first: $pageSize, after: $after, filter: ALL_NOTES) {
pageInfo {
...PageInfo
__typename
}
nodes {
id
notes {
nodes {
...WorkItemNote
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}}
fragment PageInfo on PageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
__typename}
fragment WorkItemNote on Note {
id
body
bodyHtml
system
internal
systemNoteIconName
createdAt
lastEditedAt
url
lastEditedBy {
...User
webPath
__typename
}
discussion {
id
__typename
}
author {
...User
__typename
}
userPermissions {
adminNote
awardEmoji
readNote
createNote
resolveNote
repositionNote
__typename }
__typename}
fragment User on User {
id
avatarUrl
name
username
webUrl
__typename
}
Thank you for raising @esybrant and @nickleonard.
Edited by charlie ablett