Closed Bug 533878 Opened 16 years ago Closed 12 years ago

Allow relative date searches involving date/time custom fields

Categories

(Bugzilla :: Query/Bug List, enhancement, P2)

3.4.3
enhancement

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: bugreport, Assigned: glob)

References

Details

Attachments

(1 file)

When a boolean search involves the value in a date/time custom field, the comparison should use timestamp_compare and gain the full capabilities of sqlifyDate, but it doesn't. For example, compare such a field to '7d' and the '7d' winds up in the sql. This does not appear to be any different on the tip.
Thanks for filing this--it's something I've known about for a while but I'm not sure it was filed already (though it may have been, perhaps with a strange summary or something).
Severity: normal → enhancement
Summary: Relative date searches involving date/time custom fields don't work → Allow relative date searches involving date/time custom fields
would be great to have such a capability. maybe it is sufficent to have extra comparisions as "is date", "date before",...
Priority: -- → P2
Attached patch patch v1Splinter Review
this patch adds relative date support for all date/datetime fields. for example, if you had a due-date custom date field, and wanted to search for all bugs due in the next two weeks, you can do: (match all of the following against the same field): (due date) (is greater than or equal to) "now" (due date) (is less than or equal to) "+2w"
Assignee: query-and-buglist → glob
Status: NEW → ASSIGNED
Attachment #770041 - Flags: review?(LpSolit)
Comment on attachment 770041 [details] [diff] [review] patch v1 Nice! r=LpSolit
Attachment #770041 - Flags: review?(LpSolit) → review+
Flags: approval?
Target Milestone: --- → Bugzilla 5.0
Flags: approval? → approval+
Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Search.pm modified t/011pod.t Committed revision 8658.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: