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.1.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.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ol_openedx_events_handler-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a17119333ddca30592df3965aab3fa1c533c8223b45f89499e5a7517850381bf
MD5 4e2eb1859ceceda302f2e27333799358
BLAKE2b-256 1d8fd10fa727d99fbd61f0f7467c0a3fddc51e48217a8247bf6744f5afdc42ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ol_openedx_events_handler-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c033790407cd534506df0d6d1755f4943766e83d435206c6fd2a8ee9c0b68e91
MD5 050870f3adac51ddba7bba8709fd68db
BLAKE2b-256 9c2329ab59c9fcc39abc8c3645a8760cf9347c44c487c6d22baa4c67a9f2e430

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