Repository navigation
Give the ContextCenterPermission spec's article an owner - #38888
Merged
ShaileshParmar11 merged 1 commit intoNov 26, 2026
Merged
Conversation
#38818 (#38800) gates the article header's owner, domain and delete actions on the open article's own permission. The spec's shared article had no owner, and OrganizationPolicy-NoOwner-Rule lets any user set the owner of an unowned asset, so edit-owner-btn is now correctly shown to view-only and Data Consumer users. Create the article with the admin as owner so the check is about EditOwners again.
7 of 8 tasks
Contributor
Author
|
Backport to |
6 of 7 tasks
Code Review ✅ Approved 🟢 Low riskThe Playwright spec now creates its article with an admin owner, narrowly correcting permission-test setup without changing production behavior. Gives the ContextCenterPermission spec's shared article an admin owner so the view-only, ViewAll-only and Data Consumer checks test 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 |
ShaileshParmar11
enabled auto-merge (squash)
November 26, 2026 16:55
anuj-kumary
approved these changes
Nov 26, 2026
ShaileshParmar11
deleted the
ShaileshParmar11/cc-permission-article-owner
branch
November 26, 2026 16:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
Fixes the ContextCenterPermission Playwright failures that #38818 (for #38800) exposes on
main. Port of theContextCenterPermissionpart of #38887 (the2.0fix).OrganizationPolicy-NoOwner-RuleallowsEditOwnerson any asset with no owner (noOwner()), so the article-level permission isEditOwners: allowfor every user, and the server accepts that PATCH.edit-owner-btnis therefore correctly shown to the view-only, ViewAll-only and Data Consumer users, and the spec's "not visible" assertions fail. The UI is right; the spec is stale.EditOwnersagain.The
2.0PR also changed how the ViewAll-only and Data Consumer tests open the article. That part is not needed here:mainalready opens the spec's own article throughopenPermissionArticle. AuditLogs onmainalready selectsgetByTestId('description-content').main's last nightly (Nov 24) ran before #38818 merged on Nov 26, so it has not failed there yet. The2.1backport of this fix is linked in a comment below.Type of change:
High-level design:
N/A — test-only change, 1 file.
Tests:
Use cases covered
Unit tests
Not applicable (Playwright spec only).
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Local Playwright run: FAILED
c022cd301a8e(baseorigin/main)playwright/e2e/Features/ContextCenterPermission.spec.tsplaywright/e2e/Features/Dashboards.spec.tsplaywright/e2e/Flow/Navbar.spec.tsplaywright/e2e/Pages/DataMarketplace.spec.tsplaywright/e2e/Pages/Lineage/LineageControls.spec.tsplaywright/e2e/Pages/Policies.spec.tsplaywright/e2e/auth.setup.tsplaywright/e2e/entity-data.setup.tsplaywright/e2e/entity-data.teardown.tsCommand
ContextCenterPermission.spec.ts: 35/35 passed. That includes the view-only, ViewAll-only and Data Consumeredit-owner-btnchecks, which failed on the2.0nightly once the header was gated on the article's own permission.The one failure is the smoke spec
Dashboards.spec.ts:189(expand / collapse should not appear after updating nested fields for dashboardDataModels). It fails on a rerun too: the tag picker search forPersonalData.Personalreturns "No Tags are available" on this local stack's search index. That is local data, not this spec-only change, which touches no Dashboards code.File updated:
playwright/e2e/Features/ContextCenterPermission.spec.tsLocal checks:
prettier --checkandeslintclean on the file;tsc --noEmit -p playwright/tsconfig.jsonreports no errors.Ran locally against the
mainstack at881d635(MySQL), with the UI served from this branch by the Vite dev server, so the UI includes Fixes #38800: Gate article header actions on the article's own permission #38818. Results are in the block above.Manual testing performed
2.0nightly traces behind [2.0] Fix ContextCenterPermission and AuditLogs specs broken by the article-permission and Audit Logs backports #38887: resource-levelEditOwners: conditionalAllow, article-levelEditOwners: allow, articleowners: [].edit-owner-btnthroughEditAll/EditOwners. The owner-only rules (isOwner(),!isOwner() && !noOwner()) targetcontextMemoryonly, not the article.UI screen recording:
Not applicable (test-only change).
Checklist:
Fixes <issue-number>: <short explanation>— test fix, no issue (skip-pr-checks).REVIEW.mdat c022cd3. No 🔴 findings. Test map: the changed file is a spec (its own test). Two 🟡 answered: the admin owner is not asserted (the view-onlyedit-owner-btnstep fails if the owner is dropped, which is the guard), and the Data Steward still seesedit-owner-btnviaEditOwnersinDataStewardPolicy.🤖 Generated with Claude Code