Skip to content

[2.1] Fixes #38297: Route suggestions on unowned assets through every owner to the admins (backport 2.1 #38307, #38475) - #38560

Merged
Shreyansh100704 merged 3 commits into
2.1from
backport/2.1/pr-38307-38475
Nov 24, 2026
Merged

Shreyansh100704 merged 3 commits into
2.1from
backport/2.1/pr-38307-38475

Conversation

@Shreyansh100704

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #38297

Backport of #38307 and #38475 to 2.1. They ship together: #38475 changes the 2.1.1 migration that #38307 adds.

Both commits are cherry-picked with -x. Every touched file was identical on main (before each PR) and 2.1, except two that 2.1 does not have: MigrationArchitectureTest and the ADR 2026-11-11-a-data-migration-carries-its-own-logic. Their hunks are dropped, and a third commit removes the references to them from the two carried ADRs.

Type of change:

  • Bug fix

Tests:

Run locally on this branch: SetApprovalAssigneesImplTest (33), SuggestionTaskOwnerFallbackMigrationTest (5), WorkflowBpmnStableAcrossJvmsTest (1), WorkflowDefinitionRepositoryReadableTest (1): 40 passed.

Not run locally: WorkflowTaskAssigneesIT and WorkflowStartupDeployIT. They run in the merge queue.

Shreyansh100704 and others added 3 commits November 24, 2026 13:38
…to the admins (#38307)

* feat(governance): let an approval task fall back to service and domain owners

* feat(governance): route unowned suggestion tasks through every owner to the admins

* test(governance): suggestion tasks reach service owners, then admins

* fix(governance): look past owners who are the requester in the owner cascade

* fix(governance): drop an unworkable remedy from the v211 migration error

* test(migrations): list the 2.1.1 Migration classes as exceptions instead of widening the rule

(cherry picked from commit b19c2d2)
…tart (#38475)

* fix(governance): deploy changed workflows on server start, not in migrations

* fix(governance): build the same workflow BPMN in every JVM

* docs(decisions): note the one extra deploy after a save that reorders map keys

* fix(governance): skip an unreadable workflow instead of deploying none on start

* fix(governance): name the workflow skipped as unreadable

* fix(governance): log the skipped workflow by its name

(cherry picked from commit 3cdf00c)
@Shreyansh100704
Shreyansh100704 requested a review from a team as a code owner November 24, 2026 08:26
@Shreyansh100704
Shreyansh100704 requested review from sonika-shah and removed request for a team November 24, 2026 08:26
@Shreyansh100704 Shreyansh100704 added the safe to test Add this label to run secure Github workflows on PRs label Nov 24, 2026
@github-actions

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 Nov 24, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk

Startup now deploys changed BPMN for every readable stored workflow, which could alter task routing and execution across governance workflows.

Backports the suggestion owner fallback to 2.1, routing suggestions on unowned assets through service owners, then domain owners, then admins excluding the requester via an opt-in cascadeOwners option, plus a 2.1.1 migration. Also makes server startup redeploy any workflow whose BPMN differs from its latest deployment. 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

@Shreyansh100704
Shreyansh100704 merged commit d93eade into 2.1 Nov 24, 2026
51 of 52 checks passed
@Shreyansh100704
Shreyansh100704 deleted the backport/2.1/pr-38307-38475 branch November 24, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant