Fixes #29542 - #29680
Conversation
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
…b.com/Al-Zaytoun/OpenMetadata into fix/29542-case-insensitive-entitytype
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ Approved 2 resolved / 2 findingsEnforces case-insensitive ✅ 2 resolved✅ Bug: toUpperCase() without Locale.ROOT can break in some locales
✅ Quality: Regression test is an empty placeholder with unresolved TODO
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
Could a maintainer please add the safe to test label so CI can run. |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
❌ 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 |
…b.com/Al-Zaytoun/OpenMetadata into fix/29542-case-insensitive-entitytype
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Can a maintainer check the work, and add 'safe-to-test' label, so the checks may proceed. |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ Approved 2 resolved / 2 findingsEnforces case-insensitive ✅ 2 resolved✅ Bug: toUpperCase() without Locale.ROOT can break in some locales
✅ Quality: Regression test is an empty placeholder with unresolved TODO
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Describe your changes:
Fixes #29542
I updated the backend server (TestDefinitionResource.java) to convert the incoming entityType text to uppercase before checking it. Now, it accepts Column, column, or COLUMN perfectly and the same for Table, table or TABLE.
Type of change:
High-level design:
N/A - Small Change
Tests:
Use cases covered
Non-admin users can now see column-level test options (like "Column value not null") instead of an empty dropdown.
Unit tests
Backend integration tests
openmetadata-integration-tests/for new/changed API endpoints.Ingestion integration tests
Playwright (UI) tests
Manual testing performed
UI screen recording / screenshots:
Not applicable - This was a backend fix
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Bug fix
Summary by Gitar
entityTypequery parameter is handled case-insensitively inTestDefinitionResourceby forcing it to uppercase usingLocale.ROOT.list_testDefinitionsByEntityType_caseInsensitiveinTestDefinitionResourceITto verify that mixed-case and lowercaseentityTypeinputs correctly retrieve the expected data.This will update automatically on new commits.
Greptile Summary
This PR makes test definition filtering accept mixed-case entity types. The main changes are:
entityTypequery parameter before applying the backend filter.Locale.ROOTfor stable Java case conversion.ColumnandTablerequests.Confidence Score: 5/5
This looks safe to merge.
Important Files Changed
entityTypefilter withLocale.ROOTbefore passing it into the list filter.Reviews (4): Last reviewed commit: "Merge branch 'main' into fix/29542-case-..." | Re-trigger Greptile
Context used (3)