You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/01 13:19:55 UTC

[GitHub] [airflow] bbovenzi commented on a change in pull request #16711: Add error message to dag dependency view

bbovenzi commented on a change in pull request #16711:
URL: https://github.com/apache/airflow/pull/16711#discussion_r662282120



##########
File path: airflow/www/static/js/dag_dependencies.js
##########
@@ -37,6 +37,15 @@ const g = new dagreD3.graphlib.Graph()
   })
   .setDefaultEdgeLabel(() => ({ lineInterpolate: 'basis' }));
 
+// Sometimes the data doesn't load when the scheduler isn't running.
+if (!nodes.length) {
+  $('#error').show();
+  $('#error_msg').text(`
+    There was an issue loading dependencies.
+    Make sure you have dags loaded and that everything is running, then try again.

Review comment:
       I agree. I was trying to keep it simple, but that didn't work out. I'll have it check if there are any dags before showing an 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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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