From 834ea22075512a4bd0ef791c2e1961e8fc2dd938 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 20 Sep 2024 13:12:26 -0500 Subject: [PATCH] chore: rename filtered dashboard filter --- .../aspects/apps/superset/pythonpath/openedx_jinja_filters.py | 2 +- .../aspects/apps/superset/pythonpath/superset_config_docker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tutoraspects/templates/aspects/apps/superset/pythonpath/openedx_jinja_filters.py b/tutoraspects/templates/aspects/apps/superset/pythonpath/openedx_jinja_filters.py index 137c3f960..f4070c1e8 100644 --- a/tutoraspects/templates/aspects/apps/superset/pythonpath/openedx_jinja_filters.py +++ b/tutoraspects/templates/aspects/apps/superset/pythonpath/openedx_jinja_filters.py @@ -127,7 +127,7 @@ def translate_column_bool(column_name): '' ) """ -def filtered_dashboard(dashboard_slug, column_name, filter_id): +def get_filtered_dashboard_link(dashboard_slug, column_name, filter_id): """ Creates a link to a dashboard with filters preloaded given a dashboard-slug, a column_name and a filter_id """ diff --git a/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config_docker.py b/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config_docker.py index f5b37c1ac..8adcc2ddd 100644 --- a/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config_docker.py +++ b/tutoraspects/templates/aspects/apps/superset/pythonpath/superset_config_docker.py @@ -111,7 +111,7 @@ def can_view_courses_wrapper(*args, **kwargs): 'can_view_courses': can_view_courses_wrapper, 'translate_column': translate_column, 'translate_column_bool': translate_column_bool, - 'filtered_dashboard': filtered_dashboard, + 'get_filtered_dashboard_link': get_filtered_dashboard_link, {% for filter in SUPERSET_EXTRA_JINJA_FILTERS %}'{{ filter }}': {{filter}},{% endfor %} }