Commit graph

10058 commits

Author SHA1 Message Date
clemkeirua
c93d17bcaa add rake task to update typedechamp 2020-07-15 09:00:12 +00:00
clemkeirua
bdbe57debd add skip_pj_validation accessor to TypeDeChamp 2020-07-15 09:00:12 +00:00
Pierre de La Morinerie
45d6ba6b69
Merge pull request #5372 from betagouv/ignore-invalid-emails
Mailers : d'autres d'erreurs SMTP sont maintenant ignorées
2020-07-13 16:25:57 +02:00
Pierre de La Morinerie
e34f82a6fb mailers: ignore more SMTP errors
Although we already ignore "invalid recipient" errors, a new type
of error recently popped: the mail service responds with
> Net::SMTPServerBusy '400 unexpected recipients: want atleast 1, got 0'

We want to also ignore this kind of errors.
2020-07-13 16:17:55 +02:00
Pierre de La Morinerie
640778641e
Merge pull request #5371 from betagouv/ignore-virus-scan-jobs-missing-files
Les jobs d'analyse anti-virus ne sont plus relancés si le fichier cible n'existe plus
2020-07-13 16:12:46 +02:00
Pierre de La Morinerie
7a67f1a802 jobs: ignore missing blob during virus scan
We currently have many failed VirusScannerJob enqueued, because the
underlying blob is missing.

This PR fixes the issue by discarding the job in those cases (because if
the blob is gone, the job is never going to succeed).

The implementation is based on a similar issue encoutered by the
ActiveStorage::AnalyzeJob. See 06f8baf73c
2020-07-13 14:35:41 +02:00
Pierre de La Morinerie
b82c269cef specs: test de-serialization of job arguments
When the job is invoked directly, the serialization and de-serialization
of the job arguments is not actually tested.

Using `perform_later` inside a `perform_enqueued_jobs` allows to
exercise the serialization.
2020-07-13 14:31:28 +02:00
Pierre de La Morinerie
a0df6e0ebb
Merge pull request #5369 from betagouv/revert-5339-feat/5287
Administrateur : retour à l'ancien design de la page des détails d'une démarche (le nouveau design fonctionne mal sous Internet Explorer 11, mais va rapidement être amélioré)
2020-07-13 14:27:20 +02:00
kara Diaby
ba6b89743c put pending testsz 2020-07-13 12:24:48 +02:00
Kara Diaby
cf5eb3f251
Revert "Feat/5287 - New design for admin procedure detail" 2020-07-13 11:36:42 +02:00
Paul Chavard
cc7e6853e7 Disable usual_traitement_time 2020-07-12 12:32:28 +02:00
Paul Chavard
d51bb022e7
Merge pull request #5365 from tchak/downgrade-rack
Revert "build(deps): bump puma from 4.3.3 to 4.3.5"
2020-07-12 11:47:06 +02:00
Paul Chavard
73fcdf1c8b Revert "build(deps): bump puma from 4.3.3 to 4.3.5"
This reverts commit a02a67cf8b.
2020-07-12 11:44:13 +02:00
Paul Chavard
815313c2a6
Merge pull request #5362 from tchak/downgrade-rack
Revert "build(deps): bump rack from 2.0.9 to 2.2.3"
2020-07-12 11:29:01 +02:00
Paul Chavard
4969377024 Revert "build(deps): bump rack from 2.0.9 to 2.2.3"
This reverts commit 2abc8a0d28.
2020-07-12 11:26:41 +02:00
Pierre de La Morinerie
a94b42cbad
Merge pull request #5359 from betagouv/remove-old-after-party-tasks
Suppression d'anciennes tâches de migration de données
2020-07-09 18:37:18 +02:00
Pierre de La Morinerie
c41afc425e tasks: remove old after_party tasks
Fixes a task that since became invalid:

> NameError: uninitialized constant SeekAndDestroyExpiredDossiersJob
> /lib/tasks/deployment/20191203142402_enable_seek_and_destroy_job
2020-07-09 18:18:09 +02:00
Kara Diaby
94df9ca514
Merge pull request #5339 from betagouv/feat/5287
Feat/5287 - New design for admin procedure detail
2020-07-09 15:33:09 +02:00
kara Diaby
7f3b38cfee Merge admin dashboard to new design for procedure details 2020-07-09 12:18:22 +02:00
Pierre de La Morinerie
a084fd199f
Merge pull request #5356 from betagouv/doc-boot-appli
Suppression de la dépendance à `overmind`
2020-07-09 10:56:59 +02:00
Pierre de La Morinerie
4f8355664a bin: get closer from the default template of Rails 6 2020-07-09 10:47:38 +02:00
Pierre de La Morinerie
0003dc167a bin: remove last mentions of overmind 2020-07-09 10:47:38 +02:00
Pierre de La Morinerie
2fff534d66 README: remove last mentions of overmind 2020-07-09 10:47:38 +02:00
clemkeirua
fa86204410 mise à jour de Procfile 2020-07-09 09:33:17 +02:00
clemkeirua
60c3047e4f mise à jour de doc pour se passer d'overmind 2020-07-09 09:32:09 +02:00
Paul Chavard
8f99a0eda3
Merge pull request #5355 from tchak/clean-up-repetition
Remove repetition types_de_champ on type_champ change
2020-07-08 19:43:20 +02:00
Paul Chavard
cb8cac395b fix spec name 2020-07-08 19:28:17 +02:00
Paul Chavard
3b9e6dba25 Update spec/models/type_de_champ_shared_example.rb
Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2020-07-08 19:28:17 +02:00
Paul Chavard
84ff75ed6b Update spec/models/type_de_champ_shared_example.rb
Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2020-07-08 19:28:17 +02:00
Paul Chavard
a92320e246 Update spec/models/type_de_champ_shared_example.rb
Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2020-07-08 19:28:17 +02:00
Paul Chavard
d8e864a7d9 Update spec/models/type_de_champ_shared_example.rb
Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2020-07-08 19:28:17 +02:00
Paul Chavard
660c95356b Update spec/models/type_de_champ_shared_example.rb
Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2020-07-08 19:28:17 +02:00
Paul Chavard
ef259c361d Fix exception when purge_later is called before save 2020-07-08 19:25:05 +02:00
Paul Chavard
a74e52c828 Call remove_drop_down_list on before_save 2020-07-08 19:25:05 +02:00
Paul Chavard
3c9cc6c070 Remove repetition types_de_champ on type_champ change 2020-07-08 19:25:05 +02:00
krichtof
134713649e
Merge pull request #5358 from betagouv/5347-validate-api-entreprise-token
#5347 valide le jeton spécifique à une procédure donnée par l'administrateur
2020-07-08 19:06:11 +02:00
Christophe Robillard
2c56511204 validate api_entreprise_token 2020-07-08 18:59:22 +02:00
krichtof
c074864c2e
Merge pull request #5330 from betagouv/4897-display-instructeur-decision
#4897 Affiche l'instructeur qui a rendu la décision sur un dossier
2020-07-08 18:39:06 +02:00
Christophe Robillard
7fd4d46e8e remove empty spec file 2020-07-08 18:15:15 +02:00
Christophe Robillard
f38e16e371 avoid n+1 queries 2020-07-08 18:15:15 +02:00
Christophe Robillard
dfc97d8d87 allège l'affichage des décisions rendues 2020-07-08 18:15:15 +02:00
Christophe Robillard
f0e0554da9 display instructeur_email who took decision only if email is present 2020-07-08 18:15:15 +02:00
Christophe Robillard
1253bb5994 store instructeur_email in traitement 2020-07-08 18:15:15 +02:00
Christophe Robillard
9b6c5fd7fd update termine_close_to_expiration with traitement 2020-07-08 18:15:15 +02:00
Christophe Robillard
8f9d6d2871 show which instructeur took decision and when
and also replace "sans suite" by "classé sans suite"
2020-07-08 18:15:15 +02:00
Christophe Robillard
cea170e4a6 update stats with traitement model 2020-07-08 18:15:15 +02:00
Christophe Robillard
0be4b50ade update usual_traitement_time with traitement model 2020-07-08 18:15:15 +02:00
Christophe Robillard
a072d35211 use traitement model
when a dossier is terminated (accepte, refuse or classe_sans_suite),
we store now `processed_at` and `motivation` in a traitement instance
2020-07-08 18:15:15 +02:00
Christophe Robillard
f631acd118 update state date in aasm after callbacks
call aasm event methods, not state methods directly
2020-07-08 18:15:15 +02:00
krichtof
161b63f487
Merge pull request #5345 from betagouv/5333-no-sentry-reporting-for-api-entreprise
5333 Ne remonte plus les erreurs api-entreprise à Sentry
2020-07-08 18:14:12 +02:00