Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't throw error when there are no nodes #381

Merged
merged 6 commits into from
Oct 10, 2020

Conversation

LonelyPrincess
Copy link
Collaborator

This PR updates the process of graph data validation so that including at least a node is no longer mandatory.

If the user forgets to pass at least a node (or sets an empty node array in purpose) to the Graph component, they will not get an exception. Instead, a warning message will be displayed on console just to make them aware that they haven't added any node, in case they're not aware of it.

Tests have been updated to check this new logic.

Should resolve #347.

@LonelyPrincess LonelyPrincess added enhancement improving existent functionality or performance related Hacktoberfest Hacktoberfest label priority normal hacktoberfest-accepted Label for accepted PRs for Hacktoberfest 2020 labels Oct 9, 2020
@LonelyPrincess LonelyPrincess self-assigned this Oct 9, 2020
@LonelyPrincess LonelyPrincess marked this pull request as draft October 9, 2020 13:46
@LonelyPrincess LonelyPrincess marked this pull request as ready for review October 9, 2020 13:50
Copy link
Owner

@danielcaldas danielcaldas left a comment

Choose a reason for hiding this comment

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

Awesome! @LonelyPrincess

@danielcaldas danielcaldas merged commit 46050fa into master Oct 10, 2020
@danielcaldas danielcaldas deleted the fix/warn-no-data-error branch November 17, 2020 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improving existent functionality or performance related Hacktoberfest Hacktoberfest label hacktoberfest-accepted Label for accepted PRs for Hacktoberfest 2020 priority normal
Projects
None yet
2 participants