Closed Bug 527641 Opened 16 years ago Closed 15 years ago

QuickSearch should include aliases in default search chart

Categories

(Bugzilla :: Query/Bug List, enhancement)

3.2.4
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: reed, Assigned: reed)

References

Details

Attachments

(1 file, 3 obsolete files)

Attached patch patch - v1 (obsolete) — Splinter Review
QuickSearch supports a fastpath for aliases that will cause an immediate redirect if the query matches an alias, but aliases are not checked for any other type of request. That means a quicksearch for "CVE-2009-1563" returns bug 516396 while "ALL CVE-2009-1563" does not. Therefore, aliases should also be checked as part of the default quicksearch word search. This patch adds an addChart() call to _default_quicksearch_word() in Bugzilla/Search/Quicksearch.pm to do a 'matches' search on the alias.
Attachment #411373 - Flags: review?(mkanat)
Attachment #411373 - Flags: review?(mkanat) → review-
Comment on attachment 411373 [details] [diff] [review] patch - v1 >+ addChart('alias', 'matches', $word, $negate); Obviously an untested patch. You cannot use "matches" with alias.
Severity: normal → enhancement
Attached patch patch - v2 (obsolete) — Splinter Review
Indeed. My apologies for not checking that first by just testing query.cgi.
Attachment #411373 - Attachment is obsolete: true
Attachment #411375 - Flags: review?(mkanat)
Sounds reasonable. Note that any QuickSearch changes are probably going to wait until bug 518293 and its blockers are checked in (because those are a major re-work of how QuickSearch works).
Depends on: 518293
Target Milestone: --- → Bugzilla 3.6
Attached patch patch - v3 (obsolete) — Splinter Review
Add documentation for the change...
Attachment #411375 - Attachment is obsolete: true
Attachment #425737 - Flags: review?(mkanat)
Attachment #411375 - Flags: review?(mkanat)
Comment on attachment 425737 [details] [diff] [review] patch - v3 >Index: Bugzilla/Search/Quicksearch.pm >+ addChart('alias', 'equals', $word, $negate); That often won't have any effect, because if there's a single word and it directly matches an alias, you'll just get taken to the bug. Perhaps "substring" would be even more useful Otherwise this looks okay.
Attachment #425737 - Flags: review?(mkanat) → review-
Attached patch patch - v4Splinter Review
Attachment #425737 - Attachment is obsolete: true
Attachment #425842 - Flags: review?(mkanat)
Comment on attachment 425842 [details] [diff] [review] patch - v4 Looks good! :-)
Attachment #425842 - Flags: review?(mkanat) → review+
Flags: approval+
Target Milestone: Bugzilla 3.6 → Bugzilla 3.8
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Search/Quicksearch.pm modified template/en/default/pages/quicksearch.html.tmpl Committed revision 6977.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Considering the huge overhaul of quicksearch in 3.6, it would be nice to get this two-line patch into 3.6 with the other changes.
Flags: approval3.6?
Sounds reasonable.
Flags: approval3.6? → approval3.6+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/3.6/ modified template/en/default/pages/quicksearch.html.tmpl modified Bugzilla/Search/Quicksearch.pm Committed revision 7062.
Target Milestone: Bugzilla 3.8 → Bugzilla 3.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: