Closed
Bug 236533
Opened 22 years ago
Closed 21 years ago
Text "Additional Comments From ..." can be improved
Categories
(Bugzilla :: Email Notifications, enhancement)
Bugzilla
Email Notifications
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: u20230201, Assigned: todd)
References
Details
Attachments
(1 file, 3 obsolete files)
|
1.24 KB,
patch
|
kiko
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4.1) Gecko/20031011
Build Identifier:
For a change in the bug comments, I receive a mail message saying
"------- Additional Comments From {EMailAdress} {Date} -------"
The same message contains an URL to the bug number.
Can't the text "Additional Comments" be replaced with "Comment
#{CommentNumber}", just as the URL given might refer directly to the comment
being made?
This makes only little difference if you are visiting the bug shortly after
receiving the message, and when no other comments were added. Otherwise it's
easier to follow the comments.
Reproducible: Always
Steps to Reproduce:
1. Make somebody make a comment on your report
Actual Results:
...
Additional Comments From ...
...
Expected Results:
...
Comment #1234 From ...
...
Comment 1•22 years ago
|
||
I'd like that too.
Comment 2•22 years ago
|
||
this sounds very much related to (but not quite a duplicate of) bug 182939.
| Assignee | ||
Comment 3•21 years ago
|
||
We implemented this change a long time ago and recently upgraded to 2.18rc2.
So, this is our change. Of course, someone will need to review and check in
this change, but I figured I'd submit it for anyone else who wanted it.
Todd
| Assignee | ||
Comment 4•21 years ago
|
||
Updated fix for tip.
Todd
Attachment #161815 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•21 years ago
|
||
This simply fixes a capitalization error and cleans up the sql statement
slightly.
Todd
Attachment #161826 -
Attachment is obsolete: true
| Assignee | ||
Updated•21 years ago
|
Attachment #162027 -
Flags: review?(kiko)
Comment 6•21 years ago
|
||
Comment on attachment 162027 [details] [diff] [review]
v3
Nice. However, this looks somehow wrong. :-)
See, $count is being used in a while loop, and if we iterate more than once,
we'll end up with multiple comments saying they are the same number. I think
the right fix here is to ... hmmm. If we have out-of-order comments, we get
into trouble, don't we? Since the comment doesn't have an ID (nor a primary
key, matter of much ado) how can we know if a certain comment is #1, #2 or #10?
If we're not taking into account out-of-order comments, you still want to get
the number of the first one and increment it as the loop goes around.
Attachment #162027 -
Flags: review?(kiko) → review-
| Assignee | ||
Comment 7•21 years ago
|
||
How is this wrong? Comment numbers are determined by the chronological order in
which they were added to the database, and we're querying for bugs, ordered by
the bug_when column. $count gets set to the number of comments that exist prior
to the first one we're displaying. Then, in the while loop, $count gets
incremented as each comment is processed. I realize there's no strict ordering
of comments and if somehow a bug_when column got changed, the comment numbers
would all get changed. But, that's not supposed to be possible. Right? This
uses the same logic that the web page uses in determining comment numbers.
Todd
| Assignee | ||
Comment 8•21 years ago
|
||
After chatting with kiko on IRC, this patch trims down the change to almost
nothing. Part of the code that was in there before wasn't actually being used
so it led more to confusion than anything else.
Todd
| Assignee | ||
Updated•21 years ago
|
Attachment #162027 -
Attachment is obsolete: true
Comment 9•21 years ago
|
||
Comment on attachment 162046 [details] [diff] [review]
v4
Should be okay, though out-of-order comments will break here too.
Attachment #162046 -
Flags: review+
Updated•21 years ago
|
Flags: approval?
Updated•21 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Bugzilla 2.22
Comment 10•21 years ago
|
||
Targeting bug to 2.20 since the 2.20 feature freeze was canceled.
Target Milestone: Bugzilla 2.22 → Bugzilla 2.20
Comment 11•21 years ago
|
||
Comment on attachment 162046 [details] [diff] [review]
v4
>+ $result .= "\n\n------- Additional comment #$count from $who".Param('emailsuffix')." ".
This text is a header, not a sentence, so "comment" should be capitalized,
although "from" is correctly lowercase. But this can be taken care of with the
fix for bug 182939.
Updated•21 years ago
|
Flags: approval? → approval+
Updated•21 years ago
|
Assignee: preed → tjs
Comment 12•21 years ago
|
||
Checking in globals.pl;
/cvsroot/mozilla/webtools/bugzilla/globals.pl,v <-- globals.pl
new revision: 1.286; previous revision: 1.285
done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 13•21 years ago
|
||
*** Bug 113096 has been marked as a duplicate of this bug. ***
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•