Closed Bug 456349 Opened 16 years ago Closed 16 years ago

Clean up graphs

Categories

(Socorro :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: morgamic, Assigned: ozten)

Details

Attachments

(1 file)

Graphs are done using mochikit/plotkit, but there are better ways to generate these graphs -- google charts, flot, timeplot, or others are all viable alternatives with easier-to-use APIs.
Assignee: nobody → aking
Comment on attachment 343111 [details] [diff] [review]
Converting MochiKit to flot for plotting crash reports

Works for me, but a few thoughts:

* In the reports controller, you're using foreach: and endforeach, which I usually only see in templates.  Might be better to use braces in controller code

* There's JS data constructed using string concatenation.  I think some of the original code was doing this, too.  It might be better to build a PHP data structure and then use json_encode() to produce this.  Often faster, and usually more resistant to XSS issues - though that shouldn't pop up in this particular bit of code.
Attachment #343111 - Flags: review?(lorchard) → review+
Updated foreach syntax. json_encode is a good idea. l.m.orchard thanks for the feedback, I will look at rolling that in soon. Code checked in r627.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attachment #343111 - Flags: review?(lars)
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: