uranusjr commented on code in PR #37826:
URL: https://github.com/apache/airflow/pull/37826#discussion_r1516602867
##########
tests/api_connexion/endpoints/test_dag_endpoint.py:
##########
@@ -144,6 +144,36 @@ def _create_dag_model_for_details_endpoint(self, dag_id,
session=None):
)
session.add(dag_model)
+ @provide_session
+ def _create_dag_model_for_details_endpoint_with_dataset_expression(self,
dag_id, session=None):
+ dag_model = DagModel(
+ dag_id=dag_id,
+ fileloc="/tmp/dag.py",
+ schedule_interval="2 2 * * *",
+ is_active=True,
+ is_paused=False,
+ dataset_expression={
+ "__type": "dataset_any",
Review Comment:
I wonder if we should clean this up. The REST API is public (not just
communication between backend and frontend) so we might need to better decouple
this to internals.
--
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]