Closed
Bug 950012
Opened 12 years ago
Closed 10 years ago
Discrepancies between App and Search API
Categories
(Marketplace Graveyard :: API, defect, P2)
Tracking
(Not tracked)
RESOLVED
WONTFIX
2013-12-17
People
(Reporter: mat, Assigned: ashort)
Details
(Whiteboard: [marketplace-transition])
While investigating for bug 944419 I found a number of differences between the json returned by the App API (non-fireplace) and the json returned by the Search API.
Specifically :
- In search API, id is a string, not an int
- Search API has "is_offline", "reviewed", and "absolute_url" fields that are missing from App API.
- App API has "upsold" which is missing from Search API
- App API has a lot of extra fields: dev_agreement, eula, view_source, enable_thankyou, outstanding, developer_comments, average_daily_downloads, admin_review_type, annoying, the_future, trusted, target_locale, guid, disabled_by_user, total_downloads, paypal_id, average_rating, wants_contributions, average_daily_users, bayesian_rating, share_count, type, app_slug, app_domain, total_contributions, tags, enable_new_regions, suggested_amount, dependencies, prerelease, thankyou_note, authors, admin_review, auto_repackage, external_software, highest_status, mozilla_contact, icon_type, summary, site_specific, total_reviews, the_reason, hotness
This is probably because of the switch to DRF. None of the extra keys in App API was documented, and I documented them all very recently, so I'm pretty sure they should all be removed, except a couple specific ones like 'tags" which is used in dumps.
Comment 1•12 years ago
|
||
is_offline was added recently by cvan (CCing) in bug 937698.
I don't have any special knowledge of the other fields.
| Assignee | ||
Comment 2•12 years ago
|
||
this was probably a result of switching to 'excludes' for field listing rather than providing a whitelist of fields we did want. I missed that fact that both 'fields' and 'excludes' can be used, so we should switch back to listing only the fields we actually want.
| Assignee | ||
Comment 3•12 years ago
|
||
https://github.com/mozilla/zamboni/commit/9ac461d3637
This doesn't address any discrepancies from the search API side but will make AppSerializer's behavior more robust.
Assignee: mpillard → ashort
| Reporter | ||
Comment 4•12 years ago
|
||
cvan made id a long in https://github.com/mozilla/zamboni/commit/4234db80263fb605eca190a9adf7716ba4c8c4ce
The differences left are:
- Search API has "is_offline", "reviewed", and "absolute_url" fields that are missing from App API.
- App API has "upsold" which is missing from Search API
| Assignee | ||
Comment 5•12 years ago
|
||
Should these three fields be added to the API response? should upsold be added to search results?
| Reporter | ||
Comment 6•12 years ago
|
||
Yeah, as long as we don't expose them in fireplace API we should add them, IMHO.
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Whiteboard: [marketplace-transition]
You need to log in
before you can comment on or make changes to this bug.
Description
•