Repository navigation
[2.1] Give the ContextCenterPermission spec's article an owner - #38889
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.
ShaileshParmar11
requested review from
shrabantipaul-collate
and removed request for
a team
November 26, 2026 16:29
7 of 8 tasks
6 of 7 tasks
Code Review ✅ Approved 🟢 Low riskThe Playwright spec now creates an admin-owned article, making its owner-permission assertions representative without changing production behavior. Gives the shared ContextCenterPermission Playwright article an admin owner so the spec's 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 |
anuj-kumary
approved these changes
Nov 26, 2026
ShaileshParmar11
deleted the
ShaileshParmar11/2.1-cc-permission-article-owner
branch
November 26, 2026 16:55
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:
Backport of #38888 to
2.1. Fixes the ContextCenterPermission Playwright failures that #38819 (the2.1backport of #38818, for #38800) exposes on2.1. 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:2.1already opens the spec's own article throughopenPermissionArticle. AuditLogs on2.1already selectsgetByTestId('description-content').The spec on
2.1is identical tomain's, so this is a clean cherry-pick of #38888.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
playwright/e2e/Features/ContextCenterPermission.spec.tsprettier --checkandeslintclean on the file;tsc --noEmit -p playwright/tsconfig.jsonreports no errors.2.1stack (none available locally). The spec on2.1is byte-identical tomain's, and [2.1] Fixes #38800: Gate article header actions on the article's own permission #38819 is the same header change as Fixes #38800: Gate article header actions on the article's own permission #38818, so themainrun of this change (Give the ContextCenterPermission spec's article an owner #38888) stands in for it. That run's results: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.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.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 616cf50. 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(same on2.1).🤖 Generated with Claude Code