Closed Bug 518936 Opened 16 years ago Closed 15 years ago

Socorro UI - advanced search accepts datetimes but only uses dates

Categories

(Socorro :: General, task)

x86
Linux
task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: lars, Assigned: ryansnyder)

References

Details

Attachments

(2 files)

The advanced search in the "Occurs before" field accepts a datetime down to the minute while the next field, "Within the last", has a resolution down to an hour. In fact, when actually doing a search any time component given to the "Occurs before" field is truncated. For example: Occurs before <- 09/22/2009 11:00:00 With in the last <- 1 Hour returns crashes with datetimes ranging between 2009-09-21 23:00:00 and 2009-09-22 00:00:00 However, it tags the query results with original entry: "Results within 1 hours of 09/22/2009+11:00:00."
I've been looking at this because with the number of crashes/signatures under scrutiny right now, this is going to be an important tool to locate the minidumps for the developers. On initial inspection, it appears that the problem is with a string being cast to type DATE within an SQL statment in .../applications/models/common.php Yet changing it to "TIMESTAMP WITHOUT TIME ZONE" doesn't have the result that I would expect. See the attachment
Ozten, could you take a look at this when you've got the chance?
Assignee: nobody → ryan
Target Milestone: --- → 1.7
Lars - I started working with the sql you recommended in the previous attachment, and it seems to be returning the results properly. Querying for results from 04/10/2010 11:25:00 return results for 11:25, 11:24, etc. and everything looks proper to me. Take a look and make sure that works for you as well. I've updated the UI in the advanced search page to be a little more descriptive of the expected results set.
Attachment #439628 - Flags: review?(lars)
Attachment #439628 - Flags: review?(lars) → review?(ozten.bugs)
Comment on attachment 439628 [details] [diff] [review] Patch 1 for 518936 Looks good! Nice work. Note: this patch is out of date against trunk.
Attachment #439628 - Flags: review?(ozten.bugs) → review+
Thanks Austin... Committing... == Sending application/controllers/query.php Sending application/models/common.php Sending application/views/common/query_form.php Sending css/screen.css Sending js/socorro/query.js Transmitting file data ..... Committed revision r1972.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: 1.7 → 1.6.2
Looks good from my end.
Status: RESOLVED → VERIFIED
Component: Socorro → General
Product: Webtools → Socorro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: