Fix the BulkEnrollSerializer courses field to internally behave with strings and lists - #15579
Conversation
…strings and lists
|
Thanks for the pull request, @bdero! It looks like you're a member of a company that does contract work for edX. If you're doing this work as part of a paid contract with edX, you should talk to edX about who will review this pull request. If this work is not part of a paid contract with edX, then you should ensure that there is an OSPR issue to track this work in JIRA, so that we don't lose track of your pull request. |
|
Thanks for the pull request, @bdero! I've created OSPR-1823 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. |
|
jenkins run a11y |
|
I still haven't done testing on this - I'll deploy it to the business sandbox so we can get that going. |
|
I've tested this on the business sandbox, so this is good to go. |
|
@brittneyexline Hah, just when I got the OC sandbox build to complete too. 😛 Thanks! |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production on Wednesday, July 19, 2017. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
|
@bdero Could we get this and https://github.com/edx/edx-platform/pull/15006 into Ginkgo? |
|
@pomegranited I think that would be an excellent thing - should I make a PR against the Ginko RC to do this? |
|
@bdero Yep, if you could submit a PR against Thank you! |
|
@bdero Sorry, I should take this back.. @bradenmacdonald reminded me that we're concentrating on bug fixes not new features for the ginkgo rc right now. Apologies for the noise! |
|
@pomegranited Ok, thanks for letting me know :) |
Follow up to https://github.com/edx/edx-platform/pull/15006: Internally, DRF may pass data into the value conversion method of ListFields
to_internal_valueas a list instead of a string in some cases, soStringListFieldin the Bulk Enroll API needs to work with both. This change adds this support and tests.Sandbox URL: Sandbox URL: https://pr15579.sandbox.opencraft.hosting/
Test setup instructions:
staffuser (likely the user ID is 5 if on a devstack)http://example.com/http://example.com/callbackTesting instructions:
Replace the "client_id" and "client_secret" with the respective keys copied suring the test setup instructions, and run the following to obtain an access token:
Using the access token in the response from the previous step, construct an authenticated request to the bulk_enroll endpoint (replace "course-v1:asdf+asdf+asdf" with a course on your devstack):
Settings