Taragolis commented on code in PR #39211:
URL: https://github.com/apache/airflow/pull/39211#discussion_r1578979638
##########
airflow/www/views.py:
##########
@@ -3294,7 +3292,7 @@ def next_run_datasets(self, dag_id):
latest_run = dag_model.get_last_dagrun(session=session)
events = [
- dict(info)
+ dict(info._mapping)
Review Comment:
Yeah... That rare case when access to properties with leading underscore is
official/recommended way:
-
https://docs.sqlalchemy.org/en/14/core/connections.html#sqlalchemy.engine.Row._mapping
-
https://docs.sqlalchemy.org/en/20/core/connections.html#sqlalchemy.engine.Row._mapping
This one is come from the warning it self
```console
The Row.keys() method is considered legacy as of the 1.x series of
SQLAlchemy and will be removed in 2.0.
Use the namedtuple standard accessor Row._fields, or for full mapping
behavior use row._mapping.keys()
(Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
```
--
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]