You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhancement: Data Retention App to clean up orphaned testCase -> testCaseResolutionStatus relationships #27418
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.
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
Activity
Megh-Shah-08 commentedon Apr 16, 2026
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.
karthik120710 commentedon Apr 17, 2026
hi @ayush-shah @harshach i would like to work on these issue.
ayush-shah commentedon Apr 17, 2026
Hi @karthik120710 assigning you the above ticket.
ayush-shah commentedon Apr 21, 2026
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
karthik120710 commentedon Apr 21, 2026
@ayush-shah sorry for the detlay i havent started , assign @Megh-Shah-08 , i am stuck in another issue .
ayush-shah commentedon Apr 21, 2026
Thanks for the revert @karthik120710
Assigning you the same @Megh-Shah-08
Megh-Shah-08 commentedon Apr 22, 2026
Thanks @ayush-shah for assigning me!
Will raise the PR for fix shortly!
perf: optimize test case hard-delete relationship cleanup (open-metad…
perf: optimize test case hard-delete relationship cleanup (open-metad…
perf: optimize test case hard-delete relationship cleanup (open-metad…
perf: optimize test case hard-delete relationship cleanup (open-metad…
perf: optimize test case hard-delete relationship cleanup (open-metad…