Commit graph

12788 commits

Author SHA1 Message Date
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
Pierre de La Morinerie
c20b8183a9
Merge pull request #6291 from betagouv/remove-geos-from-readme
README : mise à jour des instructions d'installation concernant `geos` (#6291)
2021-06-22 13:02:11 +02:00
Pierre de La Morinerie
d1d144ac0c docs: remove geos from the README
We now use our own Ruby code to avoid a dependancy on the geos C
library. It means that DS works without geos – and even that it doesn't
work when geos is installed (because RGeos tries to auto-detect it).
2021-06-22 12:41:28 +02:00
Pierre de La Morinerie
1adadc38e4
Merge pull request #6283 from betagouv/fix-rebase-action-not-triggering-checks
CI : mise à jour de l'action 'rebase' (#6283)
2021-06-22 08:43:02 +02:00
Pierre de La Morinerie
ed4e065bc1 ci: update the 'rebase' github action
This fixes a bug where rebasing wouldn't trigger branch checks again.
2021-06-22 08:33:15 +02:00
Kara Diaby
7c64435b33
Merge pull request #6288 from betagouv/fix-csv-import
Fixe l'encoding de l'import CSV groupes instructeurs
2021-06-21 14:22:22 +02:00
kara Diaby
87ce71f27d fix import service 2021-06-21 14:11:05 +02:00
kara Diaby
06958cbdd1 fix service and utf-8 encoding 2021-06-21 13:54:01 +02:00
Paul Chavard
4866934171
Merge pull request #6280 from tchak/add-delete-dossier-to-list
Add delete dossier action to dossiers list
2021-06-18 11:44:08 +02:00
Paul Chavard
1f7d86d5a5 Add delete dossier action to dossiers list 2021-06-18 11:35:00 +02:00
krichtof
7bda735720
Merge pull request #6286 from betagouv/6207-fix-archives-update-dossiers
archives: ne met pas à jour un dossier après la génération de l'export pdf par un instructeur
2021-06-18 11:14:11 +02:00
Christophe Robillard
fdec9b2fd5 archives: don't update dossiers
this fix avoid to touch dossier after attaching pdf_export_for_instructeur
2021-06-18 11:00:57 +02:00
LeSim
f64dedc872
Merge pull request #6285 from betagouv/6207-fix-count-archives
archives: count archived dossiers
2021-06-18 10:26:39 +02:00
Christophe Robillard
7851d6b1cc archives: count archived dossiers 2021-06-18 08:59:13 +02:00
Pierre de La Morinerie
a3c7de6e45
Merge pull request #6282 from betagouv/fix-flaky-traitement-spec
Tests : correction de l'usage de `Timecop.freeze` dans les tests de Traitement (#6282)
2021-06-17 17:46:16 +02:00
Pierre de La Morinerie
12d17bc245 spec: fix Timecop.freeze without Timecop.return
Time was frozen without being un-frozen at the end of the spec.

This caused a spec in `Procedure#publish_or_reopen!` to fail randomly.

Fixed by using the `Timecop.freeze do` form, which unfreezes after the
execution of the block.
2021-06-17 17:36:43 +02:00
Pierre de La Morinerie
2609502050
Merge pull request #6277 from betagouv/dependabot/npm_and_yarn/postcss-7.0.36
Mise à jour de `postcss` de la version 7.0.30 à 7.0.36
2021-06-17 17:31:14 +02:00
dependabot[bot]
6f482d647f
Bump postcss from 7.0.30 to 7.0.36
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.30 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.30...7.0.36)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-17 15:14:12 +00:00
krichtof
6650dcd844
Merge pull request #6261 from betagouv/6149-temps-traitement-usager
6149 expose sous forme de graphe l'évolution du temps de traitement d'une procédure pour les usagers et les instructeurs
2021-06-17 17:03:37 +02:00
krichtof
4bda6600b1 explain what percentile constant means
Co-authored-by: Pierre de La Morinerie <pierre.de_la_morinerie@beta.gouv.fr>
2021-06-17 16:31:53 +02:00
Christophe Robillard
896190b91e return nil when no traitement time 2021-06-17 16:31:53 +02:00
Christophe Robillard
887c5cb4a9 correct rubocop offenses 2021-06-17 16:31:53 +02:00
Christophe Robillard
a5ae5af56a extract NB_DAYS_RECENT_DOSSIERS and PERCENTILE 2021-06-17 16:31:53 +02:00
Christophe Robillard
bdf2f47eb9 fix specs for procedure stats 2021-06-17 16:31:53 +02:00
Christophe Robillard
f2deba733d use traitement_times to compute usual_traitement_time for recent
dossiers
2021-06-17 16:31:53 +02:00
Christophe Robillard
21dd05cc56 less sql queries for usual_traitement_time_by_month 2021-06-17 16:31:53 +02:00
Christophe Robillard
55efe367bf percentile returns always an integer 2021-06-17 16:31:53 +02:00
Christophe Robillard
8cbbae8984 use cache for traitement time for instructeurs 2021-06-17 16:31:53 +02:00
Christophe Robillard
a8840faadb move stats methods to appropriate concern class 2021-06-17 16:31:53 +02:00