Open jonboiser opened 5 years ago
do these situations need design and/or user-facing strings?
Some of these don't require any new UI, like deleting something that's already deleted. (e.g. if you deleted an already-deleted faciltiyuser, dont show an error, remove the facilityuser from the table, the app user doesn't need to see anything).
We don't handle going to links for non-existent things (e.g. visiting a class homepage for deleted class), so that will require new design and strings.
I've asked @MisRob if she can look for more overlooked edge cases to complete the list in the OP, and then maybe we can handle the different categories in more depth, design-wise.
Unhandled 404 errors are also flooding Sentry with spurious errors
another instance: https://github.com/learningequality/kolibri/issues/5801
Observed behavior
Here are some places where we could replace the catch-all 'AppError' (appears with 'handleApiError' dispatches) with in-UI error messages (or no error at all).
These errors fall into several broad categories:
In general, look where
handleApiError
is used and ask whether this can be replaced with no error, or an error placed within the current UI.Expected behavior
In the edge cases described above, errors are handled as prescribed.
User-facing consequences
…
Errors and logs
…
Steps to reproduce
…
Context
…