Repository navigation
Fixes 38799: Clear incrementalChangeDescription on a test case's embedded test suites - #38863
pcbeingused333 wants to merge 1 commit into
Conversation
❌ PR checklist incompleteThis 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 |
Code Review ✅ Approved 🟡 Medium riskClearing incremental history on embedded suites changes test-case version and event payloads, so consumers may no longer receive that nested history. Clears VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #38799
When a test case is read with
fields=testSuites, each embedded suite had onlychangeDescriptioncleared, so the suite'sincrementalChangeDescriptionwas copied into every test case payload (and from there into stored versions and events).TestCaseRepositorynow clears both, in the single-entity path (getTestSuites) and in the bulk path (fetchAndSetTestSuitesData).Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
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
Playwright (UI) tests
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.