This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-10-test by this push:
     new 39355b8ab1 Disable XCom list ordering by execution_date (#43680) 
(#43696)
39355b8ab1 is described below

commit 39355b8ab1a6d1f7270851ee3d14ecca2031dbad
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Tue Nov 5 23:28:16 2024 +0800

    Disable XCom list ordering by execution_date (#43680) (#43696)
    
    * Disable XCom list ordering by execution_date
    
    * Update airflow/www/views.py
    
    Co-authored-by: Kaxil Naik <[email protected]>
    
    ---------
    
    Co-authored-by: Kaxil Naik <[email protected]>
    (cherry picked from commit c96b618b60ed049658470a9696479c0df36957af)
---
 airflow/www/views.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/airflow/www/views.py b/airflow/www/views.py
index 5e8ef6bb7f..bb88da2cdf 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -4024,6 +4024,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", # execution_date sorting is not working and 
crashing the UI, disabled for now.
+    ]
+
     base_filters = [["dag_id", DagFilter, list]]
 
     formatters_columns = {

Reply via email to