griffithlab / civic-v2

CIViC is an open access, open source, community-driven web resource for Clinical Interpretation of Variants in Cancer
https://civicdb.org
MIT License
20 stars 5 forks source link

integrate network error alert service into more API calls #456

Open jmcmichael opened 2 years ago

jmcmichael commented 2 years ago

Currently our forms use the NetworkErrorService to display any errors resulting from an API call. Many of our API calls outside the forms do not, so when API calls to render pages fail, it's not clear to the user what happened (e.g. #455). The NetworkErrorService displays a prominent banner and can also display server error details to help reporting & fixing bugs.

susannasiebert commented 2 years ago

This should also include errors where the request to the api succeeds (200) but the return JSON includes an errors entry.