Implements downloads counts (for dataset resources) and fixes an issue with 'All' records.
author Ross Jones
()
committer Ross Jones
()
commit fb4307a6de326e9aa113465bcabe674fd68d8775
tree 740201b9d0b05212605e7ad9d73222fd5b798331
parent c3167f269d99f8ef981488dc03671f27f8f1c4b9
Implements downloads counts (for dataset resources) and fixes an issue with 'All' records.

- Fetches the data for downloads (either direct or cached) from when a user clicked on a
Download button. We lookup the resource for this url (based on .url or .cache_url) and
then associate the download count with the package it belongs to.
- Fixes a bug (#211) where the All records are deleted for every url, even if that url was
not fetched (and therefore won't get a new All record).
ckanext/ga_report/command.py
ckanext/ga_report/controller.py
ckanext/ga_report/download_analytics.py
ckanext/ga_report/ga_model.py
ckanext/ga_report/templates/ga_report/ga_util.html
ckanext/ga_report/templates/ga_report/notes.html
ckanext/ga_report/templates/ga_report/publisher/read.html
setup.py