Improve the needinfo email situation (use HTML, drop unnecessary emails)
Categories
(bugzilla.mozilla.org :: Email Notifications, enhancement)
Tracking
()
People
(Reporter: dholbert, Assigned: dkl)
Details
Attachments
(2 files)
[Filing this bug for an issue that I noticed with the bugmail that I received for bug 1883370 comment 4:]
STR:
- Have a pending needinfo on some bug.
- Type out some numbered list into a bugzilla comment, where you simply put
1.
for every list entry, as I'm doing for the STR here, and make sure that you check the box to cancel your needinfo. - (optional) Use
Preview
view of your comment to confirm that Bugzilla renders the numbers as 1,2,3, etc. - Submit your comment.
- Look at the email you receive.
ACTUAL RESULTS:
The email notification for "needinfo canceled" shows 1.
for every list entry.
EXPECTED RESULTS:
The email notification should show 1,2,3, etc., matching the preview and actual rendered comment on the bug page.
Reporter | ||
Comment 1•7 months ago
|
||
Hmm, actually comment 0 here did generate bugmail for me that had the proper numbering. I noticed this happening on another bug, though; I'll post a screenshot where I saw it.
Just in case this is specific to comments after the first one, let me try again here...
- one
- two
- three
Reporter | ||
Comment 2•7 months ago
|
||
Here's a screenshot of the bugmail for where I saw this, which was the bugmail for
bug 1883370 comment 4.
(comment 1 here didn't trigger this issue for me either, so I'm unsure about the actual STR that are required to trigger this.)
Reporter | ||
Updated•7 months ago
|
Reporter | ||
Comment 3•7 months ago
|
||
Kagami: do you know what happened here? Maybe you used some other way of getting a numbered list, different from what I wrote in comment 0 here? (I'm wondering how your bugzilla comment triggered this but mine don't seem to be triggering it. I suppose it's conceivable it was a one-off bugzilla hiccup or something, too.)
Comment 4•7 months ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #3)
(In reply to Kagami [:saschanaz] (they/them) from comment #0)
Just got a report from a user that their notification now goes behind other windows
Do we have any more info on environment (i.e. affected system configurations) and/or STR?
Yup.
- On Windows 11, set
alerts.useSystemBackend=false
- Open https://www.bennish.net/web-notifications.html
- Click Authorize and then Show
- Bring some other window over the notification and see if it goes behind the window
Just copypasted the same comment here, let's see. (But how are you triggering the bug yourself, is Bugzilla sending you notification for your own comment?)
Reporter | ||
Comment 5•7 months ago
•
|
||
(In reply to Kagami [:saschanaz] (they/them) from comment #4)
Just copypasted the same comment here, let's see.
Interesting. I don't see the bug in the bugmail for this version of your comment.
(But how are you triggering the bug yourself, is Bugzilla sending you notification for your own comment?)
Yes, I've opted in to getting bugmail for my own bugzilla comments (I don't recall if that's on by default or not).
FWIW: using DevTools to inspect Gmail: in the affected bugmail-email over on bug 1883370 comment 4, I see a literal 1.
in DevTools' view of the html markup for each of the list-entries; whereas it shows <ol>
/<li>
(good) for the bugmails where we have tried and failed to repro this on-demand on this bug here.
Comment 6•7 months ago
|
||
Copypasting once more without any extra comment...
Comment 7•7 months ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #3)
(In reply to Kagami [:saschanaz] (they/them) from comment #0)
Just got a report from a user that their notification now goes behind other windows
Do we have any more info on environment (i.e. affected system configurations) and/or STR?
Yup.
- On Windows 11, set
alerts.useSystemBackend=false
- Open https://www.bennish.net/web-notifications.html
- Click Authorize and then Show
- Bring some other window over the notification and see if it goes behind the window
Comment 8•7 months ago
|
||
Copypasting once more with NI, just to make sure the same configuration.
Comment 9•7 months ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #3)
(In reply to Kagami [:saschanaz] (they/them) from comment #0)
Just got a report from a user that their notification now goes behind other windows
Do we have any more info on environment (i.e. affected system configurations) and/or STR?
Yup.
- On Windows 11, set
alerts.useSystemBackend=false
- Open https://www.bennish.net/web-notifications.html
- Click Authorize and then Show
- Bring some other window over the notification and see if it goes behind the window
Comment 10•7 months ago
|
||
It seems clearing NI is the trigger of the bug?
Reporter | ||
Comment 11•7 months ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #5)
FWIW: using DevTools to inspect Gmail [...]
Here's a screenshot to illustrate this, comparing bug 1883370 comment 4 (affected) vs. this bug here's comment 4 (unaffected).
(In reply to Kagami [:saschanaz] (they/them) from comment #10)
It seems clearing NI is the trigger of the bug?
I don't think that's sufficient; I'm still not seeing the bug in the generated bugmail for any of your comments on this bug here, at least.
Reporter | ||
Updated•7 months ago
|
Comment 12•7 months ago
|
||
The left version of your screenshot did not process blockquote either 🤔
Comment 13•7 months ago
|
||
Can you NI me so that I can cancel it? I think it doesn't send you the raw text unless it's triggered by you.
You can include some markdown in the answer for fun.
Reporter | ||
Comment 14•7 months ago
|
||
Here's a needinfo for you.
- sorry
- sorry
- sorry
Comment 15•7 months ago
|
||
Yeah, so your needinfo comment generated three emails:
- "needinfo canceled" that has raw text with 1. 1. 1.
- "needinfo requested" that also has raw text with 1. 1. 1.
- A fully rendered HTML text that processed all markdown properly.
So I think it's needinfo that sends text/plain which caused confusion.
Reporter | ||
Comment 16•7 months ago
|
||
Reviewing my bugmail: comment 15 seems to be correct, yeah. It's specifically the "needinfo [canceled|requested]" bonus bugzilla emails that are missing the nice HTML formatting, which means they end up having 1. 1. 1.
rather than li
elements, and raw >
rather than blockquote
, etc.
Comment 17•7 months ago
|
||
Adjusting the title 👍
Comment 18•7 months ago
|
||
The implementation of needinfo sits on top of "flags", which are plaintext only (bug 1410772 covers fixing that generically).
dkl and I were talking about needinfo emails in general a fortnight ago, with a goal of decoupling flagmail from needinfos so we can drop redundant emails and bring HTML support to them. This seems like a good bug to morph into that work.
Assignee | ||
Updated•7 months ago
|
Description
•