chronograf
chronograf copied to clipboard
Refactor remaining AJAX requests & error handling
https://github.com/influxdata/chronograf/pull/1265 resolves some of this, but there are many instances of unhandled errors in the app, especially those that use Promise syntax and don't have a .catch. These are revealed in the console when auth expires and there are outstanding AJAX requests that fail.
It would be good to do the following chores:
- [ ] handle multiple error notifications and/or suppress failure notifications on auth expiration
- [ ] could include moving
publishNotificationsout of actions and pass message toerrorThrown()action
- [ ] could include moving
- [ ] refactor AJAX requests called directly from components to use action creators & redux
- [ ] refactor AJAX that follows Promise pattern to
async/awaitand catch and handle errors
Dupe of #1539