Delegate reading `award_emoji` 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
award_emojis.awardable_id = epics.issue_id AND target_type = 'Issue'
- On the WorkItem: UNION query for
award_emojis.awardable = epics.id AND target_type = 'Epic' JOIN epics ON epics.issue_id = issues.id
Filtering by award emoji should also work for both objects, for example, if an emoji is present only in the legacy epic it should be possible to find its associated work item by the emoji name and vice-versa.
Edited by Felipe Artur