Skip to content

Enhancement: Data Retention App to clean up orphaned testCase -> testCaseResolutionStatus relationships #27418

Closed

Description

@ayush-shah

Currently, when a testCase is deleted, there is a risk that its associated testCaseResolutionStatus records remain in the entity_relationship table as orphaned entries. While the Data Retention App successfully clears out standard Entity relationships during deletion, it needs to be updated to explicitly handle these incident statuses.

Context
testCaseResolutionStatus entries (which track incident events like New, Acknowledged, Assigned, Resolved) are mapped to their parent testCase via the entity_relationship table.

Over time, if these relationships are not cleaned up when the parent test case is removed, it could lead to unnecessary database bloat and lingering orphaned data.

Proposed Solution / Acceptance Criteria
[ ] Update the Data Retention App / cleanup logic to ensure it identifies and deletes any testCaseResolutionStatus mapping entries in the entity_relationship table when the associated parent testCase is deleted.

[ ] Ensure the cleanup does not inadvertently affect the historical time-series data (test_case_resolution_status_time_series) unless specifically dictated by retention policies.

Activity

  1. added this to Hackathon and removed this from Shippingand Roadmapon Apr 16, 2026
  2. moved this to Data Observability in Hackathonon Apr 16, 2026
  3. moved this from Data Observability to Getting started with OpenMetadata in Hackathonon Apr 16, 2026
  4. Megh-Shah-08 commented on Apr 16, 2026

    @Megh-Shah-08
    Contributor

    Hi, I’d like to work on this issue. I’ll start by reproducing the problem locally and share my findings. Please let me know if I can take this up.

  5. karthik120710 commented on Apr 17, 2026

    @karthik120710

    hi @ayush-shah @harshach i would like to work on these issue.

  6. ayush-shah commented on Apr 17, 2026

    @ayush-shah
    MemberAuthor

    Hi @karthik120710 assigning you the above ticket.

  7. ayush-shah commented on Apr 21, 2026

    @ayush-shah
    MemberAuthor

    Hi @karthik120710 since you are already tagged in other Issues, let me know if you have already started on the above issue, if not, I will assign it to @Megh-Shah-08

    Thanks,
    Ayush

  8. karthik120710 commented on Apr 21, 2026

    @karthik120710

    @ayush-shah sorry for the detlay i havent started , assign @Megh-Shah-08 , i am stuck in another issue .

  9. ayush-shah commented on Apr 21, 2026

    @ayush-shah
    MemberAuthor

    Thanks for the revert @karthik120710
    Assigning you the same @Megh-Shah-08

  10. Megh-Shah-08 commented on Apr 22, 2026

    @Megh-Shah-08
    Contributor

    Thanks @ayush-shah for assigning me!
    Will raise the PR for fix shortly!

  11. moved this to Release Backlog 🚧 in Shippingon Aug 25, 2026
  12. moved this from Release Backlog 🚧 to Done ✅ in Shippingon Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions