Closed
Bug 600496
Opened 14 years ago
Closed 14 years ago
Can't search for bugs created before a certain date ([Bug creation] is broken)
Categories
(Bugzilla :: Query/Bug List, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.2
People
(Reporter: gerv, Assigned: mkanat)
References
Details
Attachments
(1 file, 1 obsolete file)
5.45 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
I want to find all bugs created before 2000-06-17. 4.0: https://landfill.bugzilla.org/bugzilla-4.0-branch/buglist.cgi?chfieldto=2000-06-17&chfield=[Bug%20creation] => 11 bugs found. Tip: https://landfill.bugzilla.org/bugzilla-tip/buglist.cgi?chfieldto=2000-06-17&chfield=[Bug%20creation] => Error: "Can't use [Bug creation] as a field name."
Assignee | ||
Comment 1•14 years ago
|
||
Well, the code is still there: if (grep { $_ eq '[Bug creation]' } @fields) { So not sure what's happening. Will have to investigate.
Assignee | ||
Updated•14 years ago
|
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
Assignee | ||
Comment 2•14 years ago
|
||
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+
Assignee | ||
Comment 3•14 years ago
|
||
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-
Assignee | ||
Comment 4•14 years ago
|
||
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+
Assignee | ||
Comment 5•14 years ago
|
||
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: 14 years ago
Flags: approval+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•