pierrejeambrun commented on code in PR #68657:
URL: https://github.com/apache/airflow/pull/68657#discussion_r3466263377


##########
airflow-core/src/airflow/ui/src/pages/DagsList/DagsFilters/DagsFilters.tsx:
##########
@@ -108,10 +111,13 @@ export const DagsFilters = () => {
   };
 
   const handleStateChange = (value: StateValue) => {
-    if (value === "all") {
-      searchParams.delete(LAST_DAG_RUN_STATE_PARAM);
-    } else {
-      searchParams.set(LAST_DAG_RUN_STATE_PARAM, value);
+    searchParams.delete(LAST_DAG_RUN_STATE_PARAM);
+    searchParams.delete(DAG_RUN_STATE_PARAM);
+    if (value !== "all") {
+      searchParams.set(
+        anyRunStateValues.includes(value) ? DAG_RUN_STATE_PARAM : 
LAST_DAG_RUN_STATE_PARAM,
+        value,

Review Comment:
   Does that mean that we can't filter by `latest_run is running/queued` 
anymore?
   
   I think we should have a distinct additional filter. (any run basically, vs 
latest run)
   
   This makes things harder to understand for users, why everything here is 
operating on latest run, but some state.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to