uranusjr commented on code in PR #41390:
URL: https://github.com/apache/airflow/pull/41390#discussion_r1714826567
##########
airflow/www/views.py:
##########
@@ -844,7 +844,7 @@ def index(self):
with create_session() as session:
# read orm_dags from the db
- dags_query = select(DagModel).where(~DagModel.is_subdag,
DagModel.is_active)
+ dags_query = select(DagModel).where(DagModel.is_active)
Review Comment:
Unconditionally deleting all subDAGs is a bit too heavy-handed to me. We
could do that _if_ the migration tool allows the user to mark what DAGs to not
be removed (maybe by setting their `is_subdag` flag to False somehow?)
--
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]