Validate work item presence in epics
What does this MR do and why?
As a requirement for Add epics.issue_id NOT NULL constraint (!151791 - merged) we need to validate the presence of work_item
in the epics model. The data for epics.issue_id
has been backfilled with !143844 (merged) and finalized with !152625 (merged).
Summary of changes
- Update
Epics::CreateService
logic so a work item is created before validating the new epic - Delete the scope
has_work_item
fromEpic
model - Delete the epic factory trait
without_synced_work_item
and the specs examples that were using it
See #441622 (comment 1897337322) for confirmation of backfilled data.
MR acceptance checklist
Related to #448452 (closed)
Edited by Eugenia Grieff