Unify scoped labels and normal labels system notes on issuables
Currently when a user changes multiple labels on a issuable(work item, merge request, epic, etc) that includes both scoped labels and normal labels, we'll create 2 system notes. One mentioning normal labels and another one mentioning scoped labels.
Problem:
In some edge cases this generates an issue when we need to paginate system notes and the above 2 notes happen to be exactly at the end of one page and beginning of the next page, causing it sometimes to not be properly fetched.
Suggestion:
I wonder if we can come up with a smart enough note structure in order to combine the 2 system notes into a single one. I think this will fix 2 problems: the pagination one and the UX one where in fact the change is supposed to be a single system note?
Context:
- There is a bit more context in a MR thread here !111704 (comment 1311764512)
- slack thread with initial issue raised: https://gitlab.slack.com/archives/CBFCUM0RX/p1678709764577769