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)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: LpSolit, Assigned: ewong)
Details
Attachments
(1 file, 4 obsolete files)
717 bytes,
patch
|
ewong
:
review+
|
Details | Diff | Splinter Review |
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).
![]() |
Reporter | |
Updated•13 years ago
|
Whiteboard: [Good Intro Bug]
![]() |
Assignee | |
Comment 1•12 years ago
|
||
![]() |
Reporter | |
Comment 2•12 years ago
|
||
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-
![]() |
Assignee | |
Comment 3•12 years ago
|
||
Attachment #775075 -
Attachment is obsolete: true
Attachment #775449 -
Flags: review?(justdave)
![]() |
Assignee | |
Comment 4•12 years ago
|
||
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 5•12 years ago
|
||
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-
![]() |
Assignee | |
Comment 6•12 years ago
|
||
Attachment #775449 -
Attachment is obsolete: true
Attachment #775449 -
Flags: review?(justdave)
Attachment #775455 -
Flags: review?(sgreen)
![]() |
Reporter | |
Comment 7•12 years ago
|
||
(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().
![]() |
Reporter | |
Comment 8•12 years ago
|
||
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-
![]() |
Assignee | |
Comment 9•12 years ago
|
||
I've tested this patch on landfill and it works.
Attachment #775455 -
Attachment is obsolete: true
Attachment #776941 -
Flags: review?(justdave)
![]() |
Assignee | |
Updated•12 years ago
|
Attachment #776941 -
Flags: review?(justdave) → review?(glob)
![]() |
Reporter | |
Comment 10•12 years ago
|
||
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+
![]() |
Reporter | |
Updated•12 years ago
|
Flags: approval?
Whiteboard: [Good Intro Bug]
Target Milestone: --- → Bugzilla 5.0
![]() |
Assignee | |
Comment 11•12 years ago
|
||
Fixed nit.
Attachment #776941 -
Attachment is obsolete: true
Attachment #799863 -
Flags: review+
![]() |
||
Updated•12 years ago
|
Flags: approval? → approval+
![]() |
Reporter | |
Comment 12•12 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•