You post /add_child #2 on a work item. The hierarchy widget's count ticks up. The child list does not change until you refresh the page. /remove_child does the same thing in reverse: the count is right, the list is not.
This is the story of gitlab-org/gitlab!272650 , a short-term refetch that made the list catch up, and a cache detail that, in the first version, refetched every notes page after each successful command.
The issue: two queries, one of them stale
The issue was gitlab-org/gitlab#498118 , opened by Amanda Rueda. The investigation in the issue is the important part. WorkItemUpdated , and the main work item query, include hierarchy counts ( rolledUpCountsByType ) but not the children connection. That connection lives only on workItemTreeQuery . The count in the widget can change while the list stays stale.
A fuller fix would be a hierarchy subscription. That had been tried and removed for performance and UX reasons.…