Fix slow query when promoting issue to an epic
What does this MR do and why?
Fixes a performance regression introduced by !91591 (merged).
This is purely a performance problem because even if extra labels are returned by cloneable_labels
, these are filtered out by AvailableLabelsService
when the Epic is actually created.
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 #367935 (closed)
Edited by Heinrich Lee Yu