Skip to content

List the data asset types in the default claim rule (backport 2.1 #39709) - #39710

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

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

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.1: 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.1.2 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, AppEventSubscriptionRemovalIT, on MySQL and Postgres.
  • Manual: a fresh install and an upgrade from the previous release on MySQL and Postgres.

Local Java test run: PASSED

  • Commit: fd6037dd081f (base origin/2.1)
  • Finished: 2026-12-03 15:24 UTC · 4.4 min
  • Scope: focused; merge readiness is not established. Broader steps deferred: 6 (run --scope full).
Step Scope Classes Tests Failed Skipped Min Result
unit openmetadata-service (2 classes) 2 88 0 0 1.3 passed
integration mysql-elasticsearch · parallel 4 340 0 31 3.1 passed
  • Impacted, not run locally: 2 classes (listed in the details)

@manerow
manerow requested review from a team as code owners December 3, 2026 15:31
@manerow
manerow requested review from pmbrull and shrabantipaul-collate 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 default claim rule and upgrade migration narrow EditOwners to named data assets, changing authorization and potentially blocking users from claiming other unowned items.

Lists the data asset types in the default claim rule of the Organization Policy instead of applying all, with a post data migration in 2.1.2 to update existing installs. 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 96b70fd into 2.1 Dec 4, 2026
46 of 48 checks passed
@manerow
manerow deleted the default-claim-rule-data-assets-2.1 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