-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update the readme information DS-1066 (#56)
* docs: update the readme information * docs: apply feedback
- Loading branch information
Showing
6 changed files
with
157 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Default Hooks Actions | ||
====================== | ||
|
||
The actions in the hooks configuration could live in any route, but some actions are already available in ``eox-hooks``, and there are: | ||
|
||
- ``post_to_webhook_url``: Send data to a webhook url specified in the hook settings. | ||
- ``trigger_enrollments_creation``: starts an async task that enrolls a user in a list of courses. | ||
- ``trigger_grades_assignment``: propagates grades to a course component. | ||
|
||
For more information, you can see the code in `actions.py <https://github.com/eduNEXT/eox-hooks/blob/v5.1.0/eox_hooks/actions.py>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
EOX_HOOKS Settings Example | ||
=========================== | ||
|
||
.. code-block:: yaml | ||
USE_EOX_HOOKS: True | ||
EOX_HOOKS_DEFINITIONS: | ||
{ | ||
"post_register": | ||
{ | ||
"action": "post_to_webhook_url", | ||
"config": | ||
{ | ||
"fields": { "recipient_email": "user.pii.email" }, | ||
"send_certificate_data": False, | ||
"url": "https://webhook.site", | ||
}, | ||
"fail_silently": False, | ||
"module": "eox_hooks.actions", | ||
}, | ||
"post_certificate_creation": { | ||
"action": "trigger_grades_assignment", | ||
"fail_silently": True, | ||
"module": "eox_hooks.actions" | ||
}, | ||
"post_enrollment": { | ||
"action": "trigger_enrollments_creation", | ||
"fail_silently": False, | ||
"module": "eox_hooks.actions" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Trigger Events | ||
=============== | ||
|
||
These are the events that eox_hooks listens to in order to trigger actions. | ||
|
||
- ``post_register`` | ||
- ``post_session_login`` | ||
- ``post_certificate_creation`` | ||
- ``post_enrollment`` | ||
- ``post_unenrollment`` | ||
- ``post_enrollment_change`` | ||
- ``post_certificate_change`` | ||
- ``post_certificate_revoke`` | ||
- ``post_cohort_change`` | ||
- ``persistent_grade_summary_changed`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters