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

bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new d81a4ebf589 Explicitly set table ordering (#60609)
d81a4ebf589 is described below

commit d81a4ebf5898e7ae4c0ee4efb1fa3b591547cf3d
Author: Brent Bovenzi <[email protected]>
AuthorDate: Thu Jan 29 10:43:26 2026 -0500

    Explicitly set table ordering (#60609)
    
    * Explicitly set table ordering
    
    * Remove start_date as default
    
    * simplify comments
    
    * Simplify table sort fix
    
    * Reverse sort direction to match tests
    
    * Remove isfetching
---
 airflow-core/src/airflow/ui/src/components/DataTable/DataTable.tsx    | 2 ++
 airflow-core/src/airflow/ui/src/pages/DagRuns.tsx                     | 1 +
 airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx | 1 +
 3 files changed, 4 insertions(+)

diff --git a/airflow-core/src/airflow/ui/src/components/DataTable/DataTable.tsx 
b/airflow-core/src/airflow/ui/src/components/DataTable/DataTable.tsx
index 5ad64589b09..c7e2903163c 100644
--- a/airflow-core/src/airflow/ui/src/components/DataTable/DataTable.tsx
+++ b/airflow-core/src/airflow/ui/src/components/DataTable/DataTable.tsx
@@ -128,6 +128,8 @@ export const DataTable = <TData,>({
     onColumnVisibilityChange: setColumnVisibility,
     onStateChange: handleStateChange,
     rowCount: total,
+    // We need to manually set the sort toggle buttons for undefined values
+    sortDescFirst: false,
     state: { ...initialState, columnVisibility },
     ...rest,
   });
diff --git a/airflow-core/src/airflow/ui/src/pages/DagRuns.tsx 
b/airflow-core/src/airflow/ui/src/pages/DagRuns.tsx
index 608e76b08a4..e7e470b68f0 100644
--- a/airflow-core/src/airflow/ui/src/pages/DagRuns.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/DagRuns.tsx
@@ -232,6 +232,7 @@ export const DagRuns = () => {
     },
     undefined,
     {
+      placeholderData: (prev) => prev,
       refetchInterval: (query) =>
         query.state.data?.dag_runs.some((run) => isStatePending(run.state)) ? 
refetchInterval : false,
     },
diff --git 
a/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx 
b/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx
index 232ed68a14c..c63cffd54c1 100644
--- a/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx
@@ -286,6 +286,7 @@ export const TaskInstances = () => {
     },
     undefined,
     {
+      placeholderData: (prev) => prev,
       refetchInterval: (query) =>
         query.state.data?.task_instances.some((ti) => 
isStatePending(ti.state)) ? refetchInterval : false,
     },

Reply via email to