Commit graph

12816 commits

Author SHA1 Message Date
Pierre de La Morinerie
9eb2e13d43 config: report job exceptions after max retry count reached
Previously Sentry reported job exceptions even if a retry
strategy was specified. So we had to ignore retried job exceptions
entirely.

Since sentry-delayed-job 0.4.4, we can instead let Sentry report
job exceptions when the retry count is exhausted. Which is
exactly the behavior we want.
2021-07-01 15:06:14 +02:00
Paul Chavard
8bfb855b26
Merge pull request #6312 from tchak/carto-layers
IGN layers on maps can now be disabled by the user
2021-06-30 20:17:41 +02:00
Paul Chavard
fc966a2761 IGN layers on maps can now be disabled by the user 2021-06-30 20:07:52 +02:00
Kara Diaby
a29e1761f4
Merge pull request #6311 from betagouv/expert-sign-in
ETQ Expert, je ne peux plus me connecter après avoir accepté une demande d'avis
2021-06-30 12:13:52 +02:00
Pierre de La Morinerie
1faf91bdbe experts: protect password update as well as sign-up 2021-06-30 10:46:42 +02:00
Pierre de La Morinerie
6f7a2fde57 experts: fix saving password on sign-in 2021-06-30 10:46:42 +02:00
Pierre de La Morinerie
4f5c5e26ae spec: cleanup spec for Experts::AvisController 2021-06-30 10:46:42 +02:00
LeSim
7bf0f1be9c
Merge pull request #6310 from betagouv/translate-422-error-page
Redesign et traduction de la page 'Erreur 422'
2021-06-29 19:10:31 +02:00
Pierre de La Morinerie
9cb3cb6ee2 public: redesign and translate the 422 error page 2021-06-29 17:44:19 +02:00
Paul Chavard
125fd5bea1
Merge pull request #6307 from betagouv/fix-pdf-io
Fix Expose dossier PDF export as IO
2021-06-24 21:21:46 +02:00
Christophe Robillard
cd36f2622f fix download FakeAttachment 2021-06-24 21:02:55 +02:00
Christophe Robillard
66cc0dd08d Revert "Revert "Expose dossier PDF export as IO""
This reverts commit 362093eff0.
2021-06-24 21:01:59 +02:00
krichtof
aa13bf1c23
Merge pull request #6304 from betagouv/revert-6302-dossier-pdf-export
Revert "Expose dossier PDF export as IO"
2021-06-24 19:36:44 +02:00
krichtof
362093eff0
Revert "Expose dossier PDF export as IO" 2021-06-24 19:21:37 +02:00
krichtof
298c362e61
Merge pull request #6302 from tchak/dossier-pdf-export
Expose dossier PDF export as IO
2021-06-24 18:03:21 +02:00
Paul Chavard
f39944a02e Create procedure sub folder in archives
Co-authored-by: Christophe Robillard <christophe.robillard@beta.gouv.fr>
2021-06-24 17:50:17 +02:00
Paul Chavard
48dca8bad1 Execute AchiveCreationJob in exports queue
Co-authored-by: Christophe Robillard <christophe.robillard@beta.gouv.fr>
2021-06-24 17:49:58 +02:00
Paul Chavard
b73d504f8d Expose dossier PDF export as IO
Co-authored-by: Christophe Robillard <christophe.robillard@beta.gouv.fr>
2021-06-24 17:49:24 +02:00
Pierre de La Morinerie
04d4cf827c
Merge pull request #6298 from betagouv/bump-delayed-job-web
Mise à jour de `delayed_job_web` de 1.4.3 à 1.4.4 (#6298)
2021-06-24 14:50:22 +02:00
Christophe Robillard
b047c38b47 gems: upgrade delayed_job_web
fix error when attempting to "retry" or "reload" a failed job via the web interface.

bump delayed_job_web from 1.4.3 to 1.4.4
See [Changelog](https://github.com/ejschmitt/delayed_job_web/blob/v1.4.4/CHANGELOG.md) from 1.4.3 to 1.4.4
2021-06-24 14:29:54 +02:00
Paul Chavard
608b825f3b
Merge pull request #6268 from tchak/graphql-deleted-dossiers
[GraphQL] expose deleted dossiers
2021-06-24 12:03:43 +02:00
Paul Chavard
a4482233b8 [GraphQL] expose deleted dossiers 2021-06-24 11:51:37 +02:00
Paul Chavard
9fa3e63cd9
Merge pull request #6296 from tchak/improuve-revision-changes
Improve procedure revisions
2021-06-24 11:50:59 +02:00
Paul Chavard
15ff046428 Improuve revision changes messages 2021-06-24 11:39:49 +02:00
Paul Chavard
241eff76a3 Enable publish new revision only if some changes are found 2021-06-24 11:39:49 +02:00
Paul Chavard
0ca5e1abe2 Preview should reflect revision changes 2021-06-24 11:39:49 +02:00
Paul Chavard
8b2c2c6466 Handle carte layers changes 2021-06-24 11:39:49 +02:00
Pierre de La Morinerie
c0f6909266
Merge pull request #6297 from betagouv/dependabot/bundler/bindata-2.4.10
Mise à jour de `bindata` de la version 2.4.8 à 2.4.10 (#6297)
2021-06-24 09:18:59 +02:00
dependabot[bot]
2b1e0f14f6
Bump bindata from 2.4.8 to 2.4.10
Bumps [bindata](https://github.com/dmendel/bindata) from 2.4.8 to 2.4.10.
- [Release notes](https://github.com/dmendel/bindata/releases)
- [Changelog](https://github.com/dmendel/bindata/blob/master/ChangeLog.rdoc)
- [Commits](https://github.com/dmendel/bindata/compare/v2.4.8...v2.4.10)

---
updated-dependencies:
- dependency-name: bindata
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-23 23:43:20 +00:00
Paul Chavard
94546fb866
Merge pull request #5847 from tchak/enable-edit-procedure
Enable publish revisions
2021-06-23 10:18:23 +02:00
Paul Chavard
35eccb5630 Show separate blocks for types de champ and annotation changes 2021-06-23 09:40:07 +02:00
Paul Chavard
19195008e8 Expose removed types_de_champ in exports 2021-06-23 09:40:07 +02:00
simon lehericey
eadae7af6b show all available tdc for procedure presentation 2021-06-23 09:40:07 +02:00
Paul Chavard
8d49b5556a test revision changes 2021-06-23 09:40:07 +02:00
Paul Chavard
e68441d573 Allow publishing revisions when feature flag is enabled 2021-06-23 09:40:07 +02:00
Paul Chavard
9d3416af53 Implement revision changes UI 2021-06-23 09:40:07 +02:00
Paul Chavard
0d25f52309 Add changed? and compare on ProcedureRevision 2021-06-23 09:40:07 +02:00
Paul Chavard
15e9013264 Set published_at on revision when publishing a procedure 2021-06-23 09:40:07 +02:00
Paul Chavard
7cb2f91fea Add revisions feature flag 2021-06-23 09:40:07 +02:00
Paul Chavard
e066e61764
Merge pull request #6278 from tchak/export-for-last-month
Permettre l’export des dossiers sur les 30 derniers jours
2021-06-23 09:31:10 +02:00
Paul Chavard
f238710044 Add last_month export 2021-06-23 09:23:10 +02:00
Kara Diaby
f5f4aa9bf2
Merge pull request #6292 from betagouv/add-error-message-to-csv-import
Renvoie un message d'erreur si les headers du fichier CSV ne sont pas au format attendu
2021-06-22 16:46:40 +02:00
kara Diaby
bcc23ae7a6 test file 2021-06-22 16:33:38 +02:00
kara Diaby
309b3414d6 tests 2021-06-22 16:33:38 +02:00
kara Diaby
cf11b0c901 return error if the csv headers are wrong 2021-06-22 16:33:38 +02:00
Paul Chavard
9845ec3ff6
Merge pull request #6293 from betagouv/fix-typo-archive
archives: corrige une faute d'orthographe
2021-06-22 16:07:25 +02:00
Christophe Robillard
63ef3a08d7 archives: corrige une faute d'orthographe 2021-06-22 15:35:48 +02:00
Pierre de La Morinerie
12a1cf2acc
Merge pull request #6290 from betagouv/use-default-forgery-config
Utilisation des réglages par défaut de Rails pour configurer la protection contre les formulaires invalides (#6290)
2021-06-22 13:29:53 +02:00
Pierre de La Morinerie
a99a6cc49f controllers: use default Rails settings for protecting against forgery
Rails uses `config.action_controller.allow_forgery_protection` to
enable or disable forgery protection globaly.

This is disabled for tests by default. So our custom config is not
required.
2021-06-22 13:21:55 +02:00
Pierre de La Morinerie
5908b8019a specs: properly use xhr: true in javascript requests
This avoids an unexpected `ActionController::InvalidCrossOriginRequest`
exception to be raised when the forgery protection is disabled.
2021-06-22 13:21:55 +02:00