Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sql): coursewide attempts grouped by problem_id #952

Merged
merged 10 commits into from
Sep 30, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ certified_by: null
dataset_uuid: 92eadc61-2931-577e-95b7-34adb1a8f515
description: null
params:
adhoc_filters: []
adhoc_filters:
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: last_visited
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: enrolled_at
annotation_layers: []
color_scheme: supersetColors
comparison_type: values
Expand Down Expand Up @@ -41,24 +51,19 @@ params:
optionName: metric_z7m68c6u4i_vpbb6m45cl
sqlExpression: null
only_total: true
order_desc: true
orientation: vertical
rich_tooltip: true
row_limit: 10000
show_empty_columns: true
show_legend: true
sort_series_type: sum
time_grain_sqla: P1D
time_grain_sqla: P1M
tooltipTimeFormat: smart_date
truncateXAxis: true
truncate_metric: true
viz_type: echarts_timeseries_bar
xAxisLabelRotation: 45
x_axis: enrolled_at
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
x_axis_time_format: '%Y-%m-%d'
x_axis_time_format: smart_date
x_axis_title_margin: 15
y_axis_bounds:
- null
Expand All @@ -68,17 +73,27 @@ params:
y_axis_title_position: Left
query_context:
datasource:
id: 94
id: 254
type: table
force: false
form_data:
adhoc_filters: []
adhoc_filters:
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: last_visited
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: enrolled_at
annotation_layers: []
color_scheme: supersetColors
comparison_type: values
dashboards:
- 30
datasource: 94__table
- 315
datasource: 254__table
extra_form_data: {}
force: false
forecastInterval: 0.8
Expand Down Expand Up @@ -112,27 +127,22 @@ query_context:
optionName: metric_z7m68c6u4i_vpbb6m45cl
sqlExpression: null
only_total: true
order_desc: true
orientation: vertical
result_format: json
result_type: full
rich_tooltip: true
row_limit: 10000
show_empty_columns: true
show_legend: true
slice_id: 165
slice_id: 713
sort_series_type: sum
time_grain_sqla: P1D
time_grain_sqla: P1M
tooltipTimeFormat: smart_date
truncateXAxis: true
truncate_metric: true
viz_type: echarts_timeseries_bar
xAxisLabelRotation: 45
x_axis: enrolled_at
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
x_axis_time_format: '%Y-%m-%d'
x_axis_time_format: smart_date
x_axis_title_margin: 15
y_axis_bounds:
- null
Expand All @@ -148,14 +158,20 @@ query_context:
expressionType: SQL
label: enrolled_at
sqlExpression: enrolled_at
timeGrain: P1D
timeGrain: P1M
custom_form_data: {}
custom_params: {}
extras:
having: ''
time_grain_sqla: P1D
time_grain_sqla: P1M
where: ''
filters: []
filters:
- col: last_visited
op: TEMPORAL_RANGE
val: No filter
- col: enrolled_at
op: TEMPORAL_RANGE
val: No filter
metrics:
- aggregate: COUNT_DISTINCT
column:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@ certified_by: null
dataset_uuid: 92eadc61-2931-577e-95b7-34adb1a8f515
description: null
params:
adhoc_filters: []
adhoc_filters:
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: last_visited
annotation_layers: []
color_scheme: supersetColors
comparison_type: values
extra_form_data: {}
forecastInterval: 0.8
forecastPeriods: 10
groupby: []
legendOrientation: top
legendType: scroll
Expand Down Expand Up @@ -37,42 +45,43 @@ params:
label: Number of Learners
optionName: metric_orthejcnotd_6ealxq45fqk
sqlExpression: null
only_total: true
orientation: vertical
rich_tooltip: true
row_limit: 10000
show_empty_columns: true
show_legend: true
sort_series_type: sum
time_grain_sqla: P1M
tooltipTimeFormat: smart_date
truncateXAxis: true
truncate_metric: true
viz_type: echarts_timeseries_bar
xAxisLabelRotation: 45
x_axis: last_visited
x_axis_time_format: '%Y-%m-%d'
x_axis_title: Date Visited
x_axis_title_margin: 100
y_axis_bounds:
- null
- null
y_axis_format: SMART_NUMBER
y_axis_title_margin: 15
y_axis_title_position: Left
query_context:
datasource:
id: 33
id: 254
type: table
force: false
form_data:
adhoc_filters: []
adhoc_filters:
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: last_visited
annotation_layers: []
color_scheme: supersetColors
comparison_type: values
dashboards:
- 364
datasource: 33__table
- 315
datasource: 254__table
extra_form_data: {}
force: false
forecastInterval: 0.8
forecastPeriods: 10
groupby: []
legendOrientation: top
legendType: scroll
Expand Down Expand Up @@ -101,28 +110,21 @@ query_context:
label: Number of Learners
optionName: metric_orthejcnotd_6ealxq45fqk
sqlExpression: null
only_total: true
orientation: vertical
result_format: json
result_type: full
rich_tooltip: true
row_limit: 10000
show_empty_columns: true
show_legend: true
slice_id: 52
slice_id: 173
sort_series_type: sum
time_grain_sqla: P1M
tooltipTimeFormat: smart_date
truncateXAxis: true
truncate_metric: true
viz_type: echarts_timeseries_bar
xAxisLabelRotation: 45
x_axis: last_visited
x_axis_time_format: '%Y-%m-%d'
x_axis_title: Date Visited
x_axis_title_margin: 100
y_axis_bounds:
- null
- null
y_axis_format: SMART_NUMBER
y_axis_title_margin: 15
y_axis_title_position: Left
Expand All @@ -134,12 +136,17 @@ query_context:
expressionType: SQL
label: last_visited
sqlExpression: last_visited
timeGrain: P1M
custom_form_data: {}
custom_params: {}
extras:
having: ''
time_grain_sqla: P1M
where: ''
filters: []
filters:
- col: last_visited
op: TEMPORAL_RANGE
val: No filter
metrics:
- aggregate: COUNT
column:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ params:
operator: TEMPORAL_RANGE
subject: emission_time
all_columns: []
annotation_layers: []
color_pn: true
column_config:
Course Grade %:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ certification_details: null
certified_by: null
dataset_uuid: c2c391b3-3403-4f05-bc0b-3de53bd366ec
description: To view the number of views across the duration of a single video, click
the name of the video in the Video Name With Location column of the Video Engagement
table above.
the name of the video in the Video Link column in table above.
params:
adhoc_filters:
- clause: WHERE
Expand All @@ -20,33 +19,27 @@ params:
subject: started_at
annotation_layers: []
color_scheme: supersetColors
comparison_type: values
extra_form_data: {}
forecastInterval: 0.8
forecastPeriods: 10
groupby: []
legendOrientation: top
legendType: scroll
metrics:
- total_views
- repeat_views
only_total: true
order_desc: true
orientation: vertical
rich_tooltip: true
row_limit: 10000
show_empty_columns: true
show_legend: true
sort_series_type: sum
stack: Stack
time_grain_sqla: P1M
tooltipTimeFormat: smart_date
truncateXAxis: true
truncate_metric: true
viz_type: echarts_timeseries_bar
xAxisForceCategorical: true
x_axis: segment_start
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
x_axis_time_format: smart_date
Expand All @@ -62,7 +55,7 @@ params:
zoomable: true
query_context:
datasource:
id: 27
id: 483
type: table
force: false
form_data:
Expand All @@ -79,41 +72,35 @@ query_context:
subject: started_at
annotation_layers: []
color_scheme: supersetColors
comparison_type: values
dashboards:
- 17
- 18
datasource: 27__table
- 303
- 307
datasource: 483__table
extra_form_data: {}
force: false
forecastInterval: 0.8
forecastPeriods: 10
groupby: []
legendOrientation: top
legendType: scroll
metrics:
- total_views
- repeat_views
only_total: true
order_desc: true
orientation: vertical
result_format: json
result_type: full
rich_tooltip: true
row_limit: 10000
show_empty_columns: true
show_legend: true
slice_id: 9
slice_id: 193
sort_series_type: sum
stack: Stack
time_grain_sqla: P1M
tooltipTimeFormat: smart_date
truncateXAxis: true
truncate_metric: true
viz_type: echarts_timeseries_bar
xAxisForceCategorical: true
x_axis: segment_start
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
x_axis_time_format: smart_date
Expand All @@ -135,12 +122,10 @@ query_context:
expressionType: SQL
label: segment_start
sqlExpression: segment_start
timeGrain: P1M
custom_form_data: {}
custom_params: {}
extras:
having: ''
time_grain_sqla: P1M
where: ''
filters:
- col: started_at
Expand Down
Loading