From b08f9ca84ac94d5e63c4ead675bcab19e0ccd165 Mon Sep 17 00:00:00 2001 From: pierrejeambrun Date: Tue, 5 Nov 2024 09:49:49 +0100 Subject: [PATCH 1/2] Disable XCom list ordering by execution_date --- airflow/www/views.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/airflow/www/views.py b/airflow/www/views.py index e287c027a894e..276125fb96013 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -3856,6 +3856,17 @@ class XComModelView(AirflowModelView): list_columns = ["key", "value", "timestamp", "dag_id", "task_id", "run_id", "map_index", "execution_date"] base_order = ("dag_run_id", "desc") + order_columns = [ + "key", + "value", + "timestamp", + "dag_id", + "task_id", + "run_id", + "map_index", + # "execution_date", # disable to fix error before airflow 3 + ] + base_filters = [["dag_id", DagFilter, list]] formatters_columns = { From 415f0fca6416d1991eb13e26471f2852db2d38fc Mon Sep 17 00:00:00 2001 From: Pierre Jeambrun Date: Tue, 5 Nov 2024 15:10:30 +0100 Subject: [PATCH 2/2] Update airflow/www/views.py Co-authored-by: Kaxil Naik --- airflow/www/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/www/views.py b/airflow/www/views.py index 276125fb96013..2c87c32cae614 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -3864,7 +3864,7 @@ class XComModelView(AirflowModelView): "task_id", "run_id", "map_index", - # "execution_date", # disable to fix error before airflow 3 + # "execution_date", # execution_date sorting is not working and crashing the UI, disabled for now. ] base_filters = [["dag_id", DagFilter, list]]