Skip to content

Commit 714ff68

Browse files
Karthikeya1500Suraj-kumar00
authored andcommitted
Fix PoolBar links using wrong query params for task instances filtering (apache#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.
1 parent e5e6ffc commit 714ff68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

airflow-core/src/airflow/ui/src/components/PoolBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const PoolBar = ({
106106
return slot.color !== "success" && "name" in pool ? (
107107
<Link asChild flex={flexValue} key={slot.key}>
108108
<RouterLink
109-
to={`/task_instances?${SearchParamsKeys.STATE}=${slot.color}&${SearchParamsKeys.POOL}=${pool.name}`}
109+
to={`/task_instances?${SearchParamsKeys.TASK_STATE}=${slot.slotType}&${SearchParamsKeys.POOL_NAME_PATTERN}=${pool.name}`}
110110
>
111111
{poolContent}
112112
</RouterLink>

0 commit comments

Comments
 (0)