Repository navigation
Fixes #36555: Owners on task alerts reach the task's creator and the asset's owners (backport 2.0 #36681) - #36693
Merged
Merged
Conversation
manerow
marked this pull request as ready for review
October 30, 2026 11:47
Code Review ✅ Approved🟡 Medium risk · Changing task and thread alert recipients adds creators and asset owners while filtering bots; mistakes could expose alerts to unintended people or omit recipients. Owners on task alerts now reach the task's creator and the owners of the asset the task is about, instead of only the creator, with bot creators skipped so incidents email the test case owners rather than the ingestion bot. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
yan-3005
approved these changes
Nov 2, 2026
This branch was previously deployed
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.
Issue
Fixes #36555
Port of PR #36681 to the 2.0 release branch. 2.0 has the older recipient code under
notifications/recipients, so the commit cannot be cherry-picked; this applies the same rule there. PR #36681 explains the problem.What changes
OwnerRecipientResolverhandles a task next to a thread, in bothresolvemethods: Owners reaches the task's creator plus the owners of the asset the task is about (inherited owners included). A task that is not about an asset reaches only its creator.UserRecipientResolver.resolvePeopleis the variant that leaves bots out.How it was tested on 2.0
OwnerRecipientResolverTest(new): creator plus asset owners, no asset, asset gone, bot creator for a task and for a thread, and a task read by id. All six fail on 2.0 without this change; with it, they pass withRecipientResolutionTest(17 tests).IncidentTaskNotificationIT,EventSubscriptionResourceIT(246 tests, no failures).