Skip to content

Commit

Permalink
feat: inject superset dashboards settings in LMS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Oct 13, 2023
1 parent 453dfaa commit 6cb733b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tutoraspects/patches/openedx-common-settings
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# Configuration needed for openedx-event-sink-clickhouse
EVENT_SINK_CLICKHOUSE_BACKEND_CONFIG = {
"url": "{% if CLICKHOUSE_SECURE_CONNECTION %}https{% else %}http{% endif %}://{{ CLICKHOUSE_HOST }}:{{ CLICKHOUSE_INTERNAL_HTTP_PORT }}",
"username": "{{ ASPECTS_CLICKHOUSE_CMS_USER }}",
"password": "{{ ASPECTS_CLICKHOUSE_CMS_PASSWORD }}",
"database": "{{ ASPECTS_EVENT_SINK_DATABASE }}",
"timeout_secs": {{ ASPECTS_EVENT_SINK_CLICKHOUSE_TIMEOUT_SECS }}
"url": "{% if CLICKHOUSE_SECURE_CONNECTION %}https{% else %}http{% endif %}://{{ CLICKHOUSE_HOST }}:{{ CLICKHOUSE_INTERNAL_HTTP_PORT }}",
"username": "{{ ASPECTS_CLICKHOUSE_CMS_USER }}",
"password": "{{ ASPECTS_CLICKHOUSE_CMS_PASSWORD }}",
"database": "{{ ASPECTS_EVENT_SINK_DATABASE }}",
"timeout_secs": {{ ASPECTS_EVENT_SINK_CLICKHOUSE_TIMEOUT_SECS }}
}
SUPERSET_DASHBOARDS = {
{% for dashboard, body in SUPERSET_DASHBOARDS.items() %}"{{ dashboard }}": {
"uuid": "{{ body.uuid }}",
"slug": "{{ body.slug }}",
"title": "{{ body.title }}",
},{% endfor %}
}

0 comments on commit 6cb733b

Please sign in to comment.