Skip to content

Conversation

@jignaciopm
Copy link

@jignaciopm jignaciopm commented May 22, 2025

Description

This PR backports two key changes from openedx/edx-platform into the Nutmeg-based edunext Nimbus SaaS distribution. The goal is to allow our SaaS clients to use the new WordPress plugin openedx-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

  • This PR is part of the plan to officially deprecate support for the edunext-openedx-integrator plugin.
  • Once deployed, clients will be notified via Lotus to switch to the openedx-commerce plugin.
  • The old plugin will then be removed from the WordPress plugin repository.

Testing instructions

Warning: This PR has not yet been tested.

Suggested testing steps:

  1. Deploy this branch on a Nimbus instance running Nutmeg.
  2. Have a platform with this PR.
  3. Have a user for the test and a course with a mode specified in "mode" (You can add it in the admin in Course Modes).
  4. Have an Authorization token (For example, a JWT token).
  5. Verify no API conflicts or regressions.

POST /api/enrollment/v1/enrollment

Header:

Authorization: JWT YOUR_JWT_TOKEN

Body:

{
  "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_TOKEN

Expected 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

  • This change does not impact clients already running Quince or newer.
  • No additional configuration changes are required, assuming the new plugin is configured correctly.
  • No known migrations, deprecations, or security issues are introduced in this PR.

@jignaciopm jignaciopm requested a review from a team May 22, 2025 17:43
@jignaciopm jignaciopm changed the title Jipm/backport 33006 and 33059 to nuez feat(lms): backport support for openedx-commerce plugin to Nuez May 22, 2025
@jignaciopm
Copy link
Author

Pruebas

image
image

@jignaciopm jignaciopm merged commit f266482 into ednx-release/nuez.saas May 29, 2025
1 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants