Closed Bug 1335669 Opened 8 years ago Closed 8 years ago

Autophone - phonedash - ui upgrade

Categories

(Testing Graveyard :: Autophone, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(1 file)

Loading http://phonedash.mozilla.org/ does not automatically display a graph any more. The user is required to click Reset to load the data and then click Reset again to select and display the graph. This turns out to be due to a change in how the date period and start/end dates fire onchange events. Previously, changing the date period or start/end dates fired two onchange events which we worked around by determining the default date range for today and setting the corresponding document.location.hash and returning early from displayGraph which would then be immediately called again which would then load and graph the data. The simple fix is to remove the early return. While we are here, we might as well improve some other items: The default binning is repo-phonetype but this can cause the graph to erroneously appear to show improvements or regressions if the complete population of phones for the phonetype have not submitted recent data. The fix is to change the default binning to repo-phonetype-phoneid. The colors for the graph lines are currently chosen automatically and when many series are displayed results in series with the color of white which does not display well on a background of white. The fix here is to use a standard set of colors and adjust the background. I've added the CSS standard color names and changed the background color to black which does not have the same failing as a white background when displaying lines with "light" colors. Finally, we can take this opportunity to upgrade flot to 0.8.3 and jquery-ui to 1.12.1 and get the latest timezone tables.
I figure a pull request makes more sense for this one. It looks bigger than it is. I didn't trim the extra files from the updates to flot and jquery-ui so we have the full installations now.
Attachment #8832362 - Flags: review?(jmaher)
Comment on attachment 8832362 [details] [review] https://github.com/mozilla/phonedash/pull/2 I really think adding all of the extra files in outside of the core .js libraries we want is not beneficial- maybe just getting rid of the examples folder would be a good happy medium?
Attachment #8832362 - Flags: review?(jmaher)
Comment on attachment 8832362 [details] [review] https://github.com/mozilla/phonedash/pull/2 Removed examples and *.md and pushed the additional commit. I'll rebase it onto the flot commit before merging.
Attachment #8832362 - Flags: review?(jmaher)
I really should just write an installer that will download and unzip the flot, jquery-ui and tz stuff into the directory then we don't need to keep copies in the tree. Another bug for another time.
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: