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

Support phylogenies and phyloreferences that cannot be parsed #308

Merged
merged 8 commits into from
Mar 17, 2024

Conversation

gaurav
Copy link
Member

@gaurav gaurav commented Sep 27, 2023

Phylogenies and phyloreferences can throw exceptions when you attempt to load them or convert them into JSON-LD/n-Quads, which we've previously ignored. This PR adds try {} catch {} blocks around such invocations so that we can produce an error instead of having the entire Vue app crash. It also adds the download filename to the Advanced Modal dialog download button for completeness.

Also includes a minor fix to the formatting of a few lines.

Closes #187.

Also checks for unbalanced single or double quotes in the Newick file as illustrated in this screenshot:

Screenshot 2024-02-27 at 11 03 30 PM

Closes #196.

@gaurav gaurav marked this pull request as ready for review February 14, 2024 03:55
@gaurav gaurav requested a review from hlapp February 14, 2024 03:55
Copy link
Member

@hlapp hlapp left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@gaurav gaurav merged commit fc42bba into master Mar 17, 2024
@gaurav gaurav deleted the support-invalid-phylogenies branch March 17, 2024 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants