ashb commented on a change in pull request #7312: [AIRFLOW-6695] Add DAG run 
configuration to UI
URL: https://github.com/apache/airflow/pull/7312#discussion_r375923329
 
 

 ##########
 File path: airflow/www/views.py
 ##########
 @@ -994,6 +1004,18 @@ def trigger(self, session=None):
             return redirect(origin)
 
         run_conf = {}
+        conf = request.values.get('conf')
+        if conf:
+            try:
+                run_conf = json.loads(conf)
+            except json.decoder.JSONDecodeError:
+                flash("Invalid JSON configuration")
 
 Review comment:
   ```suggestion
                   flash("Invalid JSON configuration", "error")
   ```

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


With regards,
Apache Git Services

Reply via email to