Closed Bug 600496 Opened 15 years ago Closed 15 years ago

Can't search for bugs created before a certain date ([Bug creation] is broken)

Categories

(Bugzilla :: Query/Bug List, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: gerv, Assigned: mkanat)

References

Details

Attachments

(1 file, 1 obsolete file)

Well, the code is still there: if (grep { $_ eq '[Bug creation]' } @fields) { So not sure what's happening. Will have to investigate.
Assignee: query-and-buglist → mkanat
Summary: Can't search for bugs created before a certain date → Can't search for bugs created before a certain date ([Bug creation] is broken)
Target Milestone: --- → Bugzilla 4.2
Blocks: 601383
Attached patch v1 (obsolete) — Splinter Review
The problem was that we didn't properly deal with the fact that [Bug creation] isn't a valid field name. So, instead of worrying about that, now I translate it into creation_ts, which is a valid field name.
Attachment #480408 - Flags: review+
Comment on attachment 480408 [details] [diff] [review] v1 Actually, this patch doesn't work, because it tries to find times when creation_ts changed, which never happens.
Attachment #480408 - Flags: review+ → review-
Attached patch v2Splinter Review
Okay, I instead developed a more-architecturally-ideal fix, where the "changedafter" and "changedbefore" operators now work as one would probably expect them to with the creation_ts field, so we don't need special code for creation_ts in that _special_parse function in Search.pm.
Attachment #480408 - Attachment is obsolete: true
Attachment #480412 - Flags: review+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Search.pm modified xt/lib/Bugzilla/Test/Search/Constants.pm Committed revision 7503.
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: approval+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: