Skip to content

Commit 679de95

Browse files
guan404mingpierrejeambrun
authored andcommitted
[v3-0-test] Update default sort for connections and dags (#50600)
(cherry picked from commit ae9ae04) Co-authored-by: Guan Ming(Wesley) Chiu <[email protected]> Co-authored-by: pierrejeambrun <[email protected]>
1 parent 878c6ce commit 679de95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

airflow-core/src/airflow/ui/src/pages/Connections/Connections.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const Connections = () => {
9595
useConnectionTypeMeta(); // Pre-fetch connection type metadata
9696
const { pagination, sorting } = tableURLState;
9797
const [sort] = sorting;
98-
const orderBy = sort ? `${sort.desc ? "-" : ""}${sort.id}` : "-connection_id";
98+
const orderBy = sort ? `${sort.desc ? "-" : ""}${sort.id}` : "connection_id";
9999
const { data, error, isFetching, isLoading } = useConnectionServiceGetConnections({
100100
connectionIdPattern: connectionIdPattern ?? undefined,
101101
limit: pagination.pageSize,

airflow-core/src/airflow/ui/src/pages/DagsList/DagsList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const columns: Array<ColumnDef<DAGWithLatestDagRunsResponse>> = [
7070
},
7171
},
7272
{
73-
accessorKey: "dag_id",
73+
accessorKey: "dag_display_name",
7474
cell: ({ row: { original } }) => (
7575
<Link asChild color="fg.info" fontWeight="bold">
7676
<RouterLink to={`/dags/${original.dag_id}`}>{original.dag_display_name}</RouterLink>
@@ -167,7 +167,7 @@ export const DagsList = () => {
167167
);
168168

169169
const [sort] = sorting;
170-
const orderBy = sort ? `${sort.desc ? "-" : ""}${sort.id}` : "-last_run_start_date";
170+
const orderBy = sort ? `${sort.desc ? "-" : ""}${sort.id}` : "dag_display_name";
171171

172172
const handleSearchChange = (value: string) => {
173173
if (value) {

0 commit comments

Comments
 (0)