Closed
Bug 574556
(bz-search-args)
Opened 14 years ago
Closed 14 years ago
Refactor Search.pm so that we're not doing $$some_var everywhere
Categories
(Bugzilla :: Query/Bug List, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.2
People
(Reporter: mkanat, Assigned: mkanat)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 3 obsolete files)
89.52 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
Instead of doing $$term, $$f, etc., I think that we should just be setting values in a passed-in hashref. (That is, pass in $func_args instead of %func_args, and just set values in the hash.)
Assignee | ||
Updated•14 years ago
|
Alias: bz-search-args
Assignee | ||
Updated•14 years ago
|
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: query-and-buglist → mkanat
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #453978 -
Attachment is obsolete: true
Assignee | ||
Comment 3•14 years ago
|
||
All right, this is a major refactoring that I have tested extensively. I've sent an email to LpSolit asking him if he's OK with me simply owning Search.pm, so that I can continue to refactor it without review. However, in any case, here is the patch for review, until I get that approval.
Attachment #454008 -
Attachment is obsolete: true
Attachment #454181 -
Flags: review?(jjclark1982)
Assignee | ||
Updated•14 years ago
|
Blocks: bz-search-test
Assignee | ||
Comment 4•14 years ago
|
||
Comment on attachment 454181 [details] [diff] [review] v1 Okay, I have approval to have a review-free period on Search.pm for 4.2.
Attachment #454181 -
Flags: review?(jjclark1982) → review+
Assignee | ||
Comment 5•14 years ago
|
||
However, I'm waiting on the xt/search.t test to be done, before I check anything in.
No longer blocks: bz-search-test
Depends on: bz-search-test
Flags: approval?
Target Milestone: --- → Bugzilla 4.2
Assignee | ||
Comment 6•14 years ago
|
||
Okay! Well, xt/search.t found various bugs in the refactored code (mostly related to strange fields like percentage_complete and owner_idle_time). The test also demonstrates that hundreds of combinations are now working properly, thanks to a little bit of cleanup I did during the patch. This required updating xt/search.t's KNOWN_BROKEN bits pretty extensively, so that's also in this patch.
Attachment #454181 -
Attachment is obsolete: true
Attachment #456391 -
Flags: review+
Assignee | ||
Updated•14 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 7•14 years ago
|
||
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Bug.pm modified Bugzilla/Group.pm modified Bugzilla/Search.pm modified template/en/default/global/code-error.html.tmpl modified template/en/default/global/user-error.html.tmpl modified xt/lib/Bugzilla/Test/Search/Constants.pm Committed revision 7299.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Blocks: CVE-2011-2979
You need to log in
before you can comment on or make changes to this bug.
Description
•