demarches-normaliennes/app
Pierre de La Morinerie ef009f73e2 javascript: report upload FileReader errors to Sentry
We have quite a lot of `Error reading file` errors when uploading files.
These errors are generated by ActiveStorage `file_checksum.js` component
but it eats the actual reason of errors.

(See https://github.com/rails/rails/blob/5-2-stable/activestorage/app/javascript/activestorage/file_checksum.js#L38)

We can't really override the class to generate better errors, as they
are deeply nested in ActiveStorage class hierarchy, and not exported to
external code.

Instead, we hook into the FileReader event handler, to insert a logger
when this error occur. The original event handler will also still be
called as usual.

This is intended to be temporary. The debug code will be removed once
we get a better idea of what is going on.
2020-04-22 11:26:16 +02:00
..
assets Bring back font-awesome-rails 2020-04-15 17:41:05 +02:00
controllers Carte Editor sends FeatureCollection to the server 2020-04-16 18:29:19 +02:00
dashboards Remove non-existant columns from manager dashboards 2020-03-26 16:17:07 +01:00
fields manager: remove support for old pj 2019-07-30 16:11:17 +02:00
graphql add effectif mensuel to graphql api 2020-04-21 21:13:07 +02:00
helpers rename effectif columns 2020-04-21 21:13:07 +02:00
javascript javascript: report upload FileReader errors to Sentry 2020-04-22 11:26:16 +02:00
jobs Enable deletion of expired dossiers en_construction 2020-04-21 10:41:54 +02:00
lib rename effectif columns 2020-04-21 21:13:07 +02:00
mailers Notifie tous les instructeurs lors dépôt dossier 2020-04-09 14:33:56 +02:00
models add effectif mensuel to graphql api 2020-04-21 21:13:07 +02:00
policies policies: fix champ policy for guest users 2020-04-02 11:27:14 +02:00
serializers add effectif mensuel to graphql api 2020-04-21 21:13:07 +02:00
services fetch and show effectif mensuel 2020-04-21 14:22:11 +02:00
validators gestion des 2 formats de bouton monavis 2019-09-17 13:39:45 +02:00
views add effectif mensuel to graphql api 2020-04-21 21:13:07 +02:00