-
Notifications
You must be signed in to change notification settings - Fork 55
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
fix: set JSONRenderer as the DEFAULT_RENDERER_CLASSES #403
Conversation
Thanks for the pull request, @CodeWithEmad! 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. |
fadf249
to
1a4fb82
Compare
Thanks for the PR @CodeWithEmad . I think the JSON change looks good. Let me see if there is a maintainer that'd want to review this before I merge it. Regarding black, there is a cost associated with reformatting, in that it complicates git blame and makes it harder for folks with forks to rebase. So, my rule of thumb is that we should only reformat it if we also enforce the new style in CI so that we never need to apply the same reformatting again. Please remove the black commit from this PR, but feel free to introduce it in a new PR along with a black CI check if that interests you. (the docs reformatting is good to stay -- the considerations about git and forks do not apply so much :) |
Sure @kdmccormick. Thanks for the explanation. I always make sure to leave any code base cleaner than how I found it. :) |
1a4fb82
to
7180c3a
Compare
@CodeWithEmad I've run the test. I've also added you to the triage team as you are covered under an entity CLA. This means that tests should run automatically for you in the future. Let me know if that doesn't happen. |
Thanks @e0d |
7180c3a
to
bbc1b2b
Compare
I pushed new changes but: "This workflow requires approval from a maintainer." |
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.
Looks good!
Let's see if re-running those migration checks fixes them...
@CodeWithEmad the tests have been re-run - looks like some checks are still failing. |
- RST header definition - code-block for better readability - removed $ from commands for simpler copying
bbc1b2b
to
9c6d096
Compare
That's super odd. I've added 1 DRF config and the tests are failing on installing the dependencies! I'll look into it. |
@mphilbrick211 All checks have passed. |
@CodeWithEmad 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Thanks @CodeWithEmad ! |
This will introduce a similar approach as
edx-platform
to setJSONRenderer
as theDEFAULT_RENDERER_CLASSES
. with this, we don't have Browsable APIs anymore. also, some code reformatting with black and RST cleanup in README.See here for more context: overhangio/tutor-notes#35