-
Notifications
You must be signed in to change notification settings - Fork 203
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
12
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.
+577
−324
Open
Changes from all commits
Commits
Show all changes
12 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 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
18 changes: 18 additions & 0 deletions
18
extensions/Needinfo/template/en/default/hook/email/bugmail-flag_event.html.tmpl
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,18 @@ | ||
| [%# 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. | ||
| #%] | ||
|
|
||
| [% RETURN UNLESS event.action == 'requested' && event.type.name == 'needinfo' %] | ||
| <br> | ||
| [% IF event.requestee_id == bug.reporter.id %] | ||
| Since you reported this [% terms.bug %], the person asking needs your input to understand it. | ||
| Responding to the question will enable developers to take further action on this [% terms.bug %]. | ||
| [% ELSE %] | ||
| Please respond as soon as possible so developers may take action on this [% terms.bug %]. | ||
| [% END %] | ||
| If you have questions about responding to needinfo requests, please see the | ||
| <a href="https://wiki.mozilla.org/BMO/UserGuide#Needinfo_Flag">needinfo user guide</a>. |
16 changes: 16 additions & 0 deletions
16
extensions/Needinfo/template/en/default/hook/email/bugmail-flag_event.txt.tmpl
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,16 @@ | ||
| [%# 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. | ||
| #%] | ||
|
|
||
| [% RETURN UNLESS event.action == 'requested' && event.type.name == 'needinfo' %] | ||
| [% IF event.requestee_id == bug.reporter.id %] | ||
| Since you reported this [% terms.bug %], the person asking needs your input to understand it. Responding to the question will enable developers to take further action on this [% terms.bug %]. | ||
| [% ELSE %] | ||
| Please respond as soon as possible so developers may take action on this [% terms.bug %]. | ||
| [% END %] | ||
| If you have questions about responding to needinfo requests, please see | ||
| https://wiki.mozilla.org/BMO/UserGuide#Needinfo_Flag. |
35 changes: 0 additions & 35 deletions
35
extensions/Needinfo/template/en/default/hook/request/email-after_summary.txt.tmpl
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
extensions/Splinter/template/en/default/hook/email/bugmail-flag_event.html.tmpl
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,14 @@ | ||
| [%# 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. | ||
| #%] | ||
|
|
||
| [% USE Bugzilla %] | ||
| [% RETURN UNLESS event.action == 'requested' | ||
| && (event.type.name == 'review' || event.type.name == 'feedback') | ||
| && event.attachment && event.attachment.can_review %] | ||
| <br> | ||
| <a href="[% Bugzilla.splinter_review_url(bug.id, event.attachment_id, 1) FILTER html %]">Review</a> |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
putting these in RELATIONSHIPS is needed for the X-Bugzilla-Reason header, but it also feeds
Bugzilla::User::createanduserprefs.cgi, which both iteraterelationships(). every new account now gets email_setting rows for rel 6/7/8 across all POS/NEG events, and userprefs deletes them again on the next save because the prefs template renders no checkboxes for them. these rels bypasswants_bug_mailentirely so the rows never do anything, worth skipping them in those two loops