Closed
Bug 994304
Opened 10 years ago
Closed 10 years ago
Create API endpoint that aggregates Darjeeling collections
Categories
(Marketplace Graveyard :: API, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
2014-04-15
People
(Reporter: chuck, Assigned: mat)
References
Details
(Whiteboard: [qa-])
Since we're storing both the full catalog and the featured apps for Darjeeling in separate collections, we'd currently need to make 2 requests to the API to fetch the full data set, getting a lot of redundant data in the process. That seems wasteful; since we're appcaching this shindig, we should try to eliminate all that redundancy. Suggestion: { 'featured': [1, 2, 3, 4, 5], 'all': [ { 'name': 'One App', 'id': 1, 'more': 'goes here' }, { 'name': 'Another App', 'id': 2, 'more': 'goes here' } ] } Here, `featured` would be a list of IDs of apps in the collection with the slug 'tarako-featured', while `all` would be the serialization of each app in the collection with the slug 'tarako-apps'. Hardcoding slugs makes me feel icky, but it's simple and works and that's good enough for me.
Assignee | ||
Updated•10 years ago
|
Priority: -- → P1
Target Milestone: --- → 2014-04-15
Assignee | ||
Comment 1•10 years ago
|
||
WIP https://github.com/mozilla/zamboni/pull/1929 I added a 'featured' property in each app ; I needed it to make it easier to build the list, figured it could be useful to expose as well.
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•10 years ago
|
||
https://github.com/mozilla/zamboni/commit/72711c792985a835fd1335d0b3946524186e7f04
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•