@@ -46,7 +46,6 @@ our @EXPORT = qw(
4646 NUM_BUGS
4747 NUM_SEARCH_TESTS
4848 OR_BROKEN
49- OR_SKIP
5049 SKIP_FIELDS
5150 SPECIAL_PARAM_TESTS
5251 SUBSTR_NO_FIELD_ADD
@@ -134,13 +133,6 @@ use constant SKIP_FIELDS => qw(
134133 days_elapsed
135134) ;
136135
137- # During OR tests, we skip these fields. They basically just don't work
138- # right in OR tests, and it's too much work to document the exact tests
139- # that they cause to fail.
140- use constant OR_SKIP => qw(
141- flagtypes.name
142- ) ;
143-
144136# All the fields that represent users.
145137use constant USER_FIELDS => qw(
146138 assigned_to
@@ -212,13 +204,6 @@ use constant ALLWORDS_BROKEN => (
212204 cc => { contains => [1] },
213205);
214206
215- # nowords and nowordssubstr have these broken tests in common.
216- #
217- # flagtypes.name doesn't match bugs without flags.
218- use constant NOWORDS_BROKEN => (
219- ' flagtypes.name' => { contains => [5] },
220- );
221-
222207# Fields that don't generally work at all with changed* searches, but
223208# probably should.
224209use constant CHANGED_BROKEN => (
@@ -272,16 +257,10 @@ use constant KNOWN_BROKEN => {
272257 greaterthaneq => { GREATERTHAN_BROKEN },
273258
274259 ' allwordssubstr-<1>' => { ALLWORDS_BROKEN },
275- # flagtypes.name does not work here, probably because they all try to
276- # match against a single flag.
277260 ' allwords-<1>' => {
278261 ALLWORDS_BROKEN,
279- ' flagtypes.name' => { contains => [1] },
280262 },
281263
282- nowordssubstr => { NOWORDS_BROKEN },
283- nowords => { NOWORDS_BROKEN },
284-
285264 # setters.login_name and requestees.login name aren't tracked individually
286265 # in bugs_activity, so can't be searched using this method.
287266 #
@@ -357,12 +336,6 @@ use constant KNOWN_BROKEN => {
357336# Broken NotTests #
358337# ##################
359338
360- # These are fields that are broken in the same way for pretty much every
361- # NOT test that is broken.
362- use constant COMMON_BROKEN_NOT => (
363- " flagtypes.name" => { contains => [5] },
364- );
365-
366339# Common BROKEN_NOT values for the changed* fields.
367340use constant CHANGED_BROKEN_NOT => (
368341 " attach_data.thedata" => { contains => [1] },
@@ -385,42 +358,20 @@ use constant CHANGED_FROM_TO_BROKEN_NOT => (
385358 FIELD_TYPE_MULTI_SELECT, { contains => [1] },
386359);
387360
388- # Common broken tests for the "not" or "no" operators.
389- use constant NEGATIVE_BROKEN_NOT => (
390- " flagtypes.name" => { contains => [1 .. 5] },
391- );
392-
393361# These are field/operator combinations that are broken when run under NOT().
394362use constant BROKEN_NOT => {
395363 allwords => {
396- COMMON_BROKEN_NOT,
397364 cc => { contains => [1] },
398- " flagtypes.name" => { contains => [1,5] },
399365 },
400366 ' allwords-<1> <2>' => {
401367 cc => { },
402- ' flagtypes.name' => { contains => [5] },
403368 },
404369 allwordssubstr => {
405- COMMON_BROKEN_NOT,
406370 cc => { contains => [1] },
407371 },
408372 ' allwordssubstr-<1>,<2>' => {
409373 cc => { },
410374 },
411- anyexact => {
412- COMMON_BROKEN_NOT,
413- " flagtypes.name" => { contains => [1, 2, 5] },
414- },
415- anywords => {
416- COMMON_BROKEN_NOT,
417- },
418- anywordssubstr => {
419- COMMON_BROKEN_NOT,
420- },
421- casesubstring => {
422- COMMON_BROKEN_NOT,
423- },
424375 changedafter => {
425376 " attach_data.thedata" => { contains => [2, 3, 4] },
426377 " classification" => { contains => [2, 3, 4] },
@@ -454,45 +405,11 @@ use constant BROKEN_NOT => {
454405 longdesc => { contains => [1] },
455406 " remaining_time" => { contains => [1] },
456407 },
457- equals => {
458- COMMON_BROKEN_NOT,
459- " flagtypes.name" => { contains => [1, 5] },
460- },
461408 greaterthan => {
462- COMMON_BROKEN_NOT,
463409 cc => { contains => [1] },
464410 },
465411 greaterthaneq => {
466- COMMON_BROKEN_NOT,
467412 cc => { contains => [1] },
468- " flagtypes.name" => { contains => [2, 5] },
469- },
470- lessthan => {
471- COMMON_BROKEN_NOT,
472- },
473- lessthaneq => {
474- COMMON_BROKEN_NOT,
475- },
476- notequals => { NEGATIVE_BROKEN_NOT },
477- notregexp => { NEGATIVE_BROKEN_NOT },
478- notsubstring => { NEGATIVE_BROKEN_NOT },
479- nowords => {
480- NEGATIVE_BROKEN_NOT,
481- " flagtypes.name" => { },
482- },
483- nowordssubstr => {
484- NEGATIVE_BROKEN_NOT,
485- " flagtypes.name" => { },
486- },
487- regexp => {
488- COMMON_BROKEN_NOT,
489- " flagtypes.name" => { contains => [1,5] },
490- },
491- ' regexp-^1-' => {
492- " flagtypes.name" => { contains => [5] },
493- },
494- substring => {
495- COMMON_BROKEN_NOT,
496413 },
497414};
498415
0 commit comments