Delegate reading `labels` for synced work item epics
We need to be able to UNION query this data for the legacy epics and new work items. This means that we need to query:
- On the Epic: UNION query for
label_links.target_id = epics.issue_id AND target_type = 'Issue'
- On the WorkItem: UNION query for
label_links.target_id = epics.id AND target_type = 'Epic' JOIN epics ON epics.issue_id = issues.id
Some History on Discussions around unified labels:
FYI: I had a sync call meeting with @ahegyi
today(thank you Adam!) on handling labels union between legacy Epic and Epic Work Item. Here is a recording of the discussion being uploaded to the Epic migration playlist. Key take aways:
- It does seem feasible to have the labels linked from one side only i.e. legacy Epic or Epic Work Item
- It does seem feasible to have filtering on lists working with minor performance implications
- We do have a module that deals with labels filtering that should make BE changes more straight forward
- We do want to run a quick PoC to cover some of the cases to have a higher confidence
Edited by Alexandru Croitor