Skip to content
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

[DEPR]: Complete removal of EdxRestApiClient #189

Closed
6 of 9 tasks
robrap opened this issue Apr 11, 2023 · 12 comments
Closed
6 of 9 tasks

[DEPR]: Complete removal of EdxRestApiClient #189

robrap opened this issue Apr 11, 2023 · 12 comments
Assignees
Labels
depr Proposal for deprecation & removal per OEP-21 help wanted Ready to be picked up by anyone in the community

Comments

@robrap
Copy link

robrap commented Apr 11, 2023

Proposal Date

11 April 2023

Target Ticket Acceptance Date

11 April 2023

Earliest Open edX Named Release Without This Functionality

Q - 2023-10

Rationale

Note that this is not a new proposal, but is a ticket to track completion of the original DEPR documented here: #37.

This ticket is to clean-up some small remaining usages, and ultimately to remove the deprecated EdxRestApiClient so the code no longer lives in the platform.

Removal

Here is a general search for uses of EdxRestApiClient: https://github.com/search?q=org%3Aopenedx%20EdxRestApiClient&type=code

Replacement

See original DEPR for details: #37

Deprecation

No response

Migration

No response

Additional Info

No response

@robrap robrap added the depr Proposal for deprecation & removal per OEP-21 label Apr 11, 2023
@kdmccormick
Copy link
Member

I support this deprecation! 😉

@idegtiarov
Copy link

me too )))

@dianakhuang
Copy link

This snuck back into edx-platform: openedx/edx-platform@a35176e

@robrap
Copy link
Author

robrap commented Jun 15, 2023

Note that I have questions about some of the replacement work from the original DEPR ticket, but I have created the following ticket to address that: openedx/edx-rest-api-client#277

@robrap robrap added the help wanted Ready to be picked up by anyone in the community label Sep 13, 2023
@Yagnesh1998
Copy link

assign me

@robrap
Copy link
Author

robrap commented Dec 1, 2023

@dianakhuang @feanil: At some point we had discussed removing EdxRestApiClient from the library, and updating edx-platform's lone usage (that snuck back in) by making a local copy, renamed to DeprecatedEdxRestApiClient, so hopefully no ohter usages would crop up.

@Yagnesh1998 was working on that, and it struck me that:

  1. This DEPR won't be closed until we actually got rid of any new DeprecatedEdxRestApiClient, especially because this requires slumber library that we wish to retire, and
  2. Since we need to get rid of it anyway, is it possible to simply introduce a fix to use the new client (or requests) without ever introducing DeprecatedEdxRestApiClient?

I've asked @Yagnesh1998 to look into that based on PRs from the original DEPR work.

@Yagnesh1998
Copy link

Yagnesh1998 commented Dec 3, 2023

@dianakhuang, @robrap, Yes, I will start working on it. And let me know if there is any update or any change, thanks.

@robrap
Copy link
Author

robrap commented Dec 4, 2023

I have since learned more about the final fix that is needed. We will continue with the plan to merge a refactor to DeprecatedEdxRestApiClient, so that we can remove EdxRestApiClient from the library.

The new DeprecatedEdxRestApiClient will need to be fixed/removed to close this DEPR.

The initial attempt to remove the client failed with a bug in Production. Here is the PR with the (partial) revert: openedx/edx-platform#30792. Note that there were many changes in the original PR, so this PR just reverts the broken change.

Also, the revert PR refers to a private ticket in a code comment, and here are its contents:

https://2u-internal.atlassian.net/browse/ENT-6112
fix: get_ecommerce_api_client returns “405 Method Not Allowed” when calling "create_refunded_voucher" API view
get_ecommerce_api_client returns “405 Method Not Allowed” when called from within codebase https://github.com/openedx/edx-platform/blob/6d80bddb954dfa6f53601a391eec62c55447211e/openedx/features/enterprise_support/signals.py#L109. The same method works when we call it through EdxRestApiClient. Discovered when working on https://2u-internal.atlassian.net/browse/ENT-5938

How to reproduce the bug?

  1. Try URL localhost:18000
  2. Enroll in a verified track course
  3. Unenroll from the course

@dianakhuang
Copy link

I believe this only needs to be reviewed and merged: openedx/edx-rest-api-client#303

@robrap
Copy link
Author

robrap commented Aug 26, 2024

@dianakhuang:

  1. Are the checkboxes on this ticket out-of-date?
  2. Can we get [DEPR]: Remove EdxRestApiClient from edx-rest-api-client library #218 (comment) over the line?
  3. Should removal of DeprecatedEdxRestApiClient from edx-platform get its own edx-platform issue, whether it is a DEPR or not?

Basically, I'm wondering how to get these related DEPR tickets closed.

@dianakhuang
Copy link

  1. I think they probably are, but I haven't had time to really review them.
  2. Yup, I would like to do that asap.
  3. I think maybe we should create one when we get a chance. Maybe we can discuss during the DEPR meeting. I think it will depend on when ecommerce actually gets killed. It feels like it's been on the verge for the last few years.

@dianakhuang
Copy link

The ecommerce code will be removed within the next year anyway from edx-platform and the DEPR work for cleaning up DeprecatedRestApiClient will go with it, so we aren't making a separate ticket.

@github-project-automation github-project-automation bot moved this from Removing to Removed in DEPR: Deprecation & Removal Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depr Proposal for deprecation & removal per OEP-21 help wanted Ready to be picked up by anyone in the community
Projects
Status: Removed
Development

No branches or pull requests

5 participants