Repository navigation
Fixes 38798: Keep test suite tests out of the diff on PUT - #38862
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 riskSkipping test-membership comparison when PUT omits tests preserves existing suite membership, preventing false removals and version changes for logical suites. Skips the 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 #38798
CreateTestSuitehas notestsproperty, so the entity built from aPUT /api/v1/dataQuality/testSuitesrequest hastestsnull.TestSuiteUpdatercompared the stored list against it (as an empty list), so every PUT on a logical suite with test cases recorded a change from the full list to nothing and bumped the version, although the membership never changed. The updater now skips thetestscomparison when the operation is a PUT and the request carries notests. PATCH is unaffected, and so is a PUT that does set the list.The issue may still need its Shipping project fields set; a maintainer's help with that would be appreciated.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
tests.Unit tests
TestSuiteRepositoryUpdateTest.java(new).mvn -pl openmetadata-service test -Dtest=TestSuiteRepositoryUpdateTeston JDK 21: 2 tests pass. Without the fix the PUT-without-tests case fails.spotless:applywas run. Coverage was not measured.Backend integration tests
openmetadata-integration-tests/for new/changed API endpoints.Ingestion integration tests
Playwright (UI) tests
Manual testing performed
None beyond the unit tests; no server was started.
UI screen recording:
Not applicable — backend change.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.This change was prepared with the help of an AI coding assistant.