Skip to content

Bug 2087012 - @username mentions when a bug is created should needinfo the person - #2809

Merged
dklawren merged 6 commits into
mozilla:masterfrom
dklawren:2087012
Nov 6, 2026
Merged

dklawren merged 6 commits into
mozilla:masterfrom
dklawren:2087012

Conversation

@dklawren

@dklawren dklawren commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Comment 0 is inserted directly by Bug->create, so it never reached added_comments and _process_mentions ignored it. bug_end_of_create now keeps the description on the new bug, and _process_mentions handles it in the update that follows creation, after the form's flags are set, so all the existing mention rules and needinfo dedupe apply unchanged.

…o the person

Comment 0 is inserted directly by Bug->create, so it never reached added_comments and _process_mentions ignored it. bug_end_of_create now
  keeps the description on the new bug, and _process_mentions handles it in the update that follows creation, after the form's flags are set, so all the existing mention rules and needinfo dedupe apply unchanged.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The test’s END block can overwrite the persistent mentions setting with an undefined value when the test is skipped before capturing the original setting.

1 open issue
What changed in this PR

This PR makes @username mentions in new bug descriptions use the existing CC and needinfo processing, after flags from the creation form are set.

Changes:

  • Preserve the initial description for one-time mention processing during the first update.
  • Reuse existing mention safeguards and needinfo deduplication.
  • Add unit and integration coverage for creation-time mentions, explicit flags, API exclusion, and access restrictions.
File Description
extensions/​Needinfo/​t/​mentions.t Adds unit coverage for description mentions and one-time processing.
extensions/​Needinfo/​t/​bmo/​mentions-on-create.t Adds web and API integration coverage for mentions during bug creation.
extensions/​Needinfo/​Extension.pm Captures new bug descriptions and includes them in existing mention processing.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the change enabling mentions in new-bug descriptions to trigger CC additions and needinfo requests.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@dklawren
dklawren requested review from Xzzz and cgsheeh November 4, 2026 19:29

@Xzzz Xzzz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

Comment thread extensions/Needinfo/Extension.pm Resolved
@dklawren
dklawren requested a review from cgsheeh November 6, 2026 19:49
Comment thread extensions/Needinfo/Extension.pm Resolved
@dklawren
dklawren merged commit 3aa71da into mozilla:master Nov 6, 2026
7 checks passed
@dklawren
dklawren deleted the 2087012 branch November 6, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants