From 9a93c62367cdc60890def5fef1afb4e62306781c Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sat, 2 Oct 2010 11:42:34 -0700 Subject: 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) --- xt/lib/Bugzilla/Test/Search/Constants.pm | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'xt/lib') 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 }, }; -- cgit v1.2.3-24-g4f1b