Repository navigation
[2.1] Fixes #38921: choose what happens when no one else can approve a step - #38968
Merged
Merged
Conversation
…#38923) * Fixes #38921: choose what happens when no one else can approve a step The approval step form saved emptyAssigneeStrategy but showed no control for it, so switching a step to assignAdmins or wait needed an API edit. Add a Select with all three schema values, each with a hint, and a note that the setting also covers an approver who made the change. The form's hand-written 'none' | 'assignAdmins' types become the generated EmptyAssigneeStrategy, so a step saved with wait shows it instead of a blank select. The OSS restrictions spec now picks Assign to admins and asserts the PUT; its workflow skips every real table so other workers' tables never open admin tasks. * Word the no-approver hints to match what the backend does Under assignAdmins, when the requester is the only admin, the owner fallback can still route the task to the asset's owners, so "never to the person who made the change" overpromised; "no one is asked to approve their own change" did too, and the none hint's "task stays unassigned" ignored the same fallback. List the default option first, check the saved strategy after reopening the step, and name the trigger filter for what it does (it excludes every table). * Show the task-workflow outcome for none on noOp workflows A task workflow (noOp trigger) never approves on its own: SetApprovalAssigneesImpl keeps hasAssignees true for workflow-managed tasks, and the owner fallback sends the open task to the asset's owners. Its read-only approval step showed "Approve automatically" for the default; it now shows "Go to the asset's owners" with a matching hint. * Never hand a task back to its creator; let a later step approve on its own Owner fallback: a task created with no assignee fell back to all the asset's owners, so under assignAdmins with the requester as the only admin it could assign the requester, who as filer cannot resolve it. The fallback now skips the task's creator. Later approval steps: the first step's CreateTask leaves taskEntityId at process scope, and a step read any taskEntityId as a task workflow's, so a second step with nobody to ask opened a task under none instead of approving. A taskEntityId whose task belongs to an entity-event workflow no longer counts. UI: the builder offers Approve automatically and Assign to admins; a step that already stores wait still shows it. The Assign to admins hint names the owner fallback, and the doubled margin above the select is gone. ADR 2026-11-25 gets a v2 amendment. * Regenerate the Playwright impact map (cherry picked from commit 52d2fd2)
gh-bot-collate
Bot
requested review from
sonika-shah and
sweta1308
and removed request for
a team
November 27, 2026 11:20
Author
|
🤖 This backport will not merge itself: |
12 of 13 tasks
5 tasks done
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.
Automated backport of #38923 to
2.1.52d2fd267530ac7f2ab484c6d8c511c75c4c2355main.Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #38923 is asked to look.
resolver run