Skip to content

Epics not updated in the index when labels are deleted

What does this MR do and why?

When the Label gets deleted, we should remove this label_id from the label_ids field in the epics index.

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

Make sure Elasticsearch is enabled.

  1. Pick any epic on the gdk. Attach any label to it.
  2. Check on the elastic search that the label_ids in the epics index has an array of all the labels attached to this epic.
  3. Now delete any label that is attached to this epic from the Manage>Labels section.
  4. Now verify on Elasticsearch that the deleted label is not in the array of label_ids. It might take a few extra seconds to reflect the changes in the elasticsearch.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #424198 (closed)

#427592 (closed)

Edited by Ravi Kumar

Merge request reports