Skip to content

Commit

Permalink
Merge pull request #969 from saraburns1/dashboard_updates
Browse files Browse the repository at this point in the history
feat: fix enrollment count, fix tag filter, misc updates
  • Loading branch information
saraburns1 authored Oct 22, 2024
2 parents 09b6638 + 129c165 commit 54173fe
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ unused_uuids:
- 4250c976-a9b7-43ff-b5ad-8dd00a5acef7 # Learner performance breakdown
- 9c3f7291-1bd9-4b2f-abc0-472aad3aff06 # Learner performance breakdown
- 8b0535a8-a43f-49bf-9d50-439a16bd3f74 # Video engagement
- fa249dda-78da-4ccc-9ef3-39177e6aae0c # Course Information

ignored_uuids:
datasets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ params:
operator: TEMPORAL_RANGE
subject: emission_time
all_columns: []
annotation_layers: []
color_pn: false
column_config:
active_count:
Expand All @@ -30,7 +29,8 @@ params:
groupby:
- course_name
- org
- expressionType: SQL
- datasourceWarning: false
expressionType: SQL
label: More details
sqlExpression: |-
{% raw %}{{ get_filtered_dashboard_link('course-dashboard', 'course_name', 'IfS-Rd0ZS') }}{% endraw %}
Expand All @@ -50,7 +50,7 @@ params:
viz_type: table
query_context:
datasource:
id: 651
id: 50
type: table
force: false
form_data:
Expand All @@ -75,14 +75,15 @@ query_context:
truncateLongCells: true
conditional_formatting: []
dashboards:
- 355
datasource: 651__table
- 22
datasource: 50__table
extra_form_data: {}
force: false
groupby:
- course_name
- org
- expressionType: SQL
- datasourceWarning: false
expressionType: SQL
label: More details
sqlExpression: |-
{% raw %}{{ get_filtered_dashboard_link('course-dashboard', 'course_name', 'IfS-Rd0ZS') }}{% endraw %}
Expand All @@ -98,7 +99,7 @@ query_context:
result_type: full
row_limit: 50000
show_cell_bars: false
slice_id: 1298
slice_id: 25
table_timestamp_format: smart_date
temporal_columns_lookup: {}
time_grain_sqla: P1M
Expand All @@ -109,7 +110,8 @@ query_context:
columns:
- course_name
- org
- expressionType: SQL
- datasourceWarning: false
expressionType: SQL
label: More details
sqlExpression: |-
{% raw %}{{ get_filtered_dashboard_link('course-dashboard', 'course_name', 'IfS-Rd0ZS') }}{% endraw %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ params:
viz_type: pivot_table_v2
query_context:
datasource:
id: 221
id: 50
type: table
force: false
form_data:
Expand All @@ -45,12 +45,11 @@ query_context:
operator: TEMPORAL_RANGE
subject: emission_time
aggregateFunction: Sum
annotation_layers: []
colOrder: key_a_to_z
colSubTotals: false
conditional_formatting: []
dashboards:
- 3141
datasource: 221__table
datasource: 50__table
date_format: smart_date
extra_form_data: {}
force: false
Expand All @@ -66,7 +65,7 @@ query_context:
result_type: full
rowOrder: key_a_to_z
row_limit: 10000
slice_id: 161
slice_id: 19
temporal_columns_lookup: {}
time_grain_sqla: P1D
valueFormat: SMART_NUMBER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ params:
zoomable: false
query_context:
datasource:
id: 464
id: 84
type: table
force: false
form_data:
Expand All @@ -62,9 +62,7 @@ query_context:
annotation_layers: []
color_scheme: supersetColors
contributionMode: null
dashboards:
- 3441
datasource: 464__table
datasource: 84__table
extra_form_data: {}
force: false
groupby: []
Expand All @@ -85,7 +83,7 @@ query_context:
show_empty_columns: false
show_legend: true
show_value: false
slice_id: 1504
slice_id: 75
sort_series_ascending: true
sort_series_type: name
stack: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ params:
viz_type: table
query_context:
datasource:
id: 61
id: 18
type: table
force: false
form_data:
adhoc_filters: []
all_columns:
- success
annotation_layers: []
color_pn: true
column_config:
avg_course_grade:
Expand All @@ -62,9 +63,7 @@ query_context:
med_course_grade:
d3NumberFormat: ',.1%'
conditional_formatting: []
dashboards:
- 3141
datasource: 61__table
datasource: 18__table
extra_form_data: {}
force: false
groupby:
Expand All @@ -84,7 +83,7 @@ query_context:
row_limit: 50000
server_page_length: 10
show_cell_bars: false
slice_id: 1506
slice_id: 109
table_timestamp_format: smart_date
temporal_columns_lookup: {}
time_grain_sqla: P1M
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ params:
groupby:
- course_name
- org
- video_count
metrics:
- num_videos
- watched_percent
- rewatched_percent
- avg_video_length
Expand All @@ -28,6 +28,7 @@ params:
percent_metrics: []
query_mode: aggregate
row_limit: 50000
server_page_length: 10
show_cell_bars: false
table_timestamp_format: smart_date
temporal_columns_lookup: {}
Expand All @@ -48,15 +49,15 @@ query_context:
d3NumberFormat: ',.1%'
conditional_formatting: []
dashboards:
- 441
- 741
datasource: 161__table
extra_form_data: {}
force: false
groupby:
- course_name
- org
- video_count
metrics:
- num_videos
- watched_percent
- rewatched_percent
- avg_video_length
Expand All @@ -67,6 +68,7 @@ query_context:
result_format: json
result_type: full
row_limit: 50000
server_page_length: 10
show_cell_bars: false
slice_id: 1121
table_timestamp_format: smart_date
Expand All @@ -78,20 +80,20 @@ query_context:
columns:
- course_name
- org
- video_count
custom_form_data: {}
custom_params: {}
extras:
having: ''
where: ''
filters: []
metrics:
- num_videos
- watched_percent
- rewatched_percent
- avg_video_length
order_desc: true
orderby:
- - watched_percent
- - num_videos
- false
post_processing: []
row_limit: 50000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ params:
groupby:
- course_run
- course_name
- video_count
metrics:
- num_videos
- watched_percent
- rewatched_percent
- avg_video_length
Expand All @@ -28,6 +28,7 @@ params:
percent_metrics: []
query_mode: aggregate
row_limit: 50000
server_page_length: 10
show_cell_bars: false
table_timestamp_format: smart_date
temporal_columns_lookup: {}
Expand All @@ -48,15 +49,15 @@ query_context:
d3NumberFormat: ',.1%'
conditional_formatting: []
dashboards:
- 441
- 741
datasource: 161__table
extra_form_data: {}
force: false
groupby:
- course_run
- course_name
- video_count
metrics:
- num_videos
- watched_percent
- rewatched_percent
- avg_video_length
Expand All @@ -67,6 +68,7 @@ query_context:
result_format: json
result_type: full
row_limit: 50000
server_page_length: 10
show_cell_bars: false
slice_id: 641
table_timestamp_format: smart_date
Expand All @@ -78,20 +80,20 @@ query_context:
columns:
- course_run
- course_name
- video_count
custom_form_data: {}
custom_params: {}
extras:
having: ''
where: ''
filters: []
metrics:
- num_videos
- watched_percent
- rewatched_percent
- avg_video_length
order_desc: true
orderby:
- - watched_percent
- - num_videos
- false
post_processing: []
row_limit: 50000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ metrics:
- currency: null
d3format: null
description: null
expression: uniq((active_learner,course_run))
expression: uniq(active_learner,course_run)
extra:
warning_markdown: ''
metric_name: active_count
Expand All @@ -125,7 +125,7 @@ metrics:
- currency: null
d3format: null
description: null
expression: uniq((actor_id,course_run))
expression: uniq(actor_id,course_run)
extra:
warning_markdown: ''
metric_name: enrollees
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ columns:
python_date_format: null
type: String
verbose_name: Tag
- advanced_data_type: null
column_name: course_key
description: null
expression: null
extra: {}
filterable: true
groupby: true
is_active: true
is_dttm: false
python_date_format: null
type: String
verbose_name: Course Key
database_uuid: 21174b6c-4d40-4958-8161-d6c3cf5e77b6
default_endpoint: null
description: null
Expand All @@ -50,7 +62,8 @@ metrics:
d3format: null
description: null
expression: COUNT(*)
extra: {}
extra:
warning_markdown: ''
metric_name: count
metric_type: count
verbose_name: COUNT(*)
Expand All @@ -59,7 +72,8 @@ metrics:
d3format: null
description: null
expression: min(rownum)
extra: {}
extra:
warning_markdown: ''
metric_name: order
metric_type: null
verbose_name: order
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ metrics:
metric_type: null
verbose_name: Avg Video Length (seconds)
warning_text: null
- currency: null
d3format: null
description: null
expression: avg(video_count)
extra: {}
metric_name: num_videos
metric_type: null
verbose_name: Number of Videos
warning_text: null
- currency: null
d3format: null
description: null
Expand Down
Loading

0 comments on commit 54173fe

Please sign in to comment.