sunank200 commented on code in PR #51880:
URL: https://github.com/apache/airflow/pull/51880#discussion_r2161590238


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/task_instances.py:
##########
@@ -194,9 +196,10 @@ def get_mapped_task_instances(
             error_message = f"Task id {task_id} is not mapped"
             raise HTTPException(status.HTTP_404_NOT_FOUND, error_message)
 
-    task_instance_select, total_entries = paginated_select(
-        statement=query,
-        filters=[
+    if state.value is not None and None in state.value:
+        filters = [state, pool, queue, executor, version_number]
+    else:
+        filters = [

Review Comment:
   @pierrejeambrun I have fixed NULL-state filtering in 
get_mapped_task_instances by coalescing date fields.



-- 
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