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 8b4d36cbcbf Reset table offset when DagFiltering changes (#51694)
(#51795)
8b4d36cbcbf is described below
commit 8b4d36cbcbfbf1734a4c3448380263f7e93cdac8
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Mon Jun 16 17:47:24 2025 +0200
Reset table offset when DagFiltering changes (#51694) (#51795)
(cherry picked from commit 5de7cda70478ff43c3b7fb995092900750fb7996)
---
airflow-core/src/airflow/ui/src/pages/DagsList/DagsFilters.tsx | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/airflow-core/src/airflow/ui/src/pages/DagsList/DagsFilters.tsx
b/airflow-core/src/airflow/ui/src/pages/DagsList/DagsFilters.tsx
index 591d4bad710..8e3ac9c1b0d 100644
--- a/airflow-core/src/airflow/ui/src/pages/DagsList/DagsFilters.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/DagsList/DagsFilters.tsx
@@ -40,6 +40,7 @@ import { pluralize } from "src/utils";
const {
LAST_DAG_RUN_STATE: LAST_DAG_RUN_STATE_PARAM,
+ OFFSET: OFFSET_PARAM,
PAUSED: PAUSED_PARAM,
TAGS: TAGS_PARAM,
}: SearchParamsKeysType = SearchParamsKeys;
@@ -86,6 +87,7 @@ export const DagsFilters = () => {
pagination: { ...pagination, pageIndex: 0 },
sorting,
});
+ searchParams.delete(OFFSET_PARAM);
setSearchParams(searchParams);
},
[pagination, searchParams, setSearchParams, setTableURLState, sorting],
@@ -102,6 +104,7 @@ export const DagsFilters = () => {
pagination: { ...pagination, pageIndex: 0 },
sorting,
});
+ searchParams.delete(OFFSET_PARAM);
setSearchParams(searchParams);
},
[pagination, searchParams, setSearchParams, setTableURLState, sorting],
@@ -117,6 +120,7 @@ export const DagsFilters = () => {
tags.forEach(({ value }) => {
searchParams.append(TAGS_PARAM, value);
});
+ searchParams.delete(OFFSET_PARAM);
setSearchParams(searchParams);
},
[searchParams, setSearchParams],