Closed
Bug 880040
Opened 11 years ago
Closed 8 years ago
PUT region on an app
Categories
(Marketplace Graveyard :: API, defect, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: andy+bugzilla, Unassigned, Mentored)
References
Details
(Whiteboard: [lang=py][marketplace-transition])
When you get an app from the API you get the regions. As a dict. The client then (rightfully so) put back all the data. The problem is that the region is being put back as a list. Something that the client doesn't understand. It would be nicer if the regions were a list of URLs pointing to the region resources. Then when the PUT occurred, the client could just pass back the URLs of the regions they'd like to use. This requires: - changing the output of regions on the app resource - changing the input of regions For the moment since this broke things, I've commented it out. https://github.com/mozilla/zamboni/commit/e8d58c
Reporter | ||
Comment 1•11 years ago
|
||
And don't forget the search side of this. This make @robhudson all happy and not like you've just given him a pint of Coors Lite.
Updated•11 years ago
|
Priority: -- → P4
Reporter | ||
Comment 3•11 years ago
|
||
This would make krupa happier if we could fix this so in the API QA could turn regions on off for test apps en masse.
Reporter | ||
Updated•11 years ago
|
Priority: P4 → P2
Updated•11 years ago
|
Assignee: nobody → wraithan
Updated•11 years ago
|
Assignee: wraithan → nobody
Comment 4•10 years ago
|
||
The documentation on the regions parameter was removed in https://github.com/mozilla/zamboni/commit/98c1bb903bd03e85478f06429d87f7af7ece8d99#diff-5d3f3edc027f7584d97983db4d72a692L193, make sure it gets added back when this is fixed.
Updated•10 years ago
|
Assignee: nobody → mpillard
Comment 5•10 years ago
|
||
Because we need to handle special regions, payments, calculate difference between previous and new regions etc I believe the best approach would be to re-use mkt.developers.RegionForm, and possibly do that on a separate endpoint to make the implementation easier (we can always adapt later, but keeping it separate initially will make things much easier to test and avoid introducing new problems in the current API) Something like a 'regions' @action on the AppViewSet should work.
Updated•10 years ago
|
Assignee: mpillard → nobody
Priority: P2 → P3
Whiteboard: [contribute]
Updated•10 years ago
|
Whiteboard: [contribute] → [good first bug]
Comment 6•9 years ago
|
||
Hi Andy/MP-Team, it looks like this might not be very much clear to the newbie how to fix this. Can you put some information here for newbies so that they can pick this bug and fix it. Thanks, Ram
Flags: needinfo?(amckay)
Reporter | ||
Comment 7•9 years ago
|
||
I don't know if this is relevant any more, someone on the marketplace team might be able to help.
Flags: needinfo?(amckay)
Comment 8•9 years ago
|
||
This is still relevant. The bug description is pretty good IMHO, and should be accessible to python developers, particularly if they are already familiar with Django. This requires changing the backend code (in the "zamboni" repository, where our API lives), the instructions to set it up are available over at http://marketplace.readthedocs.org/en/latest/topics/backend.html It probably requires modifying the serializers in https://github.com/mozilla/zamboni/blob/master/mkt/webapps/serializers.py ; we use Django REST Framework, so this documentation should be useful: http://www.django-rest-framework.org/api-guide/serializers/
Whiteboard: [good first bug] → [good first bug][lang=py]
Comment 10•9 years ago
|
||
Yes, but do note the python/Django requirement. It's only a good first bug for contributors knowing Python, preferably Django as well.
Flags: needinfo?(mpillard)
Comment 11•9 years ago
|
||
Sure, it think this has become clear from comment 8. Nevertheless, someone who would be willing to answer specific questions helps people not knowing zamboni inside out a lot. Thanks!
Mentor: mpillard
Updated•9 years ago
|
Whiteboard: [good first bug][lang=py] → [lang=py]
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Whiteboard: [lang=py] → [lang=py][marketplace-transition]
You need to log in
before you can comment on or make changes to this bug.
Description
•