Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
33f63df5
Commit
33f63df5
authored
Jul 19, 2007
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 329701: Add flag support to QuickSearch - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=LpSolit
parent
d1579114
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletion
+41
-1
Quicksearch.pm
Bugzilla/Search/Quicksearch.pm
+13
-0
quicksearchhack.html.tmpl
template/en/default/pages/quicksearchhack.html.tmpl
+28
-1
No files found.
Bugzilla/Search/Quicksearch.pm
View file @
33f63df5
...
...
@@ -79,6 +79,11 @@ use constant MAPPINGS => {
"keywords"
=>
"keywords"
,
# no change
"kw"
=>
"keywords"
,
"group"
=>
"bug_group"
,
"flag"
=>
"flagtypes.name"
,
"requestee"
=>
"requestees.login_name"
,
"req"
=>
"requestees.login_name"
,
"setter"
=>
"setters.login_name"
,
"set"
=>
"setters.login_name"
,
# Attachments
"attachment"
=>
"attachments.description"
,
"attachmentdesc"
=>
"attachments.description"
,
...
...
@@ -270,6 +275,12 @@ sub quicksearch {
# votes:xx ("at least xx votes")
addChart
(
'votes'
,
'greaterthan'
,
$1
,
$negate
);
}
elsif
(
$or_operand
=~
/^([^\?]+\?)([^\?]*)$/
)
{
# Flag and requestee shortcut
addChart
(
'flagtypes.name'
,
'substring'
,
$1
,
$negate
);
$chart
++
;
$and
=
$or
=
0
;
# Next chart for boolean AND
addChart
(
'requestees.login_name'
,
'substring'
,
$2
,
$negate
);
}
elsif
(
$or_operand
=~
/^([^:]+):([^:]+)$/
)
{
# generic field1,field2,field3:value1,value2 notation
my
@fields
=
split
(
/,/
,
$1
);
...
...
@@ -428,6 +439,8 @@ sub splitString {
foreach
(
@parts
)
{
# Remove quotes
s/"//g
;
# Protect plus signs from becoming a blank
s/\+/%2B/g
;
}
return
@parts
;
...
...
template/en/default/pages/quicksearchhack.html.tmpl
View file @
33f63df5
...
...
@@ -242,7 +242,30 @@
<td> </td>
<td><tt>group</tt></td>
<td> </td>
<td>Group <i>("bug_group")</i></td>
<td>Group</td>
</tr>
<!-- Flags -->
<tr>
<td> </td>
<td rowspan="2"><i>flag</i><b>?</b><i>requestee</i></td>
<td><tt>flag</tt></td>
<td> </td>
<td>Flag name and status (+, - or ?)</td>
</tr>
<tr>
<td> </td>
<td><tt>requestee</tt></td>
<td><tt>req</tt></td>
<td>Flag requestee (login)</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><tt>setter</tt></td>
<td><tt>set</tt></td>
<td>Flag setter (login)</td>
</tr>
<!-- Attachments -->
...
...
@@ -373,6 +396,10 @@
<td><i>[% terms.bugs %] waiting for your help</i></td>
</tr>
-->
<tr>
<td><i>flag</i><b>?</b><i>requestee</i></td>
<td><b>flag:</b><i>flag?</i> <b>requestee:</b><i>requestee</i></td>
</tr>
</table>
<p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment