Skip to content

Conversation

@bbovenzi
Copy link
Contributor

Sometimes the node and edge data don't load. In that case we will show an error message to the user as opposed to just a blank screen.

Short term fix for #16610

Screen Shot 2021-06-29 at 10 04 16 AM


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

Sometimes the node and edge data don't load. In that case we will show an error message to the user as opposed to just a blank screen.
@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Jun 29, 2021
// 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 everything is up and running, then try again.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this message show up if everything is running but there are just no dags?

(I.e. if Load_examples is false but scheduler is up)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update the copy to say make sure you have dags.

$('#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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still not happy with this case when there are no DAGs -- i.e. a fresh install with out any dags, and with load_examples off -- in that case it shouldn't really show an error; it should just show nothing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Aug 16, 2021
@ashb ashb removed the stale Stale PRs per the .github/workflows/stale.yml policy file label Aug 17, 2021
@bbovenzi
Copy link
Contributor Author

Closing this since this all should be handled in a better way.

@bbovenzi bbovenzi closed this Aug 25, 2021
@bbovenzi bbovenzi deleted the dag-deps-error-msg branch February 24, 2022 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants