-
Notifications
You must be signed in to change notification settings - Fork 254
FC-0001: replace EdxRestAPIClient with OAuthAPIClient #3693
FC-0001: replace EdxRestAPIClient with OAuthAPIClient #3693
Conversation
Thanks for the pull request, @dyudyunov! I've created OSPR-6589 to keep track of it in JIRA, where we prioritize reviews. 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. |
704e4c2
to
286907e
Compare
@dyudyunov Thank you for your contribution. It is on our radar now, we will review it in the coming weeks. |
@dyudyunov given the large number of changes, would you please add as many details as you can to the description? Summarize the different changes that were made throughout all the files, describe common types of changes, identify any areas of particular risk, etc. Also, if it is possible to split commits for different types of changes, that would help immensely. For example, if we could review the library change separately from the EdxRestApiClient change. Thanks! |
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.
Changes generally make sense to me, really nice cleanup. My only constructive feedback wolud be that I would really love to see something this big broken up into smaller PRs in the future. Not giving an approval because I'd like the team that maintains this code to go through it but I think this is good to go.
Hello @colinbrash
Hi, @feanil ! |
286907e
to
2bbe74c
Compare
Hi all! I've split this into two commits, hope this will ease the review @feanil @colinbrash FYI |
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.
This looks good to me overall! There are some logging changes, but they're minor enough that I don't think they're worth worrying about. I'm going to wait for the Revenue Squad to also get a chance to review before we merge, though.
I've pushed commit with 1 change (found the Slumber exception usage I've missed before) |
f7e2688
to
3c1812e
Compare
rebased the branch on the top of master branch |
there were no updates for translations files from my side, I don’t know why the pipeline failed to check them |
It looks like the translations issue is unrelated and someone is working on fixing it: #3702 We'll probably just need to rebase once it's fixed. |
a2b10b9
to
b60da3c
Compare
b60da3c
to
f402c7b
Compare
f402c7b
to
620064e
Compare
@dyudyunov 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
closes openedx/public-engineering#48
All the changes could be separated into two types:
.raise_for_status
and.json()
to be called (this was working under the hood in the old Slumber-based client)httpretty
library was replaced withresponses
because it had issues with keeping connections with requests.Session.responses
usage is pretty the same ashttpretty
s, it requires a more strict URL format (including the query parameters). It also can't be activated at the class level using the decorator