uranusjr commented on code in PR #31772:
URL: https://github.com/apache/airflow/pull/31772#discussion_r1222617024


##########
airflow/api_connexion/endpoints/task_instance_endpoint.py:
##########
@@ -255,7 +251,8 @@ def get_mapped_task_instances(
     else:
         query = query.order_by(TI.map_index.asc())
 
-    task_instances = query.offset(offset).limit(limit).all()
+    task_instances = session.execute(query.offset(offset).limit(limit)).all()

Review Comment:
   Looks like the `total_entries` line isn’t working as expected, values that 
should be excluded by filters applied above are still counted. The actual 
result `response.json["task_instances"]` is correct, only the `total_count` 
number is wrong. I’ll try digging deeper…



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