yuqian90 commented on pull request #10153: URL: https://github.com/apache/airflow/pull/10153#issuecomment-672891521
> We should think about how will this be supported in the new rest api so one can easily rebuild the same feature in a new UI. Hi @houqp Thanks for the suggestions. I think you bring up a good point. Currently `TaskGroup` is constructed from scratch by the web server based on the `task_group_ids` fields of tasks. This is probably not a very extensible way to do this. To make this more friendly for rest api, i think we need to serialize the `TaskGroup` and pass it along with the DAG object. Serializing the TaskGroup also allows adding some additional attributes to `TaskGroup`, such as `ui_color`, `doc`, etc which can be useful when shown on the web UI. What do you think? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
