Skip to main content

Open edX plugin to handle Open edX signals and events for MIT OL

Project description

A generic Open edX plugin for handling Open edX signals and events for MIT Open Learning.

Purpose

This plugin serves as the centralized handler for all Open edX signals and events that MIT OL systems need to react to. Rather than creating a separate plugin for each event, all signal handlers and filters are collected here.

Currently handled events:

  • org.openedx.learning.user.course_access_role.added.v1 — When a course access role (e.g. instructor, staff) is added, notifies an external system via webhook so the user can be enrolled as an auditor in the corresponding course.

  • openedx.core.djangoapps.signals.signals.COURSE_GRADE_NOW_PASSED — When a learner earns a passing grade, notifies an external system to create a certificate.

Installation

For detailed installation instructions, please refer to the plugin installation guide.

Installation required in:

  • LMS

  • Studio (CMS)

Configuration

edx-platform configuration

  • Add the following configuration values to the config file in Open edX. For any release after Juniper, that config file is /edx/etc/lms.yml and /edx/etc/cms.yml. If you’re using private.py, add these values to lms/envs/private.py and cms/envs/private.py. These should be added to the top level.

    ENROLLMENT_WEBHOOK_URL: "https://example.com/api/openedx_webhook/enrollment/"
    ENROLLMENT_WEBHOOK_ACCESS_TOKEN: "<your-oauth-access-token>"
    CERTIFICATE_WEBHOOK_URL: "https://example.com/api/openedx_webhook/certificate/"
    CERTIFICATE_WEBHOOK_ACCESS_TOKEN: "<your-oauth-access-token>"
  • Optionally, override the roles that trigger the webhook (defaults to ["instructor", "staff"]):

    ENROLLMENT_COURSE_ACCESS_ROLES: ["instructor", "staff"]
  • For Tutor installations, these values can also be managed through a custom Tutor plugin.

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

ol_openedx_events_handler-0.2.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ol_openedx_events_handler-0.2.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file ol_openedx_events_handler-0.2.0.tar.gz.

File metadata

File hashes

Hashes for ol_openedx_events_handler-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ee062f0748419e83f6400b811079c0a573ab75814d966fc8089d7dfa08395a0c
MD5 780a4ec666cfb08ae0a793b0045e3214
BLAKE2b-256 0ae2928e493b793605eb0053812e1f5fb180a4155514997613c284a464e0ad94

See more details on using hashes here.

File details

Details for the file ol_openedx_events_handler-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ol_openedx_events_handler-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a789f55c974c7a5fd252a8310baf9ddf179cddd3c1d99e928b8a10d1dbe8e97b
MD5 d5833c43e25df67f32b2c93565dd87f3
BLAKE2b-256 dcb981a1fb7aa2ee9a251f118879074ce7615881a0f7593233e90b2d9483a1b5

See more details on using hashes here.

Supported by

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