The default bug view has changed. See this FAQ.

API should surface the number of downloads and created date since these are sort parameters

RESOLVED FIXED in 2013-06-27

Status

Marketplace
API
P3
normal
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: Parul Mathur, Assigned: mat)

Tracking

2013-06-27
ARM
Gonk (Firefox OS)
Points:
---

Details

(Whiteboard: p=1)

(Reporter)

Description

4 years ago
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

4 years ago
Priority: -- → P3
Whiteboard: p=1
(Assignee)

Updated

4 years ago
Assignee: nobody → mpillard
(Assignee)

Comment 1

4 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
Last Resolved: 4 years ago
Resolution: --- → FIXED
(Assignee)

Updated

4 years ago
Target Milestone: --- → 2013-06-27
You need to log in before you can comment on or make changes to this bug.