Skip to content

List the data asset types in the default claim rule (backport 2.0 #39709) - #39711

Merged
manerow merged 3 commits into
2.0from
default-claim-rule-data-assets-2.0
Dec 4, 2026
Merged

manerow merged 3 commits into
2.0from
default-claim-rule-data-assets-2.0

Conversation

@manerow

@manerow manerow commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Issue

Cherry-pick of #39709 (Part of open-metadata/openmetadata-collate#8360)

What

The same change as #39709 on 2.0: the default claim rule in the Organization Policy lists the data asset types it applies to instead of all. Existing installs that still have the shipped rule get the list from one statement in the 2.0.11 post data migration, with the same text as on main.

Tests

  • Unit: OrganizationPolicyDefaultsTest, OrganizationPolicyClaimSqlMigrationTest (the migration statement on MySQL and Postgres, run twice).
  • Java IT: OrganizationPolicyDefaultsIT, PermissionsResourceIT, McpPermissionIT, WorkflowTriggerPermissionsIT, on MySQL and Postgres.
  • Playwright: the permission and owner specs (Teams, EntityDataConsumer, EntityDataSteward, ContextCenterPermission, the Permissions specs, Policies, the right panel specs): 581 passed; the failures pass when run alone or fail the same way without this change.
  • Manual: a fresh install and an upgrade from the previous release on MySQL and Postgres.

Summary by Gitar

  • Claim rule scope: Lists the data asset types in OrganizationPolicy-NoOwner-Rule instead of all
    • Added 2.0.11 post data migration statements for MySQL and Postgres that narrow only the shipped rule
  • Tests: Added unit, migration, and integration coverage for the claim rule
    • Updated Playwright and IT expectations for unowned teams and workflow ownership
  • Decision record: Added ADR 2026-12-02-only-data-assets-can-be-claimed-by-default

This will update automatically on new commits.

@manerow
manerow requested review from a team as code owners December 3, 2026 15:31
@manerow
manerow requested review from shah-harshit and yan-3005 and removed request for a team December 3, 2026 15:31
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Dec 4, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk

The migration narrows default owner-claim authorization to data assets, so users may lose the ability to claim other unowned items.

Changes the default claim rule in OrganizationPolicy-NoOwner-Rule to list the data asset types it applies to instead of all, with a 2.0.11 post data migration narrowing existing installs on MySQL and Postgres. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@manerow
manerow merged commit 6278e6b into 2.0 Dec 4, 2026
66 of 68 checks passed
@manerow
manerow deleted the default-claim-rule-data-assets-2.0 branch December 4, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants