-
Notifications
You must be signed in to change notification settings - Fork 15
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: DEPR EdxRestApiClient #303
Conversation
Thanks for the pull request, @Yagnesh1998! What's next?Please work through the following steps to get your changes ready for engineering review: 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:
When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Another note: you will want to bump the version number for this library (in the version file) to a new major version (so 6.0.0) and add a note to the README that there is a breaking change here. |
Hi @Yagnesh1998 looks like there are some CI failures, can you have a look? |
@mphilbrick211 two workflows awaiting approval. |
Hi @Yagnesh1998! I'm seeing that the workflows are enabled. Would you mind looking into the failing checks? |
@mphilbrick211 After adding a commit on this repo it always gives me 2 workflows waiting for approval. can I approve it myself? |
@Yagnesh1998 - it looks like you should be able to rebase and have the tests run again. Let me know if that doesn't work. |
@mphilbrick211 doesn't work. my question is in my local system I can see the failing test but when I push commit here it always gives me 2 workflows waiting for approval. But when I worked on the commits in the edx-platform repo in the past, I did not see this type of problem, and all the tests were passed. |
@mphilbrick211 can u please approve the workflow so the tests are starting to run? |
@Yagnesh1998 - looks like all the tests ran and are passing. @openedx/arch-bom - this is ready for review! |
|
||
import crum | ||
import requests | ||
import requests.utils | ||
import 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.
- Hopefully
slumber
can be fully removed from this library, including the requirements files. That means removing from the*.in
requirement files, and then runningmake upgrade
in the top-level directory to generate the updated*.txt
requirement files. - It looks like slumber is also used in an exceptions file: https://github.com/search?q=repo%3Aopenedx%2Fedx-rest-api-client%20slumber&type=code
- You still need to do a major upgrade of the version to 6.0.0 here:
__version__ = '5.6.1'
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.
@Yagnesh1998: A reminder to update CHANGELOG.rst. See https://open-edx-proposals.readthedocs.io/en/latest/best-practices/oep-0051-bp-conventional-commits.html for handling backward incompatible changes like this one.
@robrap I think it's done. Any suggestions or any feedback. |
UPDATE: I moved this comment to openedx/edx-platform#33603 (comment) |
3a12b62
to
af5a4ce
Compare
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 update CHANGELOG.rst for version 6.0.0 mentioning that we are removing EdxRestApiClient
and that it's a breaking change?
@dianakhuang - would you mind enabling tests on this again? Thanks! |
@robrap - is this something you can review / merge? |
@Yagnesh1998 could you rebase and resolve conflicts? I can re-review it once that's done. |
Hi @Yagnesh1998 - checking in on this. Are you planning to pursue this pull request? If so, there's branch conflicts that need to be resolved before the pull request can be merged. Thanks! |
I will do that currently I am on holiday but I will finish that soon.Thanks for reminding and commenting :) @mphilbrick211 |
Hi @Yagnesh1998 - friendly check in on this :) |
Closing for now. Can reopen in the future if needed. |
Gonna re-open and see if DEPR WG can get it over the line. |
8453c73
to
16def69
Compare
@robrap @dianakhuang this is good to go now I think, also, while doing this I noticed other maintenance that needs to be done so I made a PR for that here: #362 I'd love to land both before the major version bump. |
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