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


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/asset_events.py:
##########
@@ -65,7 +65,7 @@ def _get_asset_events_through_sql_clauses(
                     source_task_id=event.source_task_id,
                     source_dag_id=event.source_dag_id,
                     source_run_id=event.source_run_id,
-                    source_map_index=event.source_map_index,
+                    source_map_index=event.source_map_index if 
event.source_map_index is not None else -1,

Review Comment:
   Hmm, I think we should fix AssetEventResponse’s annotation instead. This 
value *should* be None, not -1, if the event does not come from a task instance 
(but created externally such as from an asset watcher).



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