edamontology / edam-browser

Stand-alone, lightweight, and fast JavaScript browser for EDAM and other ontologies
https://edamontology.github.io/edam-browser/
MIT License
13 stars 23 forks source link

feat: Add error handling/form validation to custom version #229

Closed HagerDakroury closed 3 years ago

HagerDakroury commented 3 years ago

Checklist

Issue

related-to #226

Details

  1. Cleaned and commented loadTree code and removed redundant code

  2. Added error handling when loading a custom version corslow

  3. Added form validation (to detect wrong format) validaitonlow

HagerDakroury commented 3 years ago

There is not "Request help" option for the PR ;) I pulled the cors branch, but when loading https://github.com/edamontology/edamontology/releases/download/1.25/EDAM_1.25.owl I don't get any error message. I both Chrome and Firefox I get this error in the console. Am I missing something ? Capture d’écran de 2021-08-05 10-25-21

maybe you need to do an npm install first? (since I updated edam2json-js version in the process)

hmenager commented 3 years ago

There is not "Request help" option for the PR ;) I pulled the cors branch, but when loading https://github.com/edamontology/edamontology/releases/download/1.25/EDAM_1.25.owl I don't get any error message. I both Chrome and Firefox I get this error in the console. Am I missing something ? Capture d’écran de 2021-08-05 10-25-21

maybe you need to do an npm install first? (since I updated edam2json-js version in the process)

It worked for me when testing, but I indeed first ran npm install.