Closed
Bug 867839
Opened 11 years ago
Closed 11 years ago
API should surface the number of downloads and created date since these are sort parameters
Categories
(Marketplace Graveyard :: API, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
2013-06-27
People
(Reporter: parul, Assigned: mat)
Details
(Whiteboard: p=1)
Steps to Reproduce: Scenario #1 1. Call the API to search for apps on the Firefox Marketplace and sort by downloads. https://marketplace.firefox.com/api/v1/apps/search/?sort=downloads 2. Examine the array of JSON objects returned to see exactly how many downloads for each app. Expected Result: The JSON object for the app should contain a name/value pair that indicates the number of downloads for the app. Actual Result: The JSON object for the app does not contain a name/value pair that indicates the number of downloads for the app. Scenario #2 1. Call the API to search for apps on the Firefox Marketplace and sort by created date / time stamp. https://marketplace.firefox.com/api/v1/apps/search/?sort=created 2. Examine the array of JSON objects returned to see the exact date / time stamp of creation for each app. Expected Result: The JSON object for the app should contain a name/value pair that indicates the exact date / time stamp of creation for the app. Actual Result: The JSON object for the app does not contain a name/value pair that indicates the exact date / time stamp of creation for the app.
Updated•11 years ago
|
Priority: -- → P3
Whiteboard: p=1
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mpillard
Assignee | ||
Comment 1•11 years ago
|
||
Fixed in https://github.com/mozilla/zamboni/commit/e6e72f5be6fab5f6eade501a2d32d3f6a5b400ae Steps to reproduce: - Choose an app with public stats enabled - Execute curl -s https://marketplace-dev.allizom.org/api/v1/apps/app/<slug>/ | python -m json.tool (replace <slug> by the app slug) - You should see "weekly_downloads": <some number> and "created": <creation date> in the output If you do the same thing with an app which has public stats disabled, weekly_downloads should be null.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
Target Milestone: --- → 2013-06-27
You need to log in
before you can comment on or make changes to this bug.
Description
•