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)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: mkanat, Assigned: mkanat)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 3 obsolete files)

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.)
Blocks: 574567
Alias: bz-search-args
Blocks: 574572
Depends on: 574577
Blocks: 574577
No longer depends on: 574577
Blocks: 574587
Attached patch Work In Progress (obsolete) — Splinter Review
Assignee: query-and-buglist → mkanat
Status: NEW → ASSIGNED
Blocks: 574625
Attached patch WIP 2 (obsolete) — Splinter Review
Attachment #453978 - Attachment is obsolete: true
Blocks: 490322
Attached patch v1 (obsolete) — Splinter Review
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)
Blocks: 575021
Blocks: 575022
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+
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
Attached patch v2Splinter Review
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+
Flags: approval? → approval+
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
Blocks: 579797
Blocks: 788098
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: