From 20b54b564fa857cdd9939069a461236e4b696546 Mon Sep 17 00:00:00 2001 From: Karthikeya1500 Date: Wed, 25 Mar 2026 00:18:44 +0530 Subject: [PATCH] Fix PoolBar links using wrong query params for task instances filtering 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 30f43f73e11c3..b5f065147b567 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 ? ( {poolContent}