Merge lp:~rharding/charmworld/total-stats into lp:~juju-jitsu/charmworld/trunk
Proposed by
Richard Harding
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | 291 |
Merged at revision: | 290 |
Proposed branch: | lp:~rharding/charmworld/total-stats |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
424 lines (+112/-33) 15 files modified
charmworld/charmstore.py (+12/-6) charmworld/jobs/ingest.py (+3/-1) charmworld/jobs/tests/test_cstat.py (+6/-1) charmworld/models.py (+8/-0) charmworld/search.py (+3/-4) charmworld/testing/factory.py (+5/-3) charmworld/tests/test_charmstore.py (+16/-1) charmworld/tests/test_models.py (+9/-0) charmworld/tests/test_search.py (+4/-4) charmworld/views/api.py (+2/-0) charmworld/views/tests/test_api.py (+15/-6) charmworld/views/tests/test_charms.py (+3/-3) charmworld/views/tests/test_search.py (+1/-1) docs/api.rst (+7/-3) migrations/versions/009_add_downloads_attribute.py (+18/-0) |
To merge this branch: | bzr merge lp:~rharding/charmworld/total-stats |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+172356@code.launchpad.net |
Commit message
Add support for a total downloads attribute.
Description of the change
Add support for a total downloads attribute.
- Ingest pulls the total downloads as well as the last 30 days
- Model and tests are updated to deal with the new attribute
- A migration is put into place to init the new attribute = to the last 30 days count until next ingest runs
- Sort is updated to use the new attribute for determining most popular vs the old 30 day count.
To post a comment you must log in.
Thank you. I think abentley must reconcile the new attr with this forthcoming branch that documents DISTRO_CHARM_DATA in charmworld/ views/tests/ test_charms. py. This is good to land now.