guan404ming commented on code in PR #61398:
URL: https://github.com/apache/airflow/pull/61398#discussion_r2792281272


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/assets.py:
##########
@@ -36,59 +41,81 @@
 )
 def next_run_assets(
     dag_id: str,
-    dag_bag: DagBagDep,
     session: SessionDep,
 ) -> dict:
     dag_model = DagModel.get_dagmodel(dag_id, session=session)
     if dag_model is None:
-        raise HTTPException(status.HTTP_404_NOT_FOUND, f"can't find associated 
dag_model {dag_id}")
+        raise HTTPException(status.HTTP_404_NOT_FOUND, f"Dag with id {dag_id} 
was not found")
 
     latest_run = dag_model.get_last_dagrun(session=session)
+    event_filter = (
+        AssetEvent.timestamp >= latest_run.logical_date if latest_run and 
latest_run.logical_date else true()
+    )
 
-    if latest_run and latest_run.logical_date:
-        on_clause = AssetEvent.timestamp >= latest_run.logical_date
+    pending_partition_count: int | None = None
+
+    queued_expr: ColumnElement[int]
+    if is_partitioned := dag_model.timetable_summary == "Partitioned Asset":

Review Comment:
   Sure, just updated.



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