From 799210806efec041609c40fea1cfb5775d7d56b5 Mon Sep 17 00:00:00 2001 From: Sara Burns Date: Wed, 2 Oct 2024 13:40:42 -0400 Subject: [PATCH] fix: reset assets --- .../pythonpath/aspects_asset_list.yaml | 5 +-- .../apps/superset/pythonpath/create_assets.py | 10 +++--- .../charts/Enrollment_Counts_8230a3.yaml | 1 + .../charts/Learner_Performance_b0e170.yaml | 2 +- .../charts/Video_Engagement_6b7610.yaml | 1 + .../Course_Comparison_Dashboard.yaml | 31 +++++++++---------- 6 files changed, 24 insertions(+), 26 deletions(-) diff --git a/tutoraspects/templates/aspects/apps/superset/pythonpath/aspects_asset_list.yaml b/tutoraspects/templates/aspects/apps/superset/pythonpath/aspects_asset_list.yaml index 2898977fb..89d987ed3 100644 --- a/tutoraspects/templates/aspects/apps/superset/pythonpath/aspects_asset_list.yaml +++ b/tutoraspects/templates/aspects/apps/superset/pythonpath/aspects_asset_list.yaml @@ -1,11 +1,8 @@ unused_uuids: datasets: charts: - - ccdd7d98-4722-490b-a0b2-077380a7c7eb - - b73b0a5c-4861-402e-a39c-d73333a4d911 - - 4e48b8f9-e757-4263-a9d7-d18018620a24 ignored_uuids: datasets: charts: - - bb13bb31-c797-4ed3-a7f9-7825cc6dc482 # "Query performance" needed for the performance_metrics script \ No newline at end of file + - bb13bb31-c797-4ed3-a7f9-7825cc6dc482 # "Query performance" needed for the performance_metrics script diff --git a/tutoraspects/templates/aspects/apps/superset/pythonpath/create_assets.py b/tutoraspects/templates/aspects/apps/superset/pythonpath/create_assets.py index f5a334355..c5677db7d 100644 --- a/tutoraspects/templates/aspects/apps/superset/pythonpath/create_assets.py +++ b/tutoraspects/templates/aspects/apps/superset/pythonpath/create_assets.py @@ -90,11 +90,11 @@ def create_assets(): with open(path, "w") as file: yaml.dump(translated_asset_uuids, file, default_flow_style=False) - # import_assets() - # update_dashboard_roles(roles) - # update_embeddable_uuids() - # update_datasets() - # create_rls_filters() + import_assets() + update_dashboard_roles(roles) + update_embeddable_uuids() + update_datasets() + create_rls_filters() # Delete unused UUIDs from yaml list with open(os.path.join(PYTHONPATH,"aspects_asset_list.yaml"), "r", encoding="utf-8") as file: diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Enrollment_Counts_8230a3.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Enrollment_Counts_8230a3.yaml index 97ab78eb9..11e2b3e39 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Enrollment_Counts_8230a3.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Enrollment_Counts_8230a3.yaml @@ -12,6 +12,7 @@ params: operator: TEMPORAL_RANGE subject: emission_time aggregateFunction: Sum + annotation_layers: [] colOrder: key_a_to_z colSubTotals: false conditional_formatting: [] diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Learner_Performance_b0e170.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Learner_Performance_b0e170.yaml index 5b7ae82bb..4e1a5a449 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Learner_Performance_b0e170.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Learner_Performance_b0e170.yaml @@ -6,7 +6,7 @@ dataset_uuid: ffc33796-bcd4-4e8b-a4e4-ab6517b72116 description: |-
Avg % Correct on 1st Attempt
-
The average percentage of correct answers on the first attempt
+
The average percentage of correct answers on the first attempt of the learners who attempted the problem.
params: adhoc_filters: diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Video_Engagement_6b7610.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Video_Engagement_6b7610.yaml index fd1a38535..7439206ba 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Video_Engagement_6b7610.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Video_Engagement_6b7610.yaml @@ -7,6 +7,7 @@ description: null params: adhoc_filters: [] all_columns: [] + annotation_layers: [] color_pn: true column_config: rewatched_percent: diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/dashboards/Course_Comparison_Dashboard.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/dashboards/Course_Comparison_Dashboard.yaml index 416f79c07..58db2f661 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/dashboards/Course_Comparison_Dashboard.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/dashboards/Course_Comparison_Dashboard.yaml @@ -171,12 +171,11 @@ metadata: - '#9EE5E5' - '#D1C6BC' cross_filters_enabled: true - default_filters: '{}' expanded_slices: - '1504': true - '1505': true - '1506': true - '1507': true + '1287': true + '1294': true + '1301': true + '1303': true global_chart_configuration: chartsInScope: - 1467 @@ -350,7 +349,7 @@ position: children: [] id: CHART-explore-1467-1 meta: - chartId: 1467 + chartId: 1282 height: 50 sliceName: Video Engagement uuid: 5b00f792-233c-4ee6-9411-7df49f4b5061 @@ -365,7 +364,7 @@ position: children: [] id: CHART-explore-1500-1 meta: - chartId: 1500 + chartId: 1298 height: 50 sliceName: Course Info uuid: b2fff8a7-3ace-4075-9a3f-5fa5b99f81bb @@ -380,7 +379,7 @@ position: children: [] id: CHART-explore-1501-1 meta: - chartId: 1501 + chartId: 1286 height: 50 sliceName: Course Info uuid: ccdd7d98-4722-490b-a0b2-077380a7c7eb @@ -395,7 +394,7 @@ position: children: [] id: CHART-explore-1502-1 meta: - chartId: 1502 + chartId: 1295 height: 50 sliceName: Enrollment Counts uuid: 7eaf5bc2-0067-424b-a50b-607cf54c086a @@ -410,7 +409,7 @@ position: children: [] id: CHART-explore-1503-1 meta: - chartId: 1503 + chartId: 1290 height: 50 sliceName: Enrollment Counts uuid: 8230a366-957d-4667-a2ff-3cbcb2f25f60 @@ -425,7 +424,7 @@ position: children: [] id: CHART-explore-1504-1 meta: - chartId: 1504 + chartId: 1294 height: 50 sliceName: Learner Performance Breakdown uuid: b73b0a5c-4861-402e-a39c-d73333a4d911 @@ -440,7 +439,7 @@ position: children: [] id: CHART-explore-1505-1 meta: - chartId: 1505 + chartId: 1301 height: 50 sliceName: Learner Performance Breakdown uuid: d414b144-467b-456b-b899-9cfb3579faba @@ -455,7 +454,7 @@ position: children: [] id: CHART-explore-1506-1 meta: - chartId: 1506 + chartId: 1287 height: 50 sliceName: Learner Performance uuid: b518f341-9ed4-4c23-bb88-6c1d497aa260 @@ -470,7 +469,7 @@ position: children: [] id: CHART-explore-1507-1 meta: - chartId: 1507 + chartId: 1303 height: 50 sliceName: Learner Performance uuid: b0e170ce-26f1-4452-a3c0-49b41fa6e529 @@ -485,7 +484,7 @@ position: children: [] id: CHART-explore-1508-1 meta: - chartId: 1508 + chartId: 1302 height: 50 sliceName: Video Engagement uuid: 6b7610a7-41d0-4d14-be81-62a5a8f22d62 @@ -669,4 +668,4 @@ position: published: true slug: course-comparison uuid: c6c7062d-dd90-4292-b9cf-84f7b9f38e73 -version: 1.0.0 +version: 1.0.0 \ No newline at end of file