fix permissions and add specs for domain and dp#25782
fix permissions and add specs for domain and dp#25782
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! |
...ain/resources/ui/src/components/DataProducts/DataProductsPage/DataProductsPage.component.tsx
Show resolved
Hide resolved
🔍 CI failure analysis for 8e8825b: Two Playwright shards failed with flaky tests unrelated to PR changes. Shard 2/6: persistent KPI Widget rendering timeout. Shard 3/6: 10 tests failed initially, 9 recovered on retry including the one test involving domain/data products.IssueTwo Playwright E2E job shards failed with multiple test failures:
Root CauseAll failures are not related to the PR changes. This PR only modifies:
The failing tests exercise completely different functionality: bulk editing, glossary operations, impact analysis, service permissions, and entity restoration. DetailsShard 2/6 - KPI Widget Test (Persistent Failure)Test: Error: Pattern: Failed on both initial run and retry #1. This test exercises home page KPI widget rendering, which is unrelated to domain/data product permission enforcement. Shard 3/6 - Multiple Test Failures (9 Recovered on Retry)Failed Tests (all recovered on retry except one):
Error Patterns:
Notably, test #10 which involves "domain and data products" passed successfully on retry, demonstrating that the permission changes in this PR do not cause functional issues with domain/data product operations. AnalysisThese are flaky test failures caused by timing issues, race conditions, or test environment instability:
The failures are environmental/timing-related and not caused by the permission enforcement changes in this PR. Code Review ✅ Approved 1 resolved / 1 findingsClean implementation of domain and data product view permission checks at both route and component levels. The previous finding about ✅ 1 resolved✅ Bug:
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|



Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
/domain/*and/dataProductroutes withAdminProtectedRoutecheckingViewBasicorViewAllpermissionsDomainDetailPage.component.tsxandDataProductsPage.component.tsxto handle both frontend checks and backend 403 responsesisForbiddenstate on each fetch to prevent stale permission errors when navigating between entitiesErrorPlaceHolderwith permission message when users lack domain or data product view permissionsDomainViewPermissions.spec.tsvalidates permission denial for domain and data product listing and detail pagesThis will update automatically on new commits.