OSC / ood-activejobs

[MOVED] Active Jobs provides details of scheduled jobs on an HPC cluster.
https://osc.github.io/Open-OnDemand/
MIT License
0 stars 1 forks source link

Active jobs raises error if cached default cluster doesn't exist #170

Closed ericfranz closed 5 years ago

ericfranz commented 5 years ago

The top right dropdown shows "All Clusters" or an entry for each cluster. When you select options, the value is stored in local storage with the key "jobcluster". If you open "Storage" tab in Firefox developer tools, and change jobcluster to oakley, then access https://ondemand.osc.edu/pun/sys/activejobs directly you will see an error:

screen 2018-12-20 at 10 28 08 am

This is the type of error you would see if a cluster is specified here that used to exist, but then was recently decomissioned and then does not; any user who had this set last would now see the cryptic error above.

In this case we should choose the next valid option in the dropdown and update the local storage. We should also fix the error reporting so it contains more helpful information (such as the above could have stated "There was an error getting data from the remote server for oakley." which would have been better than what it does right now.

laser505t commented 5 years ago

Fixed in c7096b9 according to @MorganRodgers. See #171.