Show work items correctly on activity feed
What does this MR do and why?
This MR fixes the activity feed and displays also activities related to work items.
Related issues/MRs:
- Set event type correctly for WorkItems creation (!93801 - merged) - when a new work item is created, target is Issue and this MR fixes that
- Events for work items (#369411) - we need to unify way we handle events for work items
How to set up and validate locally
- Run rails console
rails c
- Enable work items related feature flags:
Feature.enable(:work_items)
andFeature.enabled(:work_items_create_from_markdown)
- Go to an issue
- Create a task list in the description, save the issue
- Create a task using the button in the task list in the issue description
- Close that task
- Check your activity feed
- You should see that you opened an issue (fix: !93801 (merged)) and that you closed the work item (this is the fix in this MR)
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 #366206 (closed)
Edited by Jarka Košanová