-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: renamed DeprecatedRestApiClient from EdxRestApiClient #33603
Conversation
Thanks for the pull request, @Yagnesh1998! 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. |
from edx_rest_api_client.auth import SuppliedJwtAuth | ||
from edx_rest_api_client.client import EdxRestApiClient | ||
from edx_rest_api_client.auth import BearerAuth, JwtAuth, SuppliedJwtAuth | ||
from edx_rest_api_client.__version__ import __version__ |
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.
I think we should pull out this value from the edx-rest-api-client library and make it a constant here, since we don't want this value to change as the library changes, since the deprecated client won't be updated as the library changes.
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 reasonable to me. I'm going to merge it for now, but I will also make a revert PR just in case it needs to get backed out.
Actually, I'm going to get ask the purchase squad to review, just in case they have other concerns. |
@dianakhuang: We also would need to add slumber to edx-platform, since it was removed in the other PR.
|
@Yagnesh1998: We should add Also, I discussed with @dianakhuang, and we will move ahead with this PR. I didn't realize that there was a bug found the last time this was attempted. I detailed that separately in openedx/public-engineering#189 (comment). |
@robrap Sure. Thanks for the update. |
@Yagnesh1998: Do you plan to add slumber as requested in this comment? #33603 (comment). Note that there is also a github action that we can run (if you can't) to update dependencies once you add slumber to base.in. |
@robrap I've been working with @Yagnesh1998 on this, and we've been trying to get slumber into |
I forgot about |
requirements/edx/kernel.in
Outdated
@@ -159,3 +159,4 @@ webob | |||
web-fragments # Provides the ability to render fragments of web pages | |||
XBlock[django] # Courseware component architecture | |||
xss-utils # https://github.com/edx/edx-platform/pull/20633 Fix XSS via Translations | |||
slumber |
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.
Could you also add a comment about the fact that this dependency is unsupported and used by the DeprecatedRestApiClient?
@Yagnesh1998 @dianakhuang: I'm not clear if the github action can be used against the personal fork? See https://discuss.openedx.org/t/new-tools-for-managing-python-dependencies-in-edx-platform/11263. If not, you could run |
We merged #33916 instead |
@Yagnesh1998 Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future. |
@robrap Yes that makes sense |
Description:
As Per this DEPR: openedx/public-engineering#218
This ticket is to clean-up some remaining usages, and ultimately to remove the deprecated EdxRestApiClient so the code no longer lives in the platform.
Move EdxRestApiClient into a location near where it is used in edx-platform and rename it to DeprecatedRestApiClient