ashb commented on code in PR #55643:
URL: https://github.com/apache/airflow/pull/55643#discussion_r2347568703
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/assets.py:
##########
@@ -182,16 +183,28 @@ def get_assets(
subqueryload(AssetModel.scheduled_dags),
subqueryload(AssetModel.producing_tasks),
subqueryload(AssetModel.consuming_tasks),
+
subqueryload(AssetModel.watchers).joinedload(AssetWatcherModel.trigger),
)
)
assets = []
for asset, last_asset_event_id, last_asset_event_timestamp in assets_rows:
+ watchers_data = [
+ {
+ "name": watcher.name,
+ "trigger_id": watcher.trigger_id,
+ "trigger_classpath": watcher.trigger.classpath,
Review Comment:
I'm slightly nervous on general principle about exposing the class path
--
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]