New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: CourseEnrollmentAllowed API #33059
feat: CourseEnrollmentAllowed API #33059
Conversation
Thanks for the pull request, @MaferMazu! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good, just a couple of small change requests!
Thank @feanil; tomorrow, I will improve the PR and request again for your feedback. |
fe5083a
to
d109239
Compare
@feanil I applied your feedback; thanks again. I still have a test failed, and the output is:
I have that name in my URLs, but I wonder if I'm missing something. Do you know how to fix this error? |
39c2a71
to
d46fe16
Compare
Tests fixed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great add of a serializer for the existing CourseEnrollmentAllowed
model! Apologies, but still one security question:
Thanks for the patience, @pshiu and @felipemontoya. By the middle of this week, I can retake this effort. |
(@MaferMazu No problem, thank you!) |
dcd8200
to
0df3229
Compare
Changes in my latest commit:
What do you think, @felipemontoya and @pshiu? |
5042638
to
cc45fa9
Compare
@felipemontoya @pshiu, do you have more feedback about this API? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for incorporating the feedback, @MaferMazu. Great work.
@MaferMazu, when you've finished collecting feedback from @felipemontoya & @feanil, give me a ping anytime and happy to be the merger & monitor deployment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small nit, but otherwise looks good to me as well!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the work @MaferMazu. With the latest round of changes addressing all the feedback I think this is good to go.
fix: correct test, add no staff test for post and apply feedback. feat: add delete method and refactor the code fix: correct quality tests fix: add trailing slash to the url Co-authored-by: Feanil Patel <feanil@axim.org>
a8de7dd
to
5939dcf
Compare
@pshiu, please give it a last look, and you can merge it when the tests are finished 🙌 |
@MaferMazu 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
(cherry picked from commit 76dbcde)
Description
This PR adds the methods GET and POST to CourseEnrollmentAllowed to have and usable API only for Staff or Owners.
Supporting information
We want to add this for the WooCommerce Plugin we are building to integrate third-party e-commerce with Open edX.
Testing instructions
GET /api/enrollment/v1/enrollment_allowed?email=user@example.com
Parameters
email
(optional, string, query_params)POST /api/enrollment/v1/enrollment_allowed
Example request data:
Deadline
We would like to have this merged by 08/31/2023
Other information
ADR when we discuss these additions: eduNEXT/platform-plugin-ecommerce-api#1 (comment)
How to have a JWT Token
POST /oauth2/access_token
Body in Form: