From a3da2d555a1c22c36abeee52f2f4a6cc468453a4 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 20 Sep 2024 14:08:10 -0500 Subject: [PATCH] fix: add missing query context for last_visit dataset --- .../assets/charts/Last_Visit_Date_6c2b10.yaml | 160 +++++++++++++++++- 1 file changed, 151 insertions(+), 9 deletions(-) diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Last_Visit_Date_6c2b10.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Last_Visit_Date_6c2b10.yaml index ca0d2f603..53d04bf83 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Last_Visit_Date_6c2b10.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/charts/Last_Visit_Date_6c2b10.yaml @@ -8,10 +8,7 @@ params: adhoc_filters: [] annotation_layers: [] color_scheme: supersetColors - comparison_type: values extra_form_data: {} - forecastInterval: 0.8 - forecastPeriods: 10 groupby: [] legendOrientation: top legendType: scroll @@ -41,23 +38,18 @@ params: optionName: metric_orthejcnotd_6ealxq45fqk 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 tooltipTimeFormat: smart_date truncateXAxis: true truncate_metric: true viz_type: echarts_timeseries_bar xAxisLabelRotation: 45 x_axis: last_visited - 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_title: Date Visited x_axis_title_margin: 100 @@ -67,7 +59,157 @@ params: y_axis_format: SMART_NUMBER y_axis_title_margin: 15 y_axis_title_position: Left -query_context: null +query_context: + datasource: + id: 33 + type: table + force: false + form_data: + adhoc_filters: [] + annotation_layers: [] + color_scheme: supersetColors + dashboards: + - 364 + datasource: 33__table + extra_form_data: {} + force: false + groupby: [] + legendOrientation: top + legendType: scroll + metrics: + - aggregate: COUNT + column: + advanced_data_type: null + certification_details: null + certified_by: null + column_name: actor_id + description: null + expression: null + filterable: true + groupby: true + id: 13538 + is_certified: false + is_dttm: false + python_date_format: null + type: String + type_generic: 1 + verbose_name: Actor ID + warning_markdown: null + datasourceWarning: false + expressionType: SIMPLE + hasCustomLabel: true + 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 + sort_series_type: sum + 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 + queries: + - annotation_layers: [] + applied_time_extras: {} + columns: + - columnType: BASE_AXIS + expressionType: SQL + label: last_visited + sqlExpression: last_visited + custom_form_data: {} + custom_params: {} + extras: + having: '' + where: '' + filters: [] + metrics: + - aggregate: COUNT + column: + advanced_data_type: null + certification_details: null + certified_by: null + column_name: actor_id + description: null + expression: null + filterable: true + groupby: true + id: 13538 + is_certified: false + is_dttm: false + python_date_format: null + type: String + type_generic: 1 + verbose_name: Actor ID + warning_markdown: null + datasourceWarning: false + expressionType: SIMPLE + hasCustomLabel: true + label: Number of Learners + optionName: metric_orthejcnotd_6ealxq45fqk + sqlExpression: null + order_desc: true + orderby: + - - aggregate: COUNT + column: + advanced_data_type: null + certification_details: null + certified_by: null + column_name: actor_id + description: null + expression: null + filterable: true + groupby: true + id: 13538 + is_certified: false + is_dttm: false + python_date_format: null + type: String + type_generic: 1 + verbose_name: Actor ID + warning_markdown: null + datasourceWarning: false + expressionType: SIMPLE + hasCustomLabel: true + label: Number of Learners + optionName: metric_orthejcnotd_6ealxq45fqk + sqlExpression: null + - false + post_processing: + - operation: pivot + options: + aggregates: + Number of Learners: + operator: mean + columns: [] + drop_missing_columns: false + index: + - last_visited + - operation: flatten + row_limit: 10000 + series_columns: [] + series_limit: 0 + time_offsets: [] + url_params: {} + result_format: json + result_type: full slice_name: Last Visit Date uuid: 6c2b1008-96c9-426d-b2fe-68aa1de7b10d version: 1.0.0