Closed Bug 801284 Opened 13 years ago Closed 12 years ago

whine.pl should use DEFAULT_COLUMN_LIST as the default column list instead of its hardcoded list

Categories

(Bugzilla :: Whining, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: LpSolit, Assigned: ewong)

Details

Attachments

(1 file, 4 obsolete files)

whine.pl has: my @searchfields = qw( bug_id bug_severity priority rep_platform assigned_to bug_status resolution short_desc ); which differs from Bugzilla::Constants::DEFAULT_COLUMN_LIST: # The default list of columns for buglist.cgi use constant DEFAULT_COLUMN_LIST => ( "product", "component", "assigned_to", "bug_status", "resolution", "short_desc", "changeddate" ); I think both should match, and so whine.pl should use it (with bug_id prepended, of course).
Whiteboard: [Good Intro Bug]
Attached patch Use DEFAULT_COLUMN_LIST (v1) (obsolete) — Splinter Review
Assignee: whining → ewong
Status: NEW → ASSIGNED
Attachment #775075 - Flags: review?(justdave)
Comment on attachment 775075 [details] [diff] [review] Use DEFAULT_COLUMN_LIST (v1) Has this patch been tested? You cannot write a bare DEFAULT_COLUMN_LIST string in qw(). Perl sees it as the string "DEFAULT_COLUMN_LIST", not as a constant.
Attachment #775075 - Flags: review?(justdave) → review-
Attached patch Use DEFAULT_COLUMN_LIST (v2) (obsolete) — Splinter Review
Attachment #775075 - Attachment is obsolete: true
Attachment #775449 - Flags: review?(justdave)
Comment on attachment 775449 [details] [diff] [review] Use DEFAULT_COLUMN_LIST (v2) (Hasn't been tested.. need some help testing as w/o my patch, there are a lot of failures when doing |perl ./runtests.pl|.)
Comment on attachment 775449 [details] [diff] [review] Use DEFAULT_COLUMN_LIST (v2) Review of attachment 775449 [details] [diff] [review]: ----------------------------------------------------------------- What you want is my @searchfields = qw('bug_id', DEFAULT_COLUMN_LIST);
Attachment #775449 - Flags: review-
Attached patch Use DEFAULT_COLUMN_LIST (v3) (obsolete) — Splinter Review
Attachment #775449 - Attachment is obsolete: true
Attachment #775449 - Flags: review?(justdave)
Attachment #775455 - Flags: review?(sgreen)
(In reply to Simon Green from comment #5) > What you want is > > my @searchfields = qw('bug_id', DEFAULT_COLUMN_LIST); No, this is still wrong. Remove qw().
Comment on attachment 775455 [details] [diff] [review] Use DEFAULT_COLUMN_LIST (v3) > my @searchfields = qw( >+ 'bug_id', >+ DEFAULT_COLUMN_LIST > ); As long as you write qw(), variables and constants won't be interpolated. What you want is: @foo = ('bug_id', DEFAULT_...).
Attachment #775455 - Flags: review?(sgreen) → review-
Attached patch Use DEFAULT_COLUMN_LIST (v4) (obsolete) — Splinter Review
I've tested this patch on landfill and it works.
Attachment #775455 - Attachment is obsolete: true
Attachment #776941 - Flags: review?(justdave)
Attachment #776941 - Flags: review?(justdave) → review?(glob)
Comment on attachment 776941 [details] [diff] [review] Use DEFAULT_COLUMN_LIST (v4) >+ my @searchfields = ( >+ 'bug_id', >+ DEFAULT_COLUMN_LIST > ); nit: this could be written on a single line. r=LpSolit
Attachment #776941 - Flags: review?(glob) → review+
Flags: approval?
Whiteboard: [Good Intro Bug]
Target Milestone: --- → Bugzilla 5.0
Fixed nit.
Attachment #776941 - Attachment is obsolete: true
Attachment #799863 - Flags: review+
Flags: approval? → approval+
Keywords: relnote
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified whine.pl Committed revision 8731.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Added to relnotes for 5.0rc1.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: