Commit graph

12762 commits

Author SHA1 Message Date
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
Christophe Robillard
98f0eb5ba9 ajoute legende à la stat 2021-06-17 16:31:53 +02:00
Christophe Robillard
45ffae9eb3 affiche evolution temps de traitement 2021-06-17 16:31:53 +02:00
Christophe Robillard
701b72494d compute usual traitement time for specific month 2021-06-17 16:31:53 +02:00
Pierre de La Morinerie
44a165b3bb
Merge pull request #6276 from betagouv/remove-email-in-urls
Les URLs qui comportaient des adresses email dans le chemin insèrent maintenant l'email comme query-param (#6276)
2021-06-17 11:24:40 +02:00
Pierre de La Morinerie
b5bde6608c routes: replace the email param in the Avis URLs by a query param 2021-06-17 11:15:51 +02:00
Pierre de La Morinerie
ab442cd8d1 routes: remove unused redirections 2021-06-17 11:15:51 +02:00
Pierre de La Morinerie
51159117c9 routes: replace the email param in the URL to a query param
This basically moves from:

    /lien-envoye/foo@bar.com

to:

    /lien-envoye?email=foo@bar.com

This allow to properly censor the data in Matomo (so that email
addresses don't end up stored in Matomo).
2021-06-17 11:15:51 +02:00
Paul Chavard
e0dd0893f4
Merge pull request #6274 from tchak/communes-all-post-codes
Expand commune searches with multiple post codes
2021-06-16 09:46:56 +02:00
Paul Chavard
10cdd2c77e Apply suggestions from code review
Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2021-06-16 09:38:47 +02:00
Paul Chavard
7f28c49887 expand commune searches with multiple post codes 2021-06-16 09:29:25 +02:00
Kara Diaby
c7a2a5025b
Merge pull request #6265 from betagouv/feat/6263
ETQ Administrateur, je peux ajouter des groupes instructeurs via un fichier csv
2021-06-15 22:16:17 +02:00
kara Diaby
cd030fd975 add csv fixture file 2021-06-15 19:36:47 +02:00
kara Diaby
b01a65b2c0 add public csv exemple for import groupe instructeurs 2021-06-15 19:36:46 +02:00
kara Diaby
6ebd57640c tests 2021-06-15 19:36:46 +02:00
kara Diaby
f1a5eb0482 layout 2021-06-15 19:36:46 +02:00
kara Diaby
6353104ecb modify service 2021-06-15 19:36:46 +02:00
kara Diaby
99d00c00ce change routes 2021-06-15 11:20:20 +02:00
kara Diaby
ab781204bc modify groupe instructeur controller 2021-06-15 11:20:20 +02:00
kara Diaby
a1367301e9 add css utils 2021-06-15 11:20:20 +02:00
Paul Chavard
352b92b35c
Merge pull request #6266 from tchak/fix-autocomplete
Correction des bugs sur les select avec autocomplétion
2021-06-15 10:37:32 +02:00
Paul Chavard
7575f50d25 Fix autocomplete on blur 2021-06-15 10:13:31 +02:00
Paul Chavard
7f4e174871 Declare useCallback dependencies 2021-06-15 10:13:31 +02:00
LeSim
5cde8d85c4
Merge pull request #6270 from betagouv/small_ui_changes
corrige de légers problèmes graphique au niveau de l'interface administrateur / instructeur
2021-06-15 10:02:27 +02:00
simon lehericey
4900ca16f2 makes whole admin card clickable 2021-06-15 09:54:32 +02:00
simon lehericey
6be0bbaa9c Change bottom champs editor button from enregistrer to continuer 2021-06-15 09:54:32 +02:00
simon lehericey
9f50ead0fc wrap link in header to avoid ugly display 2021-06-15 09:54:32 +02:00