This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 0c2a8d548bd Fix PoolBar links using wrong query params for task
instances filtering (#64182)
0c2a8d548bd is described below
commit 0c2a8d548bd8c29653e4ce91b912562a170205fd
Author: Burra Karthikeya <[email protected]>
AuthorDate: Fri Mar 27 00:18:51 2026 +0530
Fix PoolBar links using wrong query params for task instances filtering
(#64182)
The PoolBar component links to the task instances page using
SearchParamsKeys.STATE ('state') and SearchParamsKeys.POOL ('pool'),
but the TaskInstances page reads filters from SearchParamsKeys.TASK_STATE
('task_state') and SearchParamsKeys.POOL_NAME_PATTERN ('pool_name_pattern').
This mismatch causes clicking a pool slot segment (running, queued, etc.)
to navigate to the task instances page without any filters being applied,
showing all task instances instead of those filtered by the clicked state
and pool.
Fix by using the correct search parameter keys (TASK_STATE and
POOL_NAME_PATTERN) and slot.slotType instead of slot.color for the
state filter value.
---
airflow-core/src/airflow/ui/src/components/PoolBar.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow-core/src/airflow/ui/src/components/PoolBar.tsx
b/airflow-core/src/airflow/ui/src/components/PoolBar.tsx
index 30f43f73e11..b5f065147b5 100644
--- a/airflow-core/src/airflow/ui/src/components/PoolBar.tsx
+++ b/airflow-core/src/airflow/ui/src/components/PoolBar.tsx
@@ -106,7 +106,7 @@ export const PoolBar = ({
return slot.color !== "success" && "name" in pool ? (
<Link asChild flex={flexValue} key={slot.key}>
<RouterLink
-
to={`/task_instances?${SearchParamsKeys.STATE}=${slot.color}&${SearchParamsKeys.POOL}=${pool.name}`}
+
to={`/task_instances?${SearchParamsKeys.TASK_STATE}=${slot.slotType}&${SearchParamsKeys.POOL_NAME_PATTERN}=${pool.name}`}
>
{poolContent}
</RouterLink>