Skip to content

Fixes 38799: Clear incrementalChangeDescription on a test case's embedded test suites - #38863

Open
pcbeingused333 wants to merge 1 commit into
open-metadata:mainfrom
pcbeingused333:fix/testcase-suites-incremental-change
Open

pcbeingused333 wants to merge 1 commit into
open-metadata:mainfrom
pcbeingused333:fix/testcase-suites-incremental-change

Conversation

@pcbeingused333

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #38799

When a test case is read with fields=testSuites, each embedded suite had only changeDescription cleared, so the suite's incrementalChangeDescription was copied into every test case payload (and from there into stored versions and events). TestCaseRepository now clears both, in the single-entity path (getTestSuites) and in the bulk path (fetchAndSetTestSuitesData).

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • The suites embedded in a test case carry no change history, for single and bulk reads.

Unit tests

  • I added unit tests for the new/changed logic.
  • Files added/updated: TestCaseRepositoryTest.java (embeddedTestSuitesCarryNoChangeHistory, which covers both paths).
  • mvn test -Dtest=TestCaseRepositoryTest: 12 tests pass. Without the fix the new test fails.

Backend integration tests

No integration test was added or run.

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable (no UI changes).

Manual testing performed

None beyond the unit tests above.

UI screen recording:

Not applicable.

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.

  • Decision check: no decision record needed.

  • I have added a test that covers the exact scenario we are fixing.

This change was prepared with the help of an AI coding assistant.

@pcbeingused333
pcbeingused333 requested a review from a team as a code owner November 26, 2026 13:43
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

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

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.

@gitar-bot

gitar-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Clearing incremental history on embedded suites changes test-case version and event payloads, so consumers may no longer receive that nested history.

Clears incrementalChangeDescription alongside changeDescription on test suites embedded in test cases, in both the single-entity getTestSuites path and the bulk fetchAndSetTestSuitesData path, so change history no longer leaks into test case payloads, versions, and events. 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

@IceS2 IceS2 assigned TeddyCr and unassigned IceS2 Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Embedded testSuites of a test case keep incrementalChangeDescription

3 participants