Closed
Bug 946565
Opened 11 years ago
Closed 11 years ago
Bug Mail does not correct notify when two people have made changes
Categories
(Bugzilla :: Email Notifications, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.4
People
(Reporter: mail, Assigned: mail)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
There are cases where Bugzilla sometimes does not send out notifications (but not under normal operation). When the next change is made, the previous change and current change is attributed to the user making the most recent change.
(The publicly available BMO snapshot had 30 cases of this, brc a lot more)
Attachment #8342849 -
Flags: review?(glob)
Assignee | ||
Updated•11 years ago
|
Comment 1•11 years ago
|
||
Comment on attachment 8342849 [details] [diff] [review]
mail-v1.patch
>=== modified file 'template/en/default/email/bugmail.txt.tmpl'
>+[%+ IF isnew %]
>+[%+ END %]
Huh?? An empty block?
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Frédéric Buclin from comment #1)
> Comment on attachment 8342849 [details] [diff] [review]
> mail-v1.patch
>
> >=== modified file 'template/en/default/email/bugmail.txt.tmpl'
>
> >+[%+ IF isnew %]
> >+[%+ END %]
>
> Huh?? An empty block?
No. It prints a new line. I couldn't think of a better way of doing it.
Comment 3•11 years ago
|
||
(In reply to Simon Green from comment #2)
> No. It prints a new line. I couldn't think of a better way of doing it.
Simply leave an empty line in the template. That's how we do it currently.
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8342849 -
Attachment is obsolete: true
Attachment #8342849 -
Flags: review?(glob)
Attachment #8343393 -
Flags: review?(glob)
Comment 5•11 years ago
|
||
Comment on attachment 8343393 [details] [diff] [review]
mail-v2.patch
>=== modified file 'template/en/default/email/bugmail.txt.tmpl'
> [% urlbase %]show_bug.cgi?id=[% bug.id %]
>-
> [%+ last_changer = 0 %]
>+[% IF isnew %]
>+
>+[% END %]
No. I meant to leave the original blank line above alone. There is no need to enclose it between [% IF isnew %] ... [% END %] and it's unrelated to this bug, AFAIK.
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Frédéric Buclin from comment #5)
> Comment on attachment 8343393 [details] [diff] [review]
> mail-v2.patch
> No. I meant to leave the original blank line above alone. There is no need
> to enclose it between [% IF isnew %] ... [% END %] and it's unrelated to
> this bug, AFAIK.
I disagree. In order for the plain text e-mails to look good, it was necessary to add a line between the different blocks in the diff part of the e-mail (line 80 of the patch). But this meant that Template would create two blank lines between the URL at the top (line 62 in patch file) and the person making the change (line 79/81). That is why I only want to print a blank line for new e-mails.
Comment 7•11 years ago
|
||
(In reply to Frédéric Buclin from comment #3)
> (In reply to Simon Green from comment #2)
> > No. It prints a new line. I couldn't think of a better way of doing it.
>
> Simply leave an empty line in the template. That's how we do it currently.
[%+ +%]
Comment on attachment 8343393 [details] [diff] [review]
mail-v2.patch
r=glob
Attachment #8343393 -
Flags: review?(glob) → review+
Flags: approval?
Flags: approval4.4?
Target Milestone: --- → Bugzilla 4.4
Comment 10•11 years ago
|
||
(In reply to David Lawrence [:dkl] from comment #7)
> [%+ +%]
I *much* prefer dkl's solution above than the empty block. It doesn't make sense and will disappear the next time someone edits this template (how are you supposed to know why there is an empty block in a template??). Could you attach a new patch, please?
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #8343393 -
Attachment is obsolete: true
Attachment #8346381 -
Flags: review?(glob)
Comment 12•11 years ago
|
||
Comment on attachment 8346381 [details] [diff] [review]
mail-v3.patch
redirecting to lpsolit as he raised objections to the last patch.
Attachment #8346381 -
Flags: review?(glob) → review?(LpSolit)
Assignee | ||
Updated•11 years ago
|
Flags: approval?
Flags: approval4.4?
Flags: approval4.4+
Flags: approval+
Comment 13•11 years ago
|
||
Wait, I haven't reviewed your patch yet.
Flags: approval4.4+
Flags: approval+
Comment 14•11 years ago
|
||
Comment on attachment 8346381 [details] [diff] [review]
mail-v3.patch
>=== modified file 'template/en/default/email/bugmail.txt.tmpl'
> [% urlbase %]show_bug.cgi?id=[% bug.id %]
>-
> [%+ last_changer = 0 %]
>+[% IF isnew %]
>+[%+ +%]
>+[% END %]
Revert these changes and the UI will be correct. There was no empty line before [%+ last_changer = 0 %] on purpose, to avoid your empty block.
Attachment #8346381 -
Flags: review?(LpSolit) → review-
Comment 15•11 years ago
|
||
Comment on attachment 8346381 [details] [diff] [review]
mail-v3.patch
Hum ok, while doing more testing, I saw the problem you described. I cannot find a better solution either. So r=LpSolit
Attachment #8346381 -
Flags: review- → review+
Updated•11 years ago
|
Flags: approval?
Flags: approval4.4?
Assignee | ||
Comment 16•11 years ago
|
||
Will commit change next week, unless someone wants to do it earlier.
Flags: approval?
Flags: approval4.4?
Flags: approval4.4+
Flags: approval+
Assignee | ||
Comment 17•11 years ago
|
||
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/4.4/
modified Bugzilla/BugMail.pm
modified template/en/default/email/bugmail.html.tmpl
modified template/en/default/email/bugmail.txt.tmpl
Committed revision 8645.
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/BugMail.pm
modified template/en/default/email/bugmail.html.tmpl
modified template/en/default/email/bugmail.txt.tmpl
Committed revision 8845.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•