feat(lms): backport support for openedx-commerce plugin to Nuez #831
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Description
This PR backports two key changes from
openedx/edx-platforminto the Nutmeg-based edunext Nimbus SaaS distribution. The goal is to allow our SaaS clients to use the new WordPress pluginopenedx-commerce, which only supports Quince or later.Currently, some clients use the legacy plugin
edunext-openedx-integrator, which has not been maintained since 2020. This backport enables a migration path to the community-supported plugin without requiring a full upgrade to Quince.Included changes:
Supporting information
edunext-openedx-integratorplugin.openedx-commerceplugin.Testing instructions
Warning: This PR has not yet been tested.
Suggested testing steps:
POST /api/enrollment/v1/enrollment
Header:
Authorization: JWT YOUR_JWT_TOKENBody:
{ "user_email": "user-1@example.com", "mode": "honor", "course_details": { "course_id": "course-v1:edX+DemoX+Demo_Course" } }Expected result: 200 and show the enrollment information.
GET /api/enrollment/v1/enrollment/USER_EMAIL,COURSE_ID
Header:
Authorization: JWT YOUR_JWT_TOKENExpected result: 200 and show the enrollment information.
POST /api/enrollment/v1/enrollment_allowed
Example request data:
{ "email": "user@example.com", "course_id": "course-v1:edX+DemoX+Demo_Course", "auto_enroll": true }GET /api/enrollment/v1/enrollment_allowed?email=user@example.com
Parameters
email (optional, string, query_params)
Deadline
Preferably before coordinating the migration from Lotus and deprecating the old plugin.
Other information