bbovenzi commented on code in PR #37826:
URL: https://github.com/apache/airflow/pull/37826#discussion_r1516707543


##########
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:
   +1 to cleaning up the returned object. What happened to a format like?
   ```
   "dataset_expression": {
       "any": [
         "s3://dag1/output_1.txt",
         {
           "all": [
             "s3://dag2/output_1.txt",
             "s3://dag3/output_3.txt"
           ]
         }
       ]
     },
     ```



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to