[ckan-changes] [ckan/ckan] a12a94: [#1936] Avoid private and deleted datasets on stat...
GitHub
noreply at github.com
Thu Sep 18 16:35:10 UTC 2014
Branch: refs/heads/1936-stats-plugin-active-datasets
Home: https://github.com/ckan/ckan
Commit: a12a941a658a35b756fab293f70a19a60453aeaa
https://github.com/ckan/ckan/commit/a12a941a658a35b756fab293f70a19a60453aeaa
Author: amercader <amercadero at gmail.com>
Date: 2014-09-18 (Thu, 18 Sep 2014)
Changed paths:
M ckan/lib/create_test_data.py
M ckanext/stats/stats.py
M ckanext/stats/tests/test_stats_lib.py
Log Message:
-----------
[#1936] Avoid private and deleted datasets on stats plugin
The following queries have been udpated:
* Top groups: avoid deleted groups
* Most edited datasets: avoid deleted and private datasets
* Top rated packages: avoid deleted and private datasets (I don't think
this works anyway)
* Top package owners: don't include deleted or private datasets in the
counts
In most cases, the old queries have been moved to the
`model.Session.query` way because it made them more simple and
understandable. Tests updated.
More information about the ckan-changes
mailing list