Closed Bug 639111 Opened 13 years ago Closed 13 years ago

Bug Details loads data from first record by default

Categories

(Tree Management Graveyard :: OrangeFactor, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcote, Unassigned)

Details

Attachments

(1 file)

Repro:

- go to http://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=633566

OR

- go to http://brasstacks.mozilla.com/orangefactor/?display=Bug

and enter a bug number.

In both cases, the startday will default to 2010-08-01.  It should be the default (4 weeks ending today atm).

We probably haven't noticed this earlier because all the internal links to the Bug Details view include the date range.
Might be cool to also display the date of the first recorded occurrence (with a special string if at beginning of records) along with a link to view the whole history (i.e. first occurrence to now).
Assignee: nobody → mcote
Status: NEW → ASSIGNED
This makes the default dates on the Bug Details view the same as the other views (currently, the last 4 weeks). It also adds a link to see the entire history of the bug, from the day before the first appearance to the day after the last appearance.  I think it looks better with the extra days--though I also noticed that we handle 0 counts differently before and after a bug's first occurrence--but maybe that's how it should be.

Also had to fix calculateMetric() to actually do something with dataStartDate and dataEndDate.
Attachment #521643 - Flags: review?(jgriffin)
Comment on attachment 521643 [details] [diff] [review]
Bug Details: default to standard date range, add "entire history" link

Nice - I like the 'entire history' feature.
Attachment #521643 - Flags: review?(jgriffin) → review+
Pushed as http://hg.mozilla.org/automation/orangefactor/rev/8447aba8bf1a, with a few corrections on top (left in some console logs).
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Testing → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: