Skip to content

[2.1] Fixes 38699: Never give an approval back to its requester - #38816

Merged
yan-3005 merged 1 commit into
2.1from
backport/2.1/pr-38708
Nov 26, 2026
Merged

yan-3005 merged 1 commit into
2.1from
backport/2.1/pr-38708

Conversation

@gh-bot-collate

Copy link
Copy Markdown

Automated backport of #38708 to 2.1.

Source PR #38708
Author @yan-3005
Merge commit f6b7cf2963bdcb1762de2f0e8dc39e7b38aa28a7
Method Clean cherry-pick — identical to the commit on main.

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 #38708 is asked to look.

resolver run

* Fixes #38699: never give an approval back to its requester

An approval node removes the requester (the editor whose change started the
run) from its assignees. For workflows not managed by a task workflow, an
emptied list was given back to the requester under the default "none"
empty-assignee strategy. The task is filed by the requester and
TaskAuthorPolicy denies a filer ResolveTask, so the only assignee could not
approve it and the run never finished.

The requester is now never an assignee. An emptied list goes to the node's
empty-assignee strategy: none approves automatically, assignAdmins assigns the
other admins, wait opens the task unassigned.

Tests: SetApprovalAssigneesImplTest flips the case that locked in the
give-back and adds the assignAdmins case; WorkflowDefinitionResourceIT covers
owners / reviewers / owners+reviewers x none / assignAdmins / wait, both when
the editor is the only approver and when someone else can approve.

* Correct the self-approval rationale and add the upgrade note

* Amend the glossary-proposals record: a sole editor no longer keeps their approval

(cherry picked from commit f6b7cf2)
@gh-bot-collate
gh-bot-collate Bot requested a review from a team as a code owner November 26, 2026 09:25
@gh-bot-collate
gh-bot-collate Bot requested review from harshach and removed request for a team November 26, 2026 09:25
@gh-bot-collate gh-bot-collate Bot added the safe to test Add this label to run secure Github workflows on PRs label Nov 26, 2026
@gh-bot-collate

Copy link
Copy Markdown
Author

🤖 This backport will not merge itself: 2.1 has no required status checks, so there is nothing for auto-merge to wait on. Merge it by hand once CI is green.

@yan-3005
yan-3005 merged commit 778dc3d into 2.1 Nov 26, 2026
45 checks passed
@yan-3005
yan-3005 deleted the backport/2.1/pr-38708 branch November 26, 2026 10:26
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.

3 participants