eduNEXT / eox-core

eox-core is a plugin to extend the core functionality in Open edX
GNU Affero General Public License v3.0
15 stars 9 forks source link

======== EOX Core

|Maintainance Badge| |Test Badge| |PyPI Badge|

.. |Maintainance Badge| image:: https://img.shields.io/badge/Status-Maintained-brightgreen :alt: Maintainance Status .. |Test Badge| image:: https://img.shields.io/github/actions/workflow/status/edunext/eox-core/.github%2Fworkflows%2Ftests.yml?label=Test :alt: GitHub Actions Workflow Test Status .. |PyPI Badge| image:: https://img.shields.io/pypi/v/eox-core?label=PyPI :alt: 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

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

.. code-block:: yaml

  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.

. Save the configuration with tutor config save.

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

. Launch your platform with tutor local launch.

Note: To use all the features, you need to have the tutor-forum plugin <https://github.com/overhangio/tutor-forum> and the eox-tenant plugin <https://github.com/eduNEXT/eox-tenant>.

Features

Usage

See the How to section <https://github.com/eduNEXT/eox-core/tree/master/docs/how_to>_ 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

.. code-block:: yaml

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

.. code-block:: yaml

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:

Integrations with third-party services

The plugin offers some integrations listed below:

. 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:

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 <https://github.com/eduNEXT/eox-core/blob/master/docs/help_for_devs/0001-include-test-cases-files.rst>_.

.. _openedx plugin: https://github.com/openedx/edx-platform/tree/master/openedx/core/djangoapps/plugins .. _edx-platform: https://github.com/openedx/edx-platform/ .. _eox-tenant: https://github.com/eduNEXT/eox-tenant/ .. _eox-audit-model: https://github.com/eduNEXT/eox-audit-model/

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.

.. _CONTRIBUTING: https://github.com/eduNEXT/eox-core/blob/master/CONTRIBUTING.rst

License

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