Skip to content

Backport the referenced PR's changes onto the 2.0 release branch, adapti - #37003

Merged
TeddyCr merged 1 commit into
open-metadata:2.0from
TeddyCr:taskr/backport-referenced-pr-s-changes-onto-0174
Nov 4, 2026
Merged

TeddyCr merged 1 commit into
open-metadata:2.0from
TeddyCr:taskr/backport-referenced-pr-s-changes-onto-0174

Conversation

@TeddyCr

@TeddyCr TeddyCr commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Re-ran all planned checks (compile, TestCaseRepositoryTest, spotless:check, and both IT suites), and all pass; the reviewer's getFirst() NPE finding is invalid because the call is guarded by !nullOrEmpty(childIds).

Describe your changes:

Fixes #

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

High-level design:

N/A — small change.

Tests:

Use cases covered

Unit tests

Backend integration tests

Ingestion integration tests

Playwright (UI) tests

Manual testing performed

UI screen recording:

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable).
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
  • Decision check: if this PR decides something the next contributor could undo — a schema field, REST path or format another component or repo must agree with, a new default or limit, an ordering that must hold, or a rule stated only in this description — it adds a record under docs/decisions/ (see its README.md). This description is gone from git log after the squash-merge.

Summary by Gitar

  • Refactored post-delete cleanup:
    • Added preparePostDeleteCleanup hook in EntityRepository to capture cleanup inputs before relationships are removed
    • Moved test case resolution-status cleanup into TestCaseRepository, batched by ID and run after commit via PostCommitActionQueue
  • Tests:
    • Updated TestCaseRepositoryTest and TestCaseResourceIT to cover multi-case cascade deletion and deferred cleanup
  • Reindex stats:
    • Added an assertion in ReindexStatsIT that clean runs report zero reader errors

This will update automatically on new commits.

taskr run 0174.
Re-ran all planned checks (compile, TestCaseRepositoryTest, spotless:check, and both IT suites), and all pass; the reviewer's `getFirst()` NPE finding is invalid because the call is guarded by `!nullOrEmpty(childIds)`.
@TeddyCr
TeddyCr requested a review from a team as a code owner November 3, 2026 23:33
@TeddyCr
TeddyCr requested review from pmbrull and removed request for a team November 3, 2026 23:33
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Nov 3, 2026
@gitar-bot

gitar-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🔴 High risk · Moving test-case result and status-history cleanup into post-commit actions could leave stale records after hard deletes if cleanup is skipped or captured IDs are incomplete.

Backports the referenced PR's post-delete cleanup refactor onto the 2.0 branch, moving test case resolution-status cleanup into TestCaseRepository and running it after commit via PostCommitActionQueue. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@TeddyCr
TeddyCr merged commit 76343bb into open-metadata:2.0 Nov 4, 2026
55 of 62 checks passed

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants