Skip to main content

eduNEXT Openedx extensions

Project description

Maintainance Status GitHub Actions Workflow Test Status PyPI - Version

Eox-core is an openedx plugin for the edx-platform, and part of the Edunext Open edX Extensions (aka EOX), that adds multiple API endpoints to extend its functionality and avoid changing the base code directly. These API endpoints include bulk creation of pre-activated users (for example, skip sending an activation email), enrollments, and pre-enrollment operations.

Installation

  1. Add this plugin in your Tutor config.yml with the OPENEDX_EXTRA_PIP_REQUIREMENTS setting.

    OPENEDX_EXTRA_PIP_REQUIREMENTS:
       - eox-core=={{version}} # basic installation
       - eox-core{{requirements}}=={{version}} # requeriments e.g. [sentry,tpa]. Useful for integration with third-party applications.
  2. Save the configuration with tutor config save.

  3. Build an open edx image with tutor images build openedx.

  4. Launch your platform with tutor local launch.

Note: To use all the features, you need to have the tutor-forum plugin and the eox-tenant plugin.

Features

  • Support redirections with middleware.

  • Add pipelines for authentication.

  • Add a group of APIs.

    Eox-core APIs

Usage

See the How to section for guidance on middleware, pipeline and API usage.

Compatibility Notes

Open edX Release

Version

Ironwood

< 4.0

Juniper

>= 3.0 < 5.0

Koa

>= 4.9 < 6.0

Lilac

>= 4.9 < 6.0

Maple

>= 6.0 < 11.0

Nutmeg

>= 7.0 < 11.0

Olive

>= 8.0 < 11.0

Palm

>= 9.0 < 11.0

Quince

>= 10.0

Redwood

>= 10.5.1

⚠️ The Maple version does not support Django 2.2 but it does support Django 3.2 as of eox-core 7.0.

The plugin is configured for the latest release (Redwood). The following changes in the plugin settings should be applied in order to be used for previous releases.

Maple

EOX_CORE_PRE_ENROLLMENT_BACKEND: "eox_core.edxapp_wrapper.backends.pre_enrollment_l_v1"
EOX_CORE_ENROLLMENT_BACKEND: "eox_core.edxapp_wrapper.backends.enrollment_l_v1"

Nutmeg

EOX_CORE_PRE_ENROLLMENT_BACKEND: "eox_core.edxapp_wrapper.backends.pre_enrollment_l_v1"
EOX_CORE_ENROLLMENT_BACKEND: "eox_core.edxapp_wrapper.backends.enrollment_l_v1"

These settings can be changed in eox_core/settings/common.py or, in the instance settings.

🚨 If the release you are looking for is not listed, please note:

  • If the Open edX release is compatible with the current eox-core version (see Compatibility Notes), the default configuration is sufficient.

  • If incompatible, you can refer to the README from the relevant version tag for configuration details (e.g., v6.2.1 README).

Integrations with third-party services

The plugin offers some integrations listed below:

  1. Sentry: This service allows tracking the errors generated on edx-platform. Check more details at https://sentry.io/welcome/.

    To enable the integration, follow the steps below:

    • Install the plugin with Sentry support (extras_require [sentry]).

    • Sign up/in your sentry account and create a new Django application integration.

    • Get the DSN for your integration. This is a unique identifier for your application.

    • Setup the following configuration values for edx-platform:

      EOX_CORE_SENTRY_INTEGRATION_DSN: <your DSN value>
      EOX_CORE_SENTRY_IGNORED_ERRORS: [] # optional
      EOX_CORE_SENTRY_EXTRA_OPTIONS: {} # optional
      • EOX_CORE_SENTRY_INTEGRATION_DSN: By default the setting is None, which disables the sentry integration.

      • EOX_CORE_SENTRY_IGNORED_ERRORS: List of the exceptions you want to ignore (see below for a reference).

      • EOX_CORE_SENTRY_EXTRA_OPTIONS Dictionary with extra options to be passed to the sentry client. For instance, it can be defined as:

      EOX_CORE_SENTRY_IGNORED_ERRORS: [
        'xmodule.exceptions.NotFoundError',
        'openedx.core.djangoapps.user_authn.exceptions.AuthFailedError',
      ]
      EOX_CORE_SENTRY_EXTRA_OPTIONS:
          experiments:
             profiles_sample_rate: 0.5
          another_client_parameter: 'value'

Auditing Django views

Most views in eox-core use an auditing decorator, defined in our custom library, eox-audit-model, that helps save relevant information about non-idempotent operations. By default, this functionality is turned on. To check your auditing records go to Django sysadmin and find DJANGO EDUNEXT AUDIT MODEL.

You can check the eox-audit-model documentation for more information.

Development

You can find more information about testing in the Help for devs doc.

How to Contribute

Contributions are welcome! See our CONTRIBUTING file for more information – it also contains guidelines for how to maintain high code quality, which will make your contribution more likely to be accepted.

License

This software is licensed under the terms of the AGPLv3. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eox_core-11.0.0.tar.gz (107.0 kB view details)

Uploaded Source

Built Distribution

eox_core-11.0.0-py3-none-any.whl (151.0 kB view details)

Uploaded Python 3

File details

Details for the file eox_core-11.0.0.tar.gz.

File metadata

  • Download URL: eox_core-11.0.0.tar.gz
  • Upload date:
  • Size: 107.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for eox_core-11.0.0.tar.gz
Algorithm Hash digest
SHA256 be11e93977a76c749ad10336b7cb5329c9f6316e2b75dc29f71a26ebeec3d960
MD5 3a39a2ade407656adb3c6d02a63adb97
BLAKE2b-256 a230e5d6d279b1f51f7ab00fa9c28cc9bde216dd95389a8b9a69a2aaaf494573

See more details on using hashes here.

File details

Details for the file eox_core-11.0.0-py3-none-any.whl.

File metadata

  • Download URL: eox_core-11.0.0-py3-none-any.whl
  • Upload date:
  • Size: 151.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for eox_core-11.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db6fd9d5828f20cda446f604ea66d3e73641acd5049d8f20e0a53ec3749d0748
MD5 f07040b222cbd483573d785c10a10250
BLAKE2b-256 9c3521e88563924fa98f9165a687e8b65c629eb48a7a7a872610a063130ea24c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page