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)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.6
People
(Reporter: reed, Assigned: reed)
References
Details
Attachments
(1 file, 3 obsolete files)
|
2.32 KB,
patch
|
mkanat
:
review+
|
Details | Diff | 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)
Updated•16 years ago
|
Attachment #411373 -
Flags: review?(mkanat) → review-
Comment 1•16 years ago
|
||
Comment on attachment 411373 [details] [diff] [review]
patch - v1
>+ addChart('alias', 'matches', $word, $negate);
Obviously an untested patch. You cannot use "matches" with alias.
Updated•16 years ago
|
Severity: normal → enhancement
| Assignee | ||
Comment 2•16 years ago
|
||
Indeed. My apologies for not checking that first by just testing query.cgi.
Attachment #411373 -
Attachment is obsolete: true
Attachment #411375 -
Flags: review?(mkanat)
Comment 3•16 years ago
|
||
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
| Assignee | ||
Comment 4•15 years ago
|
||
Add documentation for the change...
Attachment #411375 -
Attachment is obsolete: true
Attachment #425737 -
Flags: review?(mkanat)
Attachment #411375 -
Flags: review?(mkanat)
Comment 5•15 years ago
|
||
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-
| Assignee | ||
Comment 6•15 years ago
|
||
Attachment #425737 -
Attachment is obsolete: true
Attachment #425842 -
Flags: review?(mkanat)
Comment 7•15 years ago
|
||
Comment on attachment 425842 [details] [diff] [review]
patch - v4
Looks good! :-)
Attachment #425842 -
Flags: review?(mkanat) → review+
Updated•15 years ago
|
Flags: approval+
Target Milestone: Bugzilla 3.6 → Bugzilla 3.8
| Assignee | ||
Comment 8•15 years ago
|
||
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
| Assignee | ||
Comment 9•15 years ago
|
||
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?
| Assignee | ||
Comment 11•15 years ago
|
||
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.
Description
•