Merge lp:~wgrant/launchpad/export-basic-binary-download-stats into lp:launchpad/db-devel
Proposed by
William Grant
Status: | Merged |
---|---|
Approved by: | Michael Hudson-Doyle |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~wgrant/launchpad/export-basic-binary-download-stats |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
188 lines (+99/-2) 7 files modified
lib/lp/soyuz/doc/archive.txt (+44/-0) lib/lp/soyuz/doc/publishing.txt (+13/-0) lib/lp/soyuz/interfaces/archive.py (+3/-0) lib/lp/soyuz/interfaces/publishing.py (+6/-0) lib/lp/soyuz/model/archive.py (+11/-1) lib/lp/soyuz/model/publishing.py (+4/-0) lib/lp/soyuz/stories/webservice/xx-binary-package-publishing.txt (+18/-1) |
To merge this branch: | bzr merge lp:~wgrant/launchpad/export-basic-binary-download-stats |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hudson-Doyle | Approve | ||
Paul Hummer (community) | code | Needs Fixing | |
Review via email: mp+21544@code.launchpad.net |
Commit message
Allow users to extract basic per-package PPA download counts through the webservice.
Description of the change
This simple branch adds and exports IBinaryPackageP
To post a comment you must log in.
160 +We can also retrieve the total download count for the binary in this archive. named_get( ][0]['self_ link'], 'getDownloadCou nt').jsonBody( )
161 +
162 + >>> webservice.
163 + ... pubs['entries'
164 + 0
165 +
I'd feel a bit happier if we also had a case where there was a result to getDownloadCount that resulted in something other than 0. In fact, if it were a either/or, I'd prefer the non-zero test, but since you've already got this one, adding another for non-zero would be preferred.