Adaverse commented on issue #31605:
URL: https://github.com/apache/airflow/issues/31605#issuecomment-1574126455

   > `DAG` and `DagModel` are distinct entities with distinct attributes and 
purpose (even if some overlaps). Schemas suggest full inheritance for all 
attributes of `DAGModel` into `DAGDetail` but it is not completely true, and 
some of them do not exist on a `DAG` instance. Therefore I think this is why 
they are missing from serialization on the `/details`.
   > 
   > I think the idea was that a `SerializedDAG` has a lot more info than the 
`DagModel` (which just holds the DAG metadata), for instance children, 
task_group, tasks, UI colors, dag_dependencies to name a few and appeared as a 
natural base class for a ' detailed' dag view.
   > 
   > I think schemas should be fixed to at least reflect what is actually 
returned by the API. (So the doc is not misleading anymore).
   > 
   > Then if you need some additional information not yet available on the 
`/details` view, we can update it, but that would mean adding attributes to the 
`SerializedDAG` class, which is not trivial and has some implications on other 
components (scheduler, DagFileProcessor, serialization module etc...)
   
   Thanks @pierrejeambrun for the information. For now we can combining the 
APIs to get all the info. I think we can take this up later if absolutely 
required but for now I think its fine.


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