API consumers should be able to add collections to a region/page pair

RESOLVED FIXED in 2013-08-27

Status

Marketplace
API
P2
normal
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: chuck, Assigned: mat)

Tracking

2013-08-27
Points:
---

Details

(Reporter)

Description

5 years ago
From the publishing tool, publishers will be able to add an arbitrary number of collections and featured applications to a region (country + operator)/page (category + homepage) pair.

To do this, we need an endpoint that allows users to add collections to a region/page pair.

This endpoint should be protected by the Apps:Publisher permission created in bug 894425.
(Reporter)

Updated

5 years ago
Assignee: nobody → charmston
(Reporter)

Updated

5 years ago
Assignee: charmston → mpillard
Flue API endpoint @ /api/v1/rocketfuel/collections/
https://github.com/mozilla/flue/commit/8498d80
Should we be adding collections to a region/carrier/collection_type pair? Or should we be having a separate collection for each region/carrier/collection_type? I'm thinking the latter.

It'd make bug 894591 the same as 894638, etc. There are several dupes we could dupe if we go this route.
(Assignee)

Comment 3

5 years ago
It looks like all that will be left to do once bug 903489 is done is to determine, code and test the relevant unique constraints.
(Assignee)

Comment 4

5 years ago
So, unique constraints are going to be tricky, because we'd want constraints that depend on the value for another field. So we are going to have to do this manually:

<cvan> (...) let's just make sure the admin doesn't create more than one category/region/carrier combination for operator shelves+featured apps

Worst case scenario, an extra collection would be created, we need to make sure that a) the consumer pages only display the first one b) the admin displays all of them to be able to edit and remove the extra one.
(Assignee)

Updated

5 years ago
Status: NEW → ASSIGNED
(Assignee)

Updated

5 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-08-27
You need to log in before you can comment on or make changes to this bug.