Closed Bug 400243 Opened 18 years ago Closed 18 years ago

"votes:n" quicksearch should be "at least n votes", not "more than n votes"

Categories

(Bugzilla :: Query/Bug List, defect)

2.22
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: jruderman, Assigned: LpSolit)

References

()

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

A search with "votes:2" should find bugs with 2 or more votes. It currently finds bugs with 3 or more votes.
This is a minor regression due to bug 70907. The JS had: add_chart("votes","greaterthan",String(n-1)); but now Quicksearch.pm uses: addChart('votes', 'greaterthan', $1, $negate); Looks like a one-liner to fix.
Severity: normal → minor
Depends on: 70907
OS: Mac OS X → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 3.0
Version: unspecified → 2.22
Attached patch patch, v1 (obsolete) — Splinter Review
Assignee: query-and-buglist → LpSolit
Status: NEW → ASSIGNED
Attachment #285341 - Flags: review?(wurblzap)
Marc, why do we pass $negate to addChart() for votes as negateComparisonType() at lines 507/485 of Quicksearch.pm says that "greaterthan" is not valid with negation?
votes:N, votes>=N and votes>N are mentioned nowhere in the documentation about QS. This patch adds them. I also removed obsolete examples from the doc as well.
Attachment #285341 - Attachment is obsolete: true
Attachment #285341 - Flags: review?(wurblzap)
Attachment #285343 - Flags: review?(wurblzap)
Attachment #285343 - Flags: review?(wicked)
Attachment #285343 - Flags: review?(wurblzap) → review+
Attachment #285343 - Flags: review?(wicked)
Flags: approval3.0+
Flags: approval+
tip: Checking in Bugzilla/Search/Quicksearch.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search/Quicksearch.pm,v <-- Quicksearch.pm new revision: 1.19; previous revision: 1.18 done Checking in template/en/default/pages/quicksearchhack.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/pages/quicksearchhack.html.tmpl,v <-- quicksearchhack.html.tmpl new revision: 1.7; previous revision: 1.6 done 3.0.2: Checking in Bugzilla/Search/Quicksearch.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search/Quicksearch.pm,v <-- Quicksearch.pm new revision: 1.12.2.3; previous revision: 1.12.2.2 done Checking in template/en/default/pages/quicksearchhack.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/pages/quicksearchhack.html.tmpl,v <-- quicksearchhack.html.tmpl new revision: 1.3.2.1; previous revision: 1.3 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: