This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new 8e496d86e13 [v3-0-test] Update default sort for connections and dags
(#50600) (#50652)
8e496d86e13 is described below
commit 8e496d86e13e6aa659b68f9ce7ae5dfc756eb87a
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu May 15 16:16:55 2025 +0200
[v3-0-test] Update default sort for connections and dags (#50600) (#50652)
(cherry picked from commit ae9ae04295bd502fac8c8eb0446a288f0d7a50d1)
Co-authored-by: Guan Ming(Wesley) Chiu
<[email protected]>
Co-authored-by: pierrejeambrun <[email protected]>
---
airflow-core/src/airflow/ui/src/pages/Connections/Connections.tsx | 2 +-
airflow-core/src/airflow/ui/src/pages/DagsList/DagsList.tsx | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/airflow-core/src/airflow/ui/src/pages/Connections/Connections.tsx
b/airflow-core/src/airflow/ui/src/pages/Connections/Connections.tsx
index 17c3bae337b..43efe1c9523 100644
--- a/airflow-core/src/airflow/ui/src/pages/Connections/Connections.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Connections/Connections.tsx
@@ -95,7 +95,7 @@ export const Connections = () => {
useConnectionTypeMeta(); // Pre-fetch connection type metadata
const { pagination, sorting } = tableURLState;
const [sort] = sorting;
- const orderBy = sort ? `${sort.desc ? "-" : ""}${sort.id}` :
"-connection_id";
+ const orderBy = sort ? `${sort.desc ? "-" : ""}${sort.id}` : "connection_id";
const { data, error, isFetching, isLoading } =
useConnectionServiceGetConnections({
connectionIdPattern: connectionIdPattern ?? undefined,
limit: pagination.pageSize,
diff --git a/airflow-core/src/airflow/ui/src/pages/DagsList/DagsList.tsx
b/airflow-core/src/airflow/ui/src/pages/DagsList/DagsList.tsx
index 0a176661291..934c0255980 100644
--- a/airflow-core/src/airflow/ui/src/pages/DagsList/DagsList.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/DagsList/DagsList.tsx
@@ -70,7 +70,7 @@ const columns: Array<ColumnDef<DAGWithLatestDagRunsResponse>>
= [
},
},
{
- accessorKey: "dag_id",
+ accessorKey: "dag_display_name",
cell: ({ row: { original } }) => (
<Link asChild color="fg.info" fontWeight="bold">
<RouterLink
to={`/dags/${original.dag_id}`}>{original.dag_display_name}</RouterLink>
@@ -167,7 +167,7 @@ export const DagsList = () => {
);
const [sort] = sorting;
- const orderBy = sort ? `${sort.desc ? "-" : ""}${sort.id}` :
"-last_run_start_date";
+ const orderBy = sort ? `${sort.desc ? "-" : ""}${sort.id}` :
"dag_display_name";
const handleSearchChange = (value: string) => {
if (value) {