Skip to content

Commit a73845b

Browse files
authored
feat(superset): add Year of Enrollment Created On filter to Enrollment Detail by Learner (#2450)
Adds a year_of_courserunenrollment_created_on calculated column to the enrollment_detail_report dataset (same substring-based approach as the Orders dashboard's year_of_order_created_date) and a matching native filter on the Enrollment Detail by Learner dashboard, scoped like the existing Platform filter. Verified on QA via ol-superset sync.
1 parent 4df9daa commit a73845b

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

src/ol_superset/assets/dashboards/Enrollment_Detail_by_Learner_da9e03d3-e1bb-45b8-981f-208deca90e7a.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,41 @@ metadata:
285285
name: organization_name
286286
datasetUuid: 01f179b6-cb75-465f-8ceb-0525c24fa223
287287
type: NATIVE_FILTER
288+
- cascadeParentIds: []
289+
chartsInScope:
290+
- 64
291+
- 67
292+
- 70
293+
- 108
294+
controlValues:
295+
defaultToFirstItem: false
296+
enableEmptyFilter: false
297+
inverseSelection: false
298+
multiSelect: true
299+
searchAllOptions: true
300+
sortAscending: false
301+
defaultDataMask:
302+
extraFormData: {}
303+
filterState: {}
304+
ownState: {}
305+
description: ''
306+
filterType: filter_select
307+
id: NATIVE_FILTER-9xQ2vLmZpK4RtY7Wc3Jsd
308+
name: Year Of Enrollment Created On
309+
scope:
310+
excluded: []
311+
rootPath:
312+
- ROOT_ID
313+
tabsInScope:
314+
- TAB-t1-4mh38qE
315+
- TAB-pWPKo4rBS
316+
- TAB-Eyu1xfak5
317+
- TAB-tFB9eF2Ur
318+
targets:
319+
- column:
320+
name: year_of_courserunenrollment_created_on
321+
datasetUuid: 01f179b6-cb75-465f-8ceb-0525c24fa223
322+
type: NATIVE_FILTER
288323
refresh_frequency: 86400
289324
shared_label_colors: []
290325
timed_refresh_immune_slices: []

src/ol_superset/assets/datasets/Trino/enrollment_detail_report_01f179b6-cb75-465f-8ceb-0525c24fa223.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ columns:
106106
python_date_format: null
107107
type: VARCHAR
108108
verbose_name: null
109+
- advanced_data_type: null
110+
column_name: year_of_courserunenrollment_created_on
111+
description: null
112+
expression: substring(courserunenrollment_created_on, 1, 4)
113+
extra: {}
114+
filterable: true
115+
groupby: true
116+
is_active: true
117+
is_dttm: false
118+
python_date_format: null
119+
type: null
120+
verbose_name: null
109121
- advanced_data_type: null
110122
column_name: receipt_payment_method
111123
datetime_format: null

0 commit comments

Comments
 (0)