chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Refactor remaining AJAX requests & error handling

Open jaredscheib opened this issue 9 years ago • 1 comments

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 publishNotifications out of actions and pass message to errorThrown() action
  • [ ] refactor AJAX requests called directly from components to use action creators & redux
  • [ ] refactor AJAX that follows Promise pattern to async/await and catch and handle errors

jaredscheib avatar Apr 15 '17 00:04 jaredscheib

Dupe of #1539

nhaugo avatar Sep 05 '17 17:09 nhaugo