o-nikolas commented on code in PR #55040:
URL: https://github.com/apache/airflow/pull/55040#discussion_r2308219294
##########
airflow-core/src/airflow/models/dag.py:
##########
@@ -2269,6 +2271,18 @@ def get_asset_triggered_next_run_info(self, *,
session=NEW_SESSION) -> dict[str,
# an empty dict as there's no asset info to get. This method should
thus return None.
return get_asset_triggered_next_run_info([self.dag_id],
session=session).get(self.dag_id, None)
+ @staticmethod
+ @provide_session
+ def get_team_name(dag_id: str, session=NEW_SESSION) -> str | None:
+ """Return the potential team name associated to a Dag."""
Review Comment:
Wording nit: feel free to take it or leave it!
```suggestion
"""Return the team name associated to a Dag or None if it is not
owned by a specific team."""
```
--
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]