Skip to content

Fixes #36555: Owners on task alerts reach the task's creator and the asset's owners - #36681

Merged
manerow merged 4 commits into
mainfrom
fix/36555-task-owners-recipients
Nov 3, 2026
Merged

manerow merged 4 commits into
mainfrom
fix/36555-task-owners-recipients

Conversation

@manerow

@manerow manerow commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

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

  • Owners on a task alert reaches the task's creator plus the owners of the asset the task is about (inherited owners included, so an incident reaches the owners of its test case). Tasks and conversations now share one code path for this.
  • A creator who is a bot is skipped. An incident opened for a failed test emails the test case's owners, not the ingestion bot. The rule sits in the shared path, so Owners means the same for conversations.
  • A task that is not about an asset reaches only its creator.
  • The alert catalog offers Owners for the Task source again, so every alert form shows it. No migration is needed: saved alerts already store Owners.
  • Who a task is assigned to, and who the Assignees and Mentions recipients reach, stay unchanged.

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, CapabilitiesIT and AlertRecipients.spec.ts now expect Owners for Task.
  • Checked by hand on a local Collate with real email: the suggestion flow, an incident opened by the ingestion bot, the alert form, and upgrades from 2.0.5 and 1.13.6 with the alert saved before the upgrade.

@manerow
manerow enabled auto-merge November 2, 2026 10:44
@manerow
manerow added this pull request to the merge queue Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-11-02T17:54:37Z)

Blocked the queue: integration-tests-mysql-elasticsearch

@manerow
manerow added this pull request to the merge queue Nov 3, 2026
@manerow
manerow removed this pull request from the merge queue due to a manual request Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-11-03T08:25:26Z)

The entry left the queue before it was built, so no checks ran against it.

@manerow
manerow added this pull request to the merge queue Nov 3, 2026
@gitar-bot

gitar-bot Bot commented Nov 3, 2026

Copy link
Copy Markdown
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.

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

@manerow
manerow enabled auto-merge (squash) November 3, 2026 19:40
@manerow
manerow merged commit 315ff12 into main Nov 3, 2026
67 checks passed
@manerow
manerow deleted the fix/36555-task-owners-recipients branch November 3, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 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.

Owners on task alerts should notify the task's creator and the asset's owners, as on conversation alerts

3 participants