Skip to content

Fix junk data in issues index

Summary

There are multiple data problems in the issues index:

  1. Documents with _id like issue_140042675 - causing duplicate documents
  2. Documents with schema_version 2312 when the current version is 2405
  3. Documents with type work_item
  4. Disparity between number of unique IDs and total number of docs

Attempted fixes:

Suggested fix:

  • Migration to remove all docs with type=work_item from the index
  • Bump schema version to 2407
  • Migration to reindex all issues from the database - every Issue.without_issue_type(:epic) record is tracked and will have schema version 2407
  • Migration to remove docs with schema version < 2407 from index
Edited by Madelein van Niekerk