Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(configuration): adds MySQL and SSO to integrate with Open edX to prototype course-based permissions #1

Closed
wants to merge 6 commits into from

Conversation

pomegranited
Copy link
Member

@pomegranited pomegranited commented Nov 10, 2022

SUMMARY

Proof of concept to test whether Superset can be configured to restrict access to data by course membership.

See openedx/wg-data#21

TESTING INSTRUCTIONS

See added README-openedx.md for full instructions.

so that Superset can access the Open edX databases in the Tutor dev
environment.
by adding the required dependencies and a set of example code and
configuration which connect to the Tutor dev environment.
and documentation on how to connect to the Open edX MySQL database.
* is_superuser/is_staff fetched directly from configured Open edX database connection
* course membership fetched from Open edX API
* jinja custom template function fetches course membership and returns
  appropriate WHERE clause to filter by course_id
(Users without groups cannot see any charts or datasets.)
In order to include the current user in the query cache key, the
`current_username` macro needs to be used in the query.

This change fixes our `can_view_courses` macro to require a username, so
that the username will be used in the cache key.
@pomegranited
Copy link
Member Author

Superseded by openedx-unsupported/tutor-contrib-superset#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant