Repository navigation
feat: migrate Data quality dashboard to open source - #26765
Conversation
…atus translations in multiple languages - Updated Spanish, French, Galician, Hebrew, Japanese, Korean, Marathi, Dutch, Persian, Brazilian Portuguese, European Portuguese, Russian, Thai, Turkish, Simplified Chinese, and Traditional Chinese language files to include new keys for data dimensions, data health, incident metrics, and test case status. - Enhanced the Data Quality dashboard by integrating a new dashboard component and updating the sidebar to include a summary tab. - Modified Data Quality utility functions to support new test case status filtering and data transformation for improved reporting. - Introduced new styles for the dashboard and updated existing variables for better visual representation.
…aQualityDashboard component
… including DataQualityDashboard integration
- Updated Russian, Thai, Turkish, Simplified Chinese, and Traditional Chinese language files to include new keys for data dimensions, data health, incident metrics, and test case status. - Added sub-header descriptions for data dimensions, data health, and incident metrics in respective language files. - Refactored imports in DataQualityClassBase, TagPage, DomainClassBase, and GlossaryTermClassBase to maintain consistent import order and structure. - Improved test cases in DomainClassBase, GlossaryTermClassBase, and TagClassBase for better readability and maintainability. - Removed unnecessary lines in TagClassBase.test.ts and TagsUtils.tsx to clean up the code.
… improved styling
…efine search query logic in DataQualityDashboard
There was a problem hiding this comment.
Pull request overview
This PR expands the Data Quality experience by adding a new “Summary/Dashboard” view and surfacing “Data Observability” tabs on governance entities (Tags, Glossary Terms, Domains), alongside broad i18n updates for the new dashboard content.
Changes:
- Adds a Data Quality dashboard “Summary” tab and left-sidebar entry, and makes it the default Data Quality landing tab.
- Introduces a reusable
DataQualityDashboardcomponent plus multiple new chart widgets (pie/area/status cards) and supporting utilities/constants/styles. - Updates many locale JSONs with new keys for data dimensions, data health, incident metrics, and test case status.
Reviewed changes
Copilot reviewed 61 out of 61 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/src/utils/TagClassBase.ts | Adds DATA_OBSERVABILITY tab ID to tag detail tab set. |
| openmetadata-ui/src/main/resources/ui/src/utils/TagClassBase.test.ts | Updates expectations for the new tab and mocks i18n util. |
| openmetadata-ui/src/main/resources/ui/src/utils/Glossary/GlossaryTermClassBase.ts | Appends a Data Observability tab (DataQualityDashboard) to glossary term detail view. |
| openmetadata-ui/src/main/resources/ui/src/utils/Glossary/GlossaryTermClassBase.test.ts | Adds tests for the new tab behavior and props passed to the dashboard. |
| openmetadata-ui/src/main/resources/ui/src/utils/Domain/DomainClassBase.ts | Appends a Data Observability tab (DataQualityDashboard) to domain detail view. |
| openmetadata-ui/src/main/resources/ui/src/utils/Domain/DomainClassBase.test.ts | Adds tests validating the new domain tab behavior and filters. |
| openmetadata-ui/src/main/resources/ui/src/utils/DataQuality/DataQualityUtils.tsx | Adds helpers for dashboard navigation and status-by-dimension transformation and pie labels. |
| openmetadata-ui/src/main/resources/ui/src/styles/variables.less | Introduces @green-100 used by new widget styles. |
| openmetadata-ui/src/main/resources/ui/src/pages/TagPage/tag-page.less | Adds styling to size the new DQ tab pane. |
| openmetadata-ui/src/main/resources/ui/src/pages/TagPage/TagPage.tsx | Adds Data Observability tab to Tag page and aligns tab keys with EntityTabs. |
| openmetadata-ui/src/main/resources/ui/src/pages/DataQuality/DataQualityClassBase.ts | Adds “Summary” sidebar entry/tab and makes it the default. |
| openmetadata-ui/src/main/resources/ui/src/constants/DataQuality.constants.ts | Adds dashboard header metadata, dimension defaults, and DQ filter key constants. |
| openmetadata-ui/src/main/resources/ui/src/components/DataQuality/DataQualityDashboard/DataQualityDashboard.component.tsx | New dashboard view with filter bar, cards, and chart grid. |
| openmetadata-ui/src/main/resources/ui/src/components/DataQuality/DataQualityDashboard/DataQualityDashboard.interface.ts | New dashboard filter type(s). |
| openmetadata-ui/src/main/resources/ui/src/components/DataQuality/DataQualityDashboard/data-quality-dashboard.style.less | New styles for dashboard and governance embedding layout. |
| openmetadata-ui/src/main/resources/ui/src/components/DataQuality/DataQuality.interface.ts | Extends widget prop contracts to support new dashboard widgets. |
| openmetadata-ui/src/main/resources/ui/src/components/DataQuality/ChartWidgets/ChartWidgets.constants.ts | Adds shared pie segment orders for consistent click→status mapping. |
| openmetadata-ui/src/main/resources/ui/src/components/DataQuality/ChartWidgets/chart-widgets.less | Adds shared styling helpers for chart widgets. |
| openmetadata-ui/src/main/resources/ui/src/components/DataQuality/ChartWidgets/** | Adds multiple new chart/widget components and corresponding unit tests. |
| openmetadata-ui/src/main/resources/ui/src/locale/languages/*.json | Adds new translation keys across many supported locales. |
| import { TestCaseStatus } from '../../../generated/entity/feed/testCaseResult'; | ||
|
|
||
| /** Segment order for TestCaseStatusPieChartWidget: Success, Failed, Aborted */ | ||
| export const TEST_CASE_STATUS_PIE_SEGMENT_ORDER: TestCaseStatus[] = [ | ||
| TestCaseStatus.Success, | ||
| TestCaseStatus.Failed, | ||
| TestCaseStatus.Aborted, |
There was a problem hiding this comment.
This constants file imports TestCaseStatus from generated/entity/feed/testCaseResult, while DataQualityDashboard and DataQuality.interface.ts use TestCaseStatus from generated/tests/testCase. Mixing enum sources for the same concept tends to break typing (enums are not interchangeable) and can cascade into errors in widgets that consume these constants. Standardize on a single TestCaseStatus enum across the Data Quality dashboard widgets.
| /** Returns path and search for navigating to the Test Cases tab with a status filter. */ | ||
| export const getTestCaseTabPath = (testCaseStatus: TestCaseStatus) => ({ | ||
| pathname: getDataQualityPagePath(DataQualityPageTabs.TEST_CASES), | ||
| search: QueryString.stringify({ testCaseStatus }), | ||
| }); |
There was a problem hiding this comment.
getTestCaseTabPath is typed to accept TestCaseStatus from generated/entity/feed/testCaseResult, but other Data Quality code (e.g., DataQualityDashboard.component.tsx) uses TestCaseStatus from generated/tests/testCase. Since these enums are not assignable to each other in TypeScript, this can lead to type errors at call sites. Align the TestCaseStatus import here with the enum used across the Data Quality UI.
| testCaseSummary.total | ||
| ), | ||
| }), | ||
| [testCaseSummary] |
There was a problem hiding this comment.
The useMemo that builds data/chartLabel uses t(...), but the dependency array only includes testCaseSummary. This can lead to stale labels if the language changes and can trigger react-hooks/exhaustive-deps lint warnings. Include t (and any other referenced values that can change) in the dependency array.
| [testCaseSummary] | |
| [testCaseSummary, t] |
| entityHealthStates.total | ||
| ), | ||
| }), | ||
| [entityHealthStates] |
There was a problem hiding this comment.
This useMemo computes translated labels via t(...), but the dependency array only includes entityHealthStates. That risks stale UI when the active language changes and may violate the repo's hooks linting. Add t (and any other changing references) to the dependency array.
| [entityHealthStates] | |
| [entityHealthStates, t] |
| dataAssetsCoverageStates.total | ||
| ), | ||
| }), | ||
| [dataAssetsCoverageStates] |
There was a problem hiding this comment.
This useMemo uses t(...) for segment labels, but the dependency array only includes dataAssetsCoverageStates. This can produce stale translations and can trip react-hooks/exhaustive-deps. Include t (and any other referenced values that can change) in the dependency array.
| [dataAssetsCoverageStates] | |
| [dataAssetsCoverageStates, t] |
| import { Link } from 'react-router-dom'; | ||
| import { ReactComponent as SuccessIcon } from '../../../../assets/svg/ic-check.svg'; | ||
| import { ReactComponent as FailedIcon } from '../../../../assets/svg/ic-warning-2.svg'; | ||
| import { TestCaseStatus } from '../../../../generated/entity/feed/testCaseResult'; |
There was a problem hiding this comment.
TestCaseStatusAreaChartWidgetProps (from DataQuality.interface.ts) uses TestCaseStatus from generated/tests/testCase, but this component imports TestCaseStatus from generated/entity/feed/testCaseResult. These are different enum types in TypeScript, which can cause TS compile errors and make comparisons like testCaseStatus === TestCaseStatus.Failed unreliable at the type level. Use the same TestCaseStatus enum source consistently (preferably the one used by DataQualityDashboard and the prop types).
| import { TestCaseStatus } from '../../../../generated/entity/feed/testCaseResult'; | |
| import { TestCaseStatus } from '../../../../generated/tests/testCase'; |
Code Review 👍 Approved with suggestions 8 resolved / 10 findingsData quality dashboard migration to open source addresses eight issues including UI rendering, translation coverage, and null-safety checks. Two minor findings remain: NO_DIMENSION constant mismatch with its enum and missing NaN guard on parseInt for document_count. 💡 Bug: NO_DIMENSION constant value mismatches the enum it shadows📄 openmetadata-ui/src/main/resources/ui/src/constants/DataQuality.constants.ts:40 The exported constant Suggested fix💡 Edge Case: parseInt on document_count without NaN guard in transform📄 openmetadata-ui/src/main/resources/ui/src/utils/DataQuality/DataQualityUtils.tsx:711 In Suggested fix✅ 8 resolved✅ Edge Case: Fixed height + overflow-y on all tab panes may cause double scrollbars
✅ Quality: Persian (pr-pr.json) translations are copy-pasted Arabic
✅ Quality: Several languages leave
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Gitar
|



Fixes #26705
Fixes https://github.com/open-metadata/openmetadata-collate/issues/3250
Screen.Recording.2026-03-27.at.9.35.12.PM.mov
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>