demarches-normaliennes/app/javascript
Pierre de La Morinerie c633cd0888 javascript: improve Sentry grouping of direct upload errors
DirectUpload returns errors as strings, including an HTTP status and a
file name (and without a stack trace).

But Sentry groups issues according to the stack trace, and maybe the
error message in last resort.

So we have an issue: as all DirectUpload errors logged by Sentry are
generated on the same line, with random-looking messages, Sentry groups
them either too or too little aggressively.

Instead of creating all the errors on the same line:

- add some `if`s statements to create them on different lines (and so
  with different stack traces),
- strip the file name from the error message.

This allows Sentry to group the errors properly, with meaningful error
messages.
2020-04-09 17:38:44 +02:00
..
components Improve the mapbox-gl support detection for older browsers 2020-04-09 11:01:20 +02:00
loaders Revert "Revert "Revert "Revert "feat/4893 - migrate the mapReader to mapbox-gl with react"""" 2020-04-09 11:01:20 +02:00
manager/fields Explicitly import jQuery 2018-08-13 15:17:13 +02:00
new_design javascript: don't allow to retry on direct upload 422 2020-04-08 15:48:23 +02:00
packs dossiers: allow auto upload of attachments 2020-03-31 13:09:44 +02:00
shared javascript: improve Sentry grouping of direct upload errors 2020-04-09 17:38:44 +02:00