summaryrefslogtreecommitdiffstats
path: root/xt
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-02 20:42:34 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-02 20:42:34 +0200
commit9a93c62367cdc60890def5fef1afb4e62306781c (patch)
treea05d518ef1bc5d22238f81df2b11dd7783cb1939 /xt
parent204093007aeeb87329fa06c8dd9a4fd8df94a85f (diff)
downloadbugzilla-9a93c62367cdc60890def5fef1afb4e62306781c.tar.gz
bugzilla-9a93c62367cdc60890def5fef1afb4e62306781c.tar.xz
Bug 600496: Make searching on [Bug creation] work again, by implementing
creation_ts for the changedafter and changedbefore operators in Search.pm. r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt')
-rw-r--r--xt/lib/Bugzilla/Test/Search/Constants.pm12
1 files changed, 4 insertions, 8 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/Constants.pm b/xt/lib/Bugzilla/Test/Search/Constants.pm
index abe01bbd1..7b06a0c95 100644
--- a/xt/lib/Bugzilla/Test/Search/Constants.pm
+++ b/xt/lib/Bugzilla/Test/Search/Constants.pm
@@ -420,13 +420,11 @@ use constant KNOWN_BROKEN => {
'changedbefore' => {
CHANGED_BROKEN,
'attach_data.thedata' => { contains => [1] },
- creation_ts => { contains => [1,2,5] },
},
'changedafter' => {
'attach_data.thedata' => { contains => [2,3,4] },
classification => { contains => [2,3,4] },
commenter => { contains => [2,3,4] },
- creation_ts => { contains => [2,3,4] },
delta_ts => { contains => [2,3,4] },
percentage_complete => { contains => [2,3,4] },
'requestees.login_name' => { contains => [2,3,4] },
@@ -642,7 +640,6 @@ use constant BROKEN_NOT => {
"attach_data.thedata" => { contains => [2, 3, 4] },
"classification" => { contains => [2, 3, 4] },
"commenter" => { contains => [2, 3, 4] },
- "creation_ts" => { contains => [2, 3, 4] },
"delta_ts" => { contains => [2, 3, 4] },
"percentage_complete" => { contains => [2, 3, 4] },
"requestees.login_name" => { contains => [2, 3, 4] },
@@ -650,7 +647,6 @@ use constant BROKEN_NOT => {
},
changedbefore=> {
CHANGED_BROKEN_NOT,
- creation_ts => { contains => [1, 2, 5] },
work_time => { }
},
changedby => {
@@ -1096,7 +1092,7 @@ use constant TESTS => {
{ contains => [1], value => '<1-delta>',
override => {
CHANGED_OVERRIDE,
- creation_ts => { contains => [1,2,5] },
+ creation_ts => { contains => [1,5] },
blocked => { contains => [1,2] },
dependson => { contains => [1,3] },
longdesc => { contains => [1,5] },
@@ -1107,7 +1103,7 @@ use constant TESTS => {
{ contains => [2,3,4], value => '<2-delta>',
override => {
CHANGED_OVERRIDE,
- creation_ts => { contains => [2,3,4] },
+ creation_ts => { contains => [3,4] },
# We only change this for one bug, and it doesn't match.
'longdescs.isprivate' => { contains => [] },
# Same for everconfirmed.
@@ -1200,8 +1196,8 @@ use constant INJECTION_BROKEN_FIELD => {
# search => 1 means the Bugzilla::Search creation fails, but
# field_ok contains fields that it does actually succeed for.
use constant INJECTION_BROKEN_OPERATOR => {
- changedafter => { search => 1 },
- changedbefore => { search => 1 },
+ changedafter => { search => 1, field_ok => ['creation_ts'] },
+ changedbefore => { search => 1, field_ok => ['creation_ts'] },
changedby => { search => 1 },
};