[423] Handle many more graphing edge-cases.
author Tom Rees
()
committer Tom Rees
()
commit d63c4e97154c2a03d8042836dd203dd63e777e39
tree 51a7bf2f54048afe570184dc5a3b82dc77602940
parent e9fa3effd2a57e94d99130e37d4b92595f60400b
[423] Handle many more graphing edge-cases.

Prepare graphs for an expected time period (since July 2012) rather than for the time period found in the DB, which can be reduced to absurdity with certain queries. Graphs always have a consistent X-axis, ugly logic to combine disparate data series can be removed.

On 'Publisher' and 'Dataset' tabs, always graph the *top 20* series regardless of the month currently rendered in the table. This makes more sense from a useability POV.

Finally, some client side error checking was improved.
ckanext/ga_report/controller.py
ckanext/ga_report/helpers.py
ckanext/ga_report/plugin.py
ckanext/ga_report/public/css/ga_report.css
ckanext/ga_report/public/scripts/ckanext_ga_reports.js
ckanext/ga_report/templates/ga_report/ga_util.html
ckanext/ga_report/templates/ga_report/publisher/index.html
ckanext/ga_report/templates/ga_report/publisher/read.html
ckanext/ga_report/templates/ga_report/site/index.html