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
1ccdf145
You need to sign in or sign up before continuing.
Commit
1ccdf145
authored
Jul 21, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 580208: Search.pm: Combine all the user search types into one search
function r=mkanat, a=mkanat (module owner)
parent
35f2dbb6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
+3
-14
Search.pm
Bugzilla/Search.pm
+0
-0
Constants.pm
xt/lib/Bugzilla/Test/Search/Constants.pm
+3
-14
No files found.
Bugzilla/Search.pm
View file @
1ccdf145
This diff is collapsed.
Click to expand it.
xt/lib/Bugzilla/Test/Search/Constants.pm
View file @
1ccdf145
...
...
@@ -225,17 +225,13 @@ use constant NEGATIVE_BROKEN => (
'attachments.description'
=>
{
contains
=>
[
5
]
},
'attachments.filename'
=>
{
contains
=>
[
5
]
},
'attachments.mimetype'
=>
{
contains
=>
[
5
]
},
'attachments.submitter'
=>
{
contains
=>
[
5
]
},
blocked
=>
{
contains
=>
[
3
,
4
,
5
]
},
bug_file_loc
=>
{
contains
=>
[
5
]
},
bug_group
=>
{
contains
=>
[
1
,
5
]
},
cc
=>
{
contains
=>
[
1
,
5
]
},
deadline
=>
{
contains
=>
[
5
]
},
dependson
=>
{
contains
=>
[
2
,
4
,
5
]
},
longdesc
=>
{
contains
=>
[
1
]
},
'longdescs.isprivate'
=>
{
contains
=>
[
1
]
},
'requestees.login_name'
=>
{
contains
=>
[
3
,
4
,
5
]
},
'setters.login_name'
=>
{
contains
=>
[
5
]
},
work_time
=>
{
contains
=>
[
1
]
},
# Custom fields are busted because they can be NULL.
FIELD_TYPE_FREETEXT
,
{
contains
=>
[
5
]
},
...
...
@@ -278,7 +274,7 @@ use constant ALLWORDS_BROKEN => (
# nowords and nowordssubstr have these broken tests in common.
#
# flagtypes.name doesn't match bugs without flags.
#
cc,
longdescs.isprivate, and bug_group actually work properly in
# longdescs.isprivate, and bug_group actually work properly in
# terms of excluding bug 1 (since we exclude all values in the search,
# on our test), but still fail at including bug 5.
# The longdesc* and work_time fields, coincidentally, work completely
...
...
@@ -287,7 +283,6 @@ use constant NOWORDS_BROKEN => (
NEGATIVE_BROKEN
,
'flagtypes.name'
=>
{
contains
=>
[
5
]
},
bug_group
=>
{
contains
=>
[
5
]
},
cc
=>
{
contains
=>
[
5
]
},
longdesc
=>
{},
work_time
=>
{},
'longdescs.isprivate'
=>
{},
...
...
@@ -508,16 +503,13 @@ use constant COMMON_BROKEN_NOT => (
"attachments.ispatch"
=>
{
contains
=>
[
5
]
},
"attachments.isprivate"
=>
{
contains
=>
[
5
]
},
"attachments.mimetype"
=>
{
contains
=>
[
5
]
},
"attachments.submitter"
=>
{
contains
=>
[
5
]
},
"bug_file_loc"
=>
{
contains
=>
[
5
]
},
"deadline"
=>
{
contains
=>
[
5
]
},
"flagtypes.name"
=>
{
contains
=>
[
5
]
},
"keywords"
=>
{
contains
=>
[
5
]
},
"longdescs.isprivate"
=>
{
contains
=>
[
1
]
},
"percentage_complete"
=>
{
contains
=>
[
1
..
5
]
},
"requestees.login_name"
=>
{
contains
=>
[
3
,
4
,
5
]
},
"see_also"
=>
{
contains
=>
[
5
]
},
"setters.login_name"
=>
{
contains
=>
[
5
]
},
FIELD_TYPE_BUG_ID
,
{
contains
=>
[
5
]
},
FIELD_TYPE_DATETIME
,
{
contains
=>
[
5
]
},
FIELD_TYPE_FREETEXT
,
{
contains
=>
[
5
]
},
...
...
@@ -551,7 +543,6 @@ use constant CHANGED_FROM_TO_BROKEN_NOT => (
use
constant
NEGATIVE_BROKEN_NOT
=>
(
"blocked"
=>
{
contains
=>
[
3
,
4
,
5
]
},
"bug_group"
=>
{
contains
=>
[
5
]
},
"cc"
=>
{
contains
=>
[
1
,
5
]
},
"dependson"
=>
{
contains
=>
[
2
,
4
,
5
]
},
"flagtypes.name"
=>
{
contains
=>
[
1
..
5
]
},
"percentage_complete"
=>
{
contains
=>
[
1
..
5
]
},
...
...
@@ -561,8 +552,8 @@ use constant NEGATIVE_BROKEN_NOT => (
use
constant
BROKEN_NOT
=>
{
allwords
=>
{
COMMON_BROKEN_NOT
,
bug_group
=>
{
contains
=>
[
1
]
},
cc
=>
{
contains
=>
[
1
]
},
bug_group
=>
{
contains
=>
[
1
]
},
"flagtypes.name"
=>
{
contains
=>
[
1
,
5
]
},
keywords
=>
{
contains
=>
[
1
,
5
]
},
longdesc
=>
{
contains
=>
[
1
]
},
...
...
@@ -592,7 +583,7 @@ use constant BROKEN_NOT => {
},
'allwordssubstr-<1>,<2>'
=>
{
bug_group
=>
{
},
"cc"
=>
{
},
cc
=>
{
},
FIELD_TYPE_MULTI_SELECT
,
{
},
keywords
=>
{
contains
=>
[
5
]
},
"longdesc"
=>
{
},
...
...
@@ -725,13 +716,11 @@ use constant BROKEN_NOT => {
nowords
=>
{
NEGATIVE_BROKEN_NOT
,
"work_time"
=>
{
contains
=>
[
2
,
3
,
4
]
},
"cc"
=>
{
contains
=>
[
5
]
},
"flagtypes.name"
=>
{
},
},
nowordssubstr
=>
{
NEGATIVE_BROKEN_NOT
,
"attach_data.thedata"
=>
{
},
"cc"
=>
{
contains
=>
[
5
]
},
"flagtypes.name"
=>
{
},
"work_time"
=>
{
contains
=>
[
2
,
3
,
4
]
},
},
...
...
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