Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
handle an intermine being down #67
FlyMine's having a little hiccup right now and that reminded me: if all the http requests error (and it's not https related) we should assume that the intermine in question is down right now. An error might be something like:
"Sorry, it looks like the FlyMine server is having problems right now. You can try coming back later, or try browsing a different mine using the mine selector in the top-right corner."
make sure that it is non-dismissable ;)
@yochannah Handling now an InterMine being down, what it does is, when a user selects a mine from the dropdown, it performs first a sanity check, if the sanity check is not passed, the browser doesn't react to the change and displays an error alert - dismissable, to let the user continue working with the browser.
Small test with a fake wrong url: