Skip to content

Remove todos when a design is archived

Jarka Košanová requested to merge 208388-design-removal-todos into master

What does this MR do?

When a design is archived it schedules TodosDestroyer::DestroyedDesignsWorker. The worker calls Todos::Destroy::DesignService which deletes all todos for the archived design.

The designs can't be unarchived so there is no need to delay the job.

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

  1. Go to an issue
  2. Add a design
  3. Click that design
  4. Add a todo for the design (check if the todo was created in todos)
  5. Archive the design
  6. Check if the todo was removed

If the todo has not been removed check if the Sidekiq job was finished.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #208388 (closed)

Edited by Jarka Košanová

Merge request reports