This is an automated email from the ASF dual-hosted git repository.
shahar pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-1-test by this push:
new 52b7aeae508 [v3-1-test] Explicitly set table ordering (#60609) (#61216)
52b7aeae508 is described below
commit 52b7aeae50805a26218d2fd9972135ee38005920
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jan 29 19:14:54 2026 +0200
[v3-1-test] Explicitly set table ordering (#60609) (#61216)
(cherry picked from commit d81a4ebf5898e7ae4c0ee4efb1fa3b591547cf3d)
Co-authored-by: Brent Bovenzi <[email protected]>
---
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 6f3a261a13b..e6a91a35d61 100644
--- a/airflow-core/src/airflow/ui/src/components/DataTable/DataTable.tsx
+++ b/airflow-core/src/airflow/ui/src/components/DataTable/DataTable.tsx
@@ -124,6 +124,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 7981f12ec1b..f202f2eb377 100644
--- a/airflow-core/src/airflow/ui/src/pages/DagRuns.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/DagRuns.tsx
@@ -215,6 +215,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 ca642bdca84..dc10d1bb406 100644
--- a/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx
@@ -257,6 +257,7 @@ export const TaskInstances = () => {
},
undefined,
{
+ placeholderData: (prev) => prev,
refetchInterval: (query) =>
query.state.data?.task_instances.some((ti) =>
isStatePending(ti.state)) ? refetchInterval : false,
},