oarevalo / BugLogHQ

BugLogHQ is a tool to centralize the handling of automated bug reports from multiple applications. BugLogHQ provides a unified view of error messages sent from any number of applications, allowing the developer to search, graph, forward, and explore the bug reports submitted by the applications.
http://www.bugloghq.com
154 stars 67 forks source link

24 hour view doesn't show current hour in the graph #17

Closed atuttle closed 11 years ago

atuttle commented 11 years ago

I was going to try to just fix this myself and send a patch but I can't figure out where rs.criteria.startDate is being set so that I can adjust it for this view.

Basically, most views show the current hour/minute/whatever at the right edge of the graph, but the 24 hour view shows the 24 hours before now. So if the current time is 9:30am, then the graph shows 9am yesterday through 8am today.

Compare this to the 3-hour view. Current time is 10:30am, graph shows: 7am-10am, and the presumption is that the bar for 10am could just keep growing until the hour is complete.

oarevalo commented 11 years ago

Hi Adam, I'm not understanding completely the issue, but the startDate value is set here: https://github.com/oarevalo/BugLogHQ/blob/master/hq/handlers/general.cfc#L621-L627

where criteria.numdays is a numeric value that represents the number of days to cover in the search. Whole numbers meaning days, and decimal numbers meaning hours (0.5 = 12 hours, 0.25 = 6 hours, etc)

oarevalo commented 11 years ago

Adam, are you still seeing this problem? I think it is fixed in the current 1.8 branch so I will be closing it, but feel free to re-open if you find that it's still there.

FYI: I also fixed a related issue in which the chart (in railo at least) was swapping the first and last values for a 24 hour period (because the labels were identical i.e "5 PM").

atuttle commented 11 years ago

I'll have to check out the 1.8 branch. Thanks.