Repository navigation
Fixes #36555: Owners on task alerts reach the task's creator and the asset's owners - #36681
Conversation
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
Code Review ✅ Approved🟡 Medium risk · Changing task and conversation Owners resolution to notify creators and related asset owners could send alerts to unintended recipients if ownership links are unexpected. Owners on task alerts now reach the task's creator plus the owners of the asset the task is about, fixing the case where the recipient reached nobody after upgrading to 2.0. Tasks and conversations share one resolution path, with bot creators skipped. 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 |
Issue
Fixes #36555
Problem
On a task alert, the Owners recipient reached nobody. A task has no owners of its own, so the alert looked for the task's owners, found none, and sent nothing, while still counting each event as sent.
In 1.13, Owners on a task alert meant the person who filed the task plus the owners of the asset the task is about. Alerts set up that way stopped notifying anyone after upgrading to 2.0. Conversations already work this way today.
What changes
Tests
OwnerRecipientResolverTest(new): creator plus asset owners, no asset, asset gone, bot creator for a task and for a conversation, and a task read by id. All six fail on the code before this change.TaskOwnersNotificationIT(new): files and resolves a description task; the creator and the table owner each receive both events, through the webhook on their profile.SourceCapabilitiesTest,CapabilitiesITandAlertRecipients.spec.tsnow expect Owners for Task.