tutor-cairn/README.rst
2021-06-01 18:54:46 +02:00

73 lines
2.4 KiB
ReStructuredText

Tutor Vision: scalable, real-time analytics for Open edX
========================================================
TODO:
- Expose data with superset
- Expose grades and certificates
- Reproduce dashboards from https://edx.readthedocs.io/projects/edx-insights/en/latest/Overview.html
- Reproduce dashboards from https://datastudio.google.com/embed/u/0/reporting/1gd-YXUtHFzHm3qddPTO8r272kyRD-uDG/page/4f5xB
- frontend user creation:
- generate random frontend user password in "tutor vision frontend createuser"
- try out alerts
- Kubernetes compatibility
- Sweet readme
- Rename to ocean?
Installation
------------
::
tutor license install tutor-vision
Usage
-----
::
tutor plugins enable vision
tutor local quickstart
Create an admin user to access the frontend::
# You will be prompted for a new password
tutor local run vision-superset superset fab create-admin --username yourusername --email user@example.com
You can then access the frontend with the user credentials you just created. Open http(s)://vision.<YOUR_LMS_HOST> in your browser. When running locally, this will be http://vision.local.overhang.io. The admin user will automatically be granted access to the "openedx" database in Superset and will be able to query all tables.
Management
----------
Most of your users should probably not have access to all data from all courses. To restrict a given user to one or more courses or organizations, select the course IDs and/or organization IDS to which the user should have access and create a user with limited access to the datalake::
tutor local run vision-clickhouse vision createuser --course-id='course-v1:edX+DemoX+Demo_Course' --org-id='edX' yourusername
Then, create the corresponding user on the frontend::
tutor local run vision-superset vision createuser yourusername yourusername@youremail.com
Your frontend user will automatically be associated to the datalake database you created, provided they share the same name.
Development
-----------
To reload Vector configuration after changes to vector.toml, run::
tutor config save && tutor local exec vision-vector sh -c "kill -s HUP 1"
To explore the clickhouse database as root, run::
tutor local run vision-clickhouse vision client
To launch a Python shell in Superset, run::
tutor local run vision-superset superset shell
License
-------
This software is licensed under the terms of the AGPLv3.