Closed Bug 190042 Opened 22 years ago Closed 19 years ago

improve wording of duplicate mark

Categories

(Bugzilla :: Query/Bug List, defect)

2.17.1
defect
Not set
trivial

Tracking

()

RESOLVED DUPLICATE of bug 298273

People

(Reporter: levon, Assigned: nobody)

Details

Attachments

(1 file, 2 obsolete files)

When marking a bug as a dupe, you get :

"This bug has been marked as a duplicate of 5705"

It should use "bug 5705" instead, for two reasons :

1) it encourages people to use the magic phrase "bug X"
2) the dupe link from the other end uses the "bug X" wording
<-- patch writer
Assignee: endico → jocuri
OS: Linux → All
Hardware: PC → All
Attached patch Ver 1 (obsolete) — Splinter Review
Status: NEW → ASSIGNED
Attachment #134272 - Flags: review?(kiko)
Comment on attachment 134272 [details] [diff] [review]
Ver 1

Talked with kiko on IRC and discussed about version 2.
Attachment #134272 - Flags: review?(kiko)
Comment on attachment 134272 [details] [diff] [review]
Ver 1

Vlad, you know I love you, but this patch doesn't wrap lines, and it doesn't
use the special keywords in place of "bug".
Currently the "bug" word is not replaced with its defined special keyword when
generating duplicates messages as comments.

It would be pretty tricky to implement this, because it would break the
checksetup.pl conversion, and besides it's usually done at the Template-level,
not at the .cgi level.

Kiko: would you consider version 2 of the patch only with the lines warped, and
I'll file a new bug about replacing "bug" with the special keywork in duplicates
messages?
Don't warp anything else today, it's been bad enough as it is.

Wrapping the lines is advisable, in any case, and I'm okay with a additional bug
being opened, *if* it hasn't been reported yet, which it might.
I couldn't find such a bug so I opened an unconfirmed one (bug 223880).
Attached patch Ver 2 (obsolete) — Splinter Review
Attachment #134272 - Attachment is obsolete: true
Attachment #134280 - Flags: review?(kiko)
Comment on attachment 134280 [details] [diff] [review]
Ver 2

Forgot to escape a space.
Attachment #134280 - Flags: review?(kiko)
Attached patch Ver 3Splinter Review
Attachment #134280 - Attachment is obsolete: true
Attachment #134283 - Flags: review?(kiko)
Comment on attachment 134283 [details] [diff] [review]
Ver 3

You need to change globals.pl:quoteURLs() to parse the new format too.

(Or did you think the linkification was magic? :-)

Note that you could actually remove all the duplicate marker code that's there
*if* you changed all the comments via checksetup.pl to use the new format. I'm
not suggesting that, but I'm not against it either <wink>.
Attachment #134283 - Flags: review?(kiko) → review-
Hmmm, I see now that I'm not exactly right (it figures, right after submitting)
about you *needing* to change quoteURLs(), since GetBugLink would do it for us
-- it would be a welcome cleanup, though. What do you think?
Comment on attachment 134283 [details] [diff] [review]
Ver 3

The checksetup changes aren't needed, since they can only be operating on
historical text.

you need to keep teh quoteUrls stuff in (although add a comment), unless you go
changing all existing entries in the database.

However, you also need to deal with that param for 'what we call a bug', and
hack that into quoteUrls....
This is a hassle, in terms of maintaining backwards compatibility for the old
format. Is the gain really worth it? I'm not convinced...

Gerv
Assignee: vladd → nobody
Status: ASSIGNED → NEW

*** This bug has been marked as a duplicate of 298273 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: