Bug 1039990

Summary: History change is accompanied with "comment X" needlessly
Product: [Community] Bugzilla Reporter: Jan Pokorný [poki] <jpokorny>
Component: Creating/Changing BugsAssignee: Matt Tyson 🤬 <mtyson>
Status: CLOSED CURRENTRELEASE QA Contact: Simon Green <sgreen>
Severity: low Docs Contact:
Priority: low    
Version: 4.4CC: ebaak, jmcdonal, mtyson, rjoost, sgreen
Target Milestone: 4.4   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.4.2015 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-13 00:51:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Pokorný [poki] 2013-12-10 13:21:14 UTC
See [738468 comment 20].  I understand it can be intentional, but looks
a bit strange anyway.  Or perhaps it's only a remnant from some older
version of RHBZ or a transition from it.

Comment 1 Jan Pokorný [poki] 2013-12-10 13:21:56 UTC
Oops, [bz738468 comment 20] indeed.

Comment 2 Jason McDonald 2013-12-24 02:57:28 UTC
The orphaned "Comment X" label is shown because there is actually a comment associated with that change -- the comment is just being suppressed if the inline history is being shown.

If you go to preferences and switch off the inline history via the "When viewing a bug, show all bug activity" setting, you'll see the following content for bz738468 comment 20:

    *** Bug 813330 has been marked as a duplicate of this bug. ***

I expect that it would be possible to suppress the comment marker as well as the comment, but I'll leave it up to Simon to decide whether it's worth the effort (and whether the change should be made upstream instead).

Comment 3 Simon Green 2014-01-02 22:03:13 UTC
This code comes from Mozilla, not upstream. They suppress the comment marker, so we'll just use their code to do it.

  -- simon

Comment 4 Matt Tyson 🤬 2014-02-20 00:25:56 UTC
The 'Comment N' label is deliberately put in by the InlineHistory extension.

Without this marker it may cause confusion as you will have comment numbers jumping without explanation.

EG:

Comment 1:
   Comment of some sort

Duplicate of this bug : 1234
Duplicate of this bug : 2345

Comment 4:
   Another comment


Removing this label may cause confusion as comments 2 and 3 are now 'missing'.
Are we sure we want to proceed with this?

Comment 5 Simon Green 2014-02-20 00:28:51 UTC
IMO, yes. BMO have :) and comments can jumped if the user cannot see a comment.

But I'll leave it for jmcdonald to make the call

Comment 6 Jason McDonald 2014-02-20 02:46:38 UTC
We have a choice between two implementations, both of which look a bit strange until you understand what BZ is doing in either case.

I'm happy to follow BMO in this instance.  Users often see gaps in the comment numbers due to private comments.

Comment 7 Matt Tyson 🤬 2014-02-20 04:36:24 UTC
Just to clarify, the missing 'Comment X' labels on bigzilla.mozilla.org is actually a bug that manifests in Firefox.

If you look at their webpage in Chrome you'll see the 'Comment X' label appear.
I've clarified this with a Mozilla dev and he confirmed that it is a bug.

Comment 8 Matt Tyson 🤬 2014-02-24 02:04:37 UTC
(In reply to Matt Tyson from comment #7)
> If you look at their webpage in Chrome you'll see the 'Comment X' label
> appear.
> I've clarified this with a Mozilla dev and he confirmed that it is a bug.

Just to be clear, it is a bug if the 'Comment X' anchor tag is missing on a closed-dup message.

Comment 9 Simon Green 2014-02-28 02:55:24 UTC
You still need to create the anchor, or otherwise make the 'Last comment' link work. (In the example in comment 1, the hidden comment was the last one)

Comment 10 Matt Tyson 🤬 2014-02-28 03:10:02 UTC
The anchor has been put back in, but without the 'Comment X' text.

Comment 11 Matt Tyson 🤬 2014-03-13 00:51:28 UTC
This change is now live. If there are any issues, do not reopen this bug.
Instead, you should create a new bug and reference this bug.

Comment 12 Jan Pokorný [poki] 2014-03-13 20:50:23 UTC
Thanks