Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Integrates Superset course-based permissions filters with Clickhouse xAPI data #6

Merged
merged 8 commits into from
Mar 7, 2023
10 changes: 6 additions & 4 deletions tutorsuperset/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
("SUPERSET_OPENEDX_USERNAME_PATH", "/api/user/v1/me"),
("SUPERSET_OPENEDX_USER_PROFILE_PATH", "/api/user/v1/accounts/{username}"),
("SUPERSET_OPENEDX_COURSES_LIST_PATH", "/api/courses/v1/courses/?permissions={permission}&username={username}"),
("SUPERSET_OPENEDX_ROLE_NAME", "Open edX"),
]
)

Expand Down Expand Up @@ -144,6 +145,7 @@
volumes:
- ../../env/plugins/superset/apps/docker:/app/docker
- ../../env/plugins/superset/apps/pythonpath:/app/pythonpath
- ../../env/plugins/superset/apps/data:/app/data
- ../../env/plugins/superset/apps/superset_home:/app/superset_home
restart: unless-stopped
environment:
Expand Down Expand Up @@ -193,7 +195,7 @@
(
"local-docker-compose-services",
f"""
superset-app:
superset:
{SUPERSET_DOCKER_COMPOSE_COMMON_LOCAL}
command: ["bash", "/app/docker/docker-bootstrap.sh", "app-gunicorn"]
ports:
Expand Down Expand Up @@ -225,7 +227,7 @@
superset-job:
{SUPERSET_DOCKER_COMPOSE_COMMON_LOCAL}
depends_on:
- superset-app
- superset
"""
)
)
Expand All @@ -246,7 +248,7 @@
(
"local-docker-compose-dev-services",
f"""
superset-app:
superset:
{SUPERSET_DOCKER_COMPOSE_COMMON_DEV}
command: ["bash", "/app/docker/docker-bootstrap.sh", "app-gunicorn"]
ports:
Expand Down Expand Up @@ -278,7 +280,7 @@
superset-job:
{SUPERSET_DOCKER_COMPOSE_COMMON_DEV}
depends_on:
- superset-app
- superset
"""
)
)
Expand Down
Loading