Fixes #27458: Display SQL expression for library DQ tests#27516
Fixes #27458: Display SQL expression for library DQ tests#27516piyushdotcomm wants to merge 5 commits intoopen-metadata:mainfrom
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 @harshach , could you please add the |
🔴 Playwright Results — 2 failure(s), 26 flaky✅ 3660 passed · ❌ 2 failed · 🟡 26 flaky · ⏭️ 89 skipped
Genuine Failures (failed on all attempts)❌
|
90f23d5 to
b492f7b
Compare
Code Review ✅ Approved 1 resolved / 1 findingsEnables display of SQL expressions for library data quality tests, resolving the accidental inclusion of a backup spec file. No issues remain. ✅ 1 resolved✅ Quality: Backup file .spec.ts.bak accidentally committed to repo
OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Fixes #27458
I worked on displaying the SQL expression for library-based Data Quality tests because the test details
page only showed SQL for custom SQL tests. Library tests already expose their SQL template through
TestDefinition.sqlExpression, but the result/details tab was not requesting or rendering that field.Changes made:
TestDefinitionwithparameterDefinitionandsqlExpressionfields in the test case resulttab.
TestDefinition.sqlExpressionisavailable.
TestCase.parameterValues.sqlExpressionwhenpresent.
sqlExpressionfrom the test definition APIType of change:
Checklist:
Fixes <issue-number>: <short explanation>Testing:
playwright test playwright/e2e/Features/DataQuality/TestCaseResultPermissions.spec.ts --listAdded Playwright test:
User with TEST_CASE.VIEW_ALL can view library test SQL expression in UISummary by Gitar
200to the data product tag patch request incommon.ts.TestCaseResultPermissions.spec.tsto improve test reliability for library DQ test definitions.This will update automatically on new commits.