Merge lp:~adeuring/charmworld/1206158-dl-count-by-week-half-year into lp:~juju-jitsu/charmworld/trunk
Status: | Merged |
---|---|
Approved by: | Abel Deuring |
Approved revision: | 332 |
Merged at revision: | 331 |
Proposed branch: | lp:~adeuring/charmworld/1206158-dl-count-by-week-half-year |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
190 lines (+82/-7) 6 files modified
charmworld/jobs/ingest.py (+4/-0) charmworld/jobs/tests/test_cstat.py (+31/-6) charmworld/models.py (+16/-0) charmworld/templates/charm.pt (+11/-1) charmworld/tests/test_models.py (+18/-0) charmworld/views/tests/test_charms.py (+2/-0) |
To merge this branch: | bzr merge lp:~adeuring/charmworld/1206158-dl-count-by-week-half-year |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+178265@code.launchpad.net |
Commit message
show downloads in past 7, 30, 180 days on the charm details page.
Description of the change
This brnach fixes bug 1206158. "On manage.
The changes are straightforward:
- Get the additional download numbers from the charm store;
- add two new properties to class Charm
- show the download numbers in the charm details template.
(I shortly considered to just store all download details provided by the charm store in the MongoDB and to calculate the actually required numbers in Charm.downloads