Skip to content

Commit

Permalink
Merge pull request #959 from openedx/cag/non-embed
Browse files Browse the repository at this point in the history
fix(embedded): remove course-comparison dashboard from embeddables
  • Loading branch information
Cristhian Garcia authored Oct 3, 2024
2 parents 0a00530 + 2866b3e commit 88fd0ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions tutoraspects/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,15 @@
"course-dashboard": "c0e64194-33d1-4d5a-8c10-4f51530c5ee9",
"learner-groups": "8661d20c-cee6-4245-9fcc-610daea5fd24",
"individual-learner": "abae8a25-1ba4-4653-81bd-d3937a162a11",
},
),
(
"SUPERSET_DASHBOARDS",
{
"course-comparison": "c6c7062d-dd90-4292-b9cf-84f7b9f38e73",
# Leaving this out for now while query context is generated
# for operator-dashboard slices.
# "operator-dashboard": "02c0121c-40e9-4d8a-b86a-6b996a1cc6fe",
},
),
# ClickHouse xAPI settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
UUID = str(uuid.uuid4())[0:6]
RUN_ID = f"aspects-{ASPECTS_VERSION}-{UUID}"
CHART_PATH = "/app/openedx-assets/assets/charts/"
DASHBOARDS = {{SUPERSET_EMBEDDABLE_DASHBOARDS}}
DASHBOARDS.update({{SUPERSET_DASHBOARDS}})

report_format = "{i}. {dashboard} - {slice}\n" "Superset time: {superset_time} (s).\n"

Expand Down Expand Up @@ -86,7 +88,7 @@ def performance_metrics(
with patch("clickhouse_connect.common.build_client_name") as mock_build_client_name:
mock_build_client_name.return_value = RUN_ID
target_dashboards = (
[dashboard_slug] if dashboard_slug else {{SUPERSET_EMBEDDABLE_DASHBOARDS}}
[dashboard_slug] if dashboard_slug else DASHBOARDS
)

dashboards = (
Expand Down

0 comments on commit 88fd0ed

Please sign in to comment.