-
Notifications
You must be signed in to change notification settings - Fork 207
Bug 1883428 - Improve the needinfo email situation #2698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Xzzz
wants to merge
25
commits into
mozilla:master
Choose a base branch
from
Xzzz:bug-1883428
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
92f5fd1
Bug 1883428 - Improve the needinfo email situation (use HTML, drop un…
Xzzz 36bcec8
Bug 1883428 - Port flag-event bugmail content into the BMO extension …
Xzzz a2ea1b7
Bug 1883428 - Fix missing FILTER directives to flag-event bugmail HTM…
Xzzz 98250c6
Bug 1883428 - Only treat an X/answer flag_activity row as answering t…
Xzzz c69dc88
Bug 1883428 - Gate flag-event recipients and mail content on private-…
Xzzz c335c18
Bug 1883428 - Don't re-fetch a possibly-deleted attachment in _get_fl…
Xzzz 12eba34
Bug 1883428 - Fix flag-type cc_list email tmpl: undefined terms, wron…
Xzzz c0e7276
Bug 1883428 - Flatten flag_events before the enqueue and re-check att…
Xzzz 9ae8d93
Bug 1883428 - Do not let watchers inherit flag roles from the person …
Xzzz 717ec99
Bug 1883428 - Fix flag-event recipient/content selection bugs
Xzzz a633689
Bug 1883428 - Add a unit test for flag-event attachment visibility co…
Xzzz 1d7b04b
Bug 1883428 - Fix critic violations in the flag-events test
Xzzz 232a9fd
Bug 1883428 - Guard flag_events deref in dequeue for already-queued jobs
Xzzz 63e0cb0
Bug 1883428 - Build flag type with new_from_list for flatten_to_hash
Xzzz 4ab3ba6
Bug 1883428 - Don't drop flag-only mail in dequeue's empty-mail bail
Xzzz f6dcc18
Bug 1883428 - Don't let the bug-ignore list suppress flag notifications
Xzzz b2f8aaf
Bug 1883428 - Skip flag relationships in the email_setting sync loops
Xzzz 044a368
Bug 1883428 - Thread flag-type cc_list mail with the rest of the bug'…
Xzzz 5e9b159
Bug 1883428 - Send bugmail for flags cleared by a flag type edit
Xzzz 3ed36a3
Bug 1883428 - Don't skip flag-only changes in BugMail::Send
Xzzz f6757bf
Bug 1883428 - Move the needinfo headline into the Needinfo flag_event…
Xzzz 0fea33b
Bug 1883428 - Notify flag type cc_list of every flag change as notify…
Xzzz 9162932
Bug 1883428 - Queue bugmail for bugs affected by a flag type edit
Xzzz 3ce837a
Bug 1883428 - Add DB-backed tests for flag mail events and recipients
Xzzz 80144a2
Bug 1883428 - Drop stringy eval from BugMailSend
Xzzz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # This Source Code Form is subject to the terms of the Mozilla Public | ||
| # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| # file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| # | ||
| # This Source Code Form is "Incompatible With Secondary Licenses", as | ||
| # defined by the Mozilla Public License, v. 2.0. | ||
|
|
||
| package Bugzilla::Job::BugMailSend; | ||
|
|
||
| use 5.10.1; | ||
| use strict; | ||
| use warnings; | ||
|
|
||
| use Bugzilla::Bug; | ||
| use Bugzilla::BugMail; | ||
| use Bugzilla::User; | ||
| use parent qw(Bugzilla::Job::Mailer); | ||
|
|
||
| # Runs BugMail::Send for a list of bugs, for callers that touch too many | ||
| # bugs to do it inside the web request (e.g. a flag type inclusion/exclusion | ||
| # edit clearing flags across many bugs). A retry after a partial failure | ||
| # doesn't re-mail bugs already done: Send advances lastdiffed, so their | ||
| # window is empty the second time. | ||
| sub process_job { | ||
| my ($class, $arg) = @_; | ||
| my $changer = Bugzilla::User->new($arg->{changer_id}); | ||
| Bugzilla->set_user($changer); | ||
|
|
||
| # new_from_list skips bugs deleted since the job was queued. | ||
| Bugzilla::BugMail::Send($_->id, {changer => $changer}) | ||
| foreach @{Bugzilla::Bug->new_from_list($arg->{bug_ids})}; | ||
| } | ||
|
|
||
| 1; |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.