demarches-normaliennes/app/javascript/shared
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
..
activestorage javascript: improve Sentry grouping of direct upload errors 2020-04-09 17:38:44 +02:00
polyfills Polyfill insertAdjacentElement and dataset on old browsers 2019-04-09 15:26:42 +02:00
track javascript: report upload errors to Sentry 2019-10-24 16:12:56 +02:00
carte-editor.js Revert "Revert "Update javascript dependencies and add webpack-bundle-analyzer"" 2020-02-03 14:54:25 +01:00
carte.js Revert "Revert "Update javascript dependencies and add webpack-bundle-analyzer"" 2020-02-03 14:54:25 +01:00
franceconnect.js Run load scripts after ujs responces 2019-08-13 17:03:55 +01:00
page-update-event.js Run load scripts after ujs responces 2019-08-13 17:03:55 +01:00
polyfills.js Upgrade core-js 2020-02-24 19:43:07 +01:00
polygon_area.js Refactor carto to share more code 2018-10-23 09:35:25 +02:00
rails-ujs-fix.js Upgrade javascript dependencies and add actiontext 2019-07-03 11:42:25 +02:00
remote-input.js Use @utils instead of jQuery 2018-10-10 14:55:28 +02:00
remote-poller.js javascript: ignore errors of attachments pooler 2020-04-07 12:35:54 +02:00
safari-11-file-xhr-workaround.js Fix safari bug 2018-08-31 11:58:33 +01:00
toggle-target.js piece_justificative: toggle file upload control 2019-02-19 18:02:27 +01:00
utils.js dossiers: allow auto upload of attachments 2020-03-31 13:09:44 +02:00