Run validation worker when syncing work item to epic
What does this MR do and why?
When we sync the work item to the epic we also want to ensure the data
is correctly synced. We subscribe to WorkItemCreatedEvent
and
WorkItemUpdatedEvent
and run the ValidateEpicWorkItemSyncWorker
to
log any mismatches between the work item and epic data.
Related issue: #458139 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Enable feature flags
Feature.enable(:namespace_level_work_items)
Feature.enable(:sync_work_item_to_epic)
Feature.enable(:sync_epic_to_work_item)
Feature.disable(:make_synced_work_item_read_only)
(Optionally) Restart background jobs
They sometimes get stuck when switching branches
gdk restart rails-background-jobs
Listen to the syncing log:
tail -f log/epic_work_item_sync.log
Create and modify epic work item
- Create an work item epic
- Modify description/title etc
- Close/Re-open
- Watch the log to see that it verified the data.
Edited by Nicolas Dular