Commit graph

13994 commits

Author SHA1 Message Date
Christophe Robillard
447612abdf fix a11y-8.9.1
no p tag when Champ text with no value
2022-02-02 19:03:40 +01:00
Pierre de La Morinerie
1f219de931
Merge pull request #6851 from betagouv/fix-stats-ordering
Correction de l'ordre des mois sur la page des statistiques
2022-02-02 17:27:19 +01:00
Pierre de La Morinerie
e6cf07b810 stats: move date formatting out of the Stat model
Before this commit, the monthly dossiers count was serialized into the
Stat record using human-formatted dates, as:

```ruby
s.dossiers_in_the_last_4_months = {
  "octobre 2021"=>409592,
  "novembre 2021"=>497823,
  "décembre 2021"=>38170,
  "janvier 2022"=>0
}
```

Turns out the ordering of keys in a serialized hash is not guaranteed.
After a round-trip to the database, the keys will be wrongly sorted.

Instead we want to save raw Date objects, which will preserve the
ordering. The date formatting can be applied at display-time by the
controller.

Fix #6848
2022-02-02 14:13:53 +01:00
Kara Diaby
7c4bb4d1cf
Merge pull request #6853 from betagouv/fix-research-2
Instructeurs : corrige la recherche cassée dans la précédente release
2022-02-02 09:47:30 +01:00
Kara Diaby
81249aa798 Instructeurs : fixe la recherche cassée dans la précédente release 2022-02-02 09:33:28 +01:00
Pierre de La Morinerie
4ed840c9e4
Merge pull request #6850 from betagouv/fix-research
Instructeur : correction de la recherche de dossiers, cassée dans la release précédente
2022-02-01 17:03:02 +01:00
Kara Diaby
8d2f4597fa fix recherche on supprimes_recemment dossiers instructeurs 2022-02-01 16:54:09 +01:00
Pierre de La Morinerie
70cbdcacc9
Merge pull request #6840 from betagouv/fix-champs-validation-for-private-champs
Administrateur : sépare la validation des champs publics et des annotations privées
2022-02-01 12:41:23 +01:00
Pierre de La Morinerie
ca58e60dc0 validators: rename revisions namespace to types_de_champ 2022-02-01 12:37:16 +01:00
Pierre de La Morinerie
d680602c84 models: validate private types_de_champ 2022-02-01 12:37:16 +01:00
Pierre de La Morinerie
e8e37cce15 models: refactor the types_de_champ validators
Context: we want to validate public and private types_de_champ
separately.

Before we validated the whole revision (and then validators themselves
enumerated all champs, public and private).

Now we validate the actual public types_de_champ, which will let us
validate separately the private types_de_champ.
2022-02-01 12:37:16 +01:00
Kara Diaby
64d75360d0
Merge pull request #6843 from betagouv/feat/6828
ETQ instructeur, je veux pouvoir restaurer un dossier supprimé
2022-02-01 12:20:42 +01:00
Kara Diaby
842cc11689 tests 2022-01-31 10:03:44 +01:00
Kara Diaby
96556ca4b3 locales 2022-01-31 10:03:44 +01:00
Kara Diaby
64f2dfdea1 routes 2022-01-31 10:03:44 +01:00
Kara Diaby
82ddad125f layout 2022-01-31 10:03:44 +01:00
Kara Diaby
0f968f4c4e modify models 2022-01-27 17:01:27 +01:00
Kara Diaby
a94568e2ef modify procedures controller 2022-01-27 17:01:09 +01:00
Kara Diaby
8b76a8c2ae add supprimes_recemment to procedure presentation 2022-01-27 17:00:41 +01:00
Pierre de La Morinerie
e1df193006
Merge pull request #6836 from betagouv/saml-idp-enabled
Ajout d'une nouvelle variable d'environnement `SAML_IDP_ENABLED`
2022-01-26 17:46:22 +01:00
Pierre de La Morinerie
387701e7cb config: add a new SAML_IDP_ENABLED env var
This fixes the app crashing on launch when using the production profile,
because the certificates are not present.
2022-01-26 16:45:50 +01:00
Paul Chavard
413f66e144
Merge pull request #6838 from tchak/fix-dossiers-attestations
hotfix(attestation): add missing attestations on dossiers
2022-01-26 16:19:20 +01:00
Paul Chavard
c25dba850e hotfix(attestation): add missing attestations on dossiers 2022-01-26 15:33:42 +01:00
Paul Chavard
9c54f004f2
Merge pull request #6834 from tchak/revert-attestations
Revert attestation templates revisions
2022-01-25 18:45:03 +01:00
Paul Chavard
80125cbed1 fix attestation templates 2022-01-25 18:43:26 +01:00
Paul Chavard
4e7733e571 Revert "feat(attestation): revise attestations"
This reverts commit e413872530.
2022-01-25 18:26:34 +01:00
Pierre de La Morinerie
33a40d576e
Merge pull request #6832 from betagouv/dependabot/npm_and_yarn/node-fetch-2.6.7
Javascript : mise à jour de node-fetch de la v2.6.6 à la v2.6.7
2022-01-25 16:36:25 +01:00
dependabot[bot]
69b1b4afbf
build(deps): bump node-fetch from 2.6.6 to 2.6.7
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-25 15:31:25 +00:00
Kara Diaby
045ac219c9
Merge branch 'production' into main 2022-01-25 14:09:16 +01:00
Kara Diaby
edc8c9c8a0
Merge pull request #6825 from betagouv/fix-dossier-deletion
fix dossier deletion mailers
2022-01-25 12:05:45 +01:00
Paul Chavard
ecebc8cf00 fix locale 2022-01-25 11:46:05 +01:00
Paul Chavard
a9c4a81ab0 fix dossier mailer templates 2022-01-25 11:46:05 +01:00
Kara Diaby
c9f402aa5b tests 2022-01-25 11:46:05 +01:00
Kara Diaby
2eb35065f8 fix dossier deletion mailers 2022-01-25 11:46:05 +01:00
Pierre de La Morinerie
4b9bc582e7
Merge pull request #6829 from betagouv/dependabot/npm_and_yarn/nanoid-3.2.0
Javascript : mise à jour de `nanoid` de la v3.1.30 à la v3.2.0
2022-01-25 11:45:23 +01:00
dependabot[bot]
8cce5d506c
build(deps): bump nanoid from 3.1.30 to 3.2.0
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-25 07:27:43 +00:00
Pierre de La Morinerie
6513be17f8
Merge pull request #6830 from betagouv/fix-dossiers-tous-instructeur
Instructeur : corrige l'affichage des dossiers masqués par l'usager dans l'onglet 'tous' de la liste des dossiers
2022-01-25 08:25:03 +01:00
Kara Diaby
7a49985e2c tests 2022-01-24 16:47:47 +01:00
Kara Diaby
0e3532a0b2 Fixe la liste 'tous' des dossiers instructeurs lorsqu'un dossier est en constructino et caché par l'usager 2022-01-24 16:47:47 +01:00
mfo
88c298a8c7
Merge pull request #6831 from betagouv/US/fix-mon-avis-without-title
feat(MonAvisEmbedValidator): allow mon avis button without title
2022-01-24 16:30:55 +01:00
Martin
47fa95a577 feat(MonAvisEmbedValidator): allow mon avis button without title 2022-01-24 15:56:29 +01:00
Paul Chavard
10d3d3df73
Merge pull request #6751 from tchak/fix-attestation-revision
Versionner les attestations
2022-01-19 18:29:00 +01:00
Paul Chavard
ff806782de feat(attestation): migration task to revise attestations 2022-01-19 18:00:37 +01:00
Paul Chavard
e413872530 feat(attestation): revise attestations 2022-01-19 18:00:37 +01:00
Paul Chavard
c1cb89bb44 fix(revision): changed? conflicts with rails method 2022-01-19 18:00:37 +01:00
Paul Chavard
e6a942a5fc
Merge pull request #6826 from tchak/fix-expired-dossiers-notifications
fix(dossier): do not send notification on expiration when dossier is already deleted
2022-01-19 17:58:23 +01:00
Paul Chavard
3d8471e064 fix(dossier): do not send notification on expiration when dossier is already deleted 2022-01-19 17:52:53 +01:00
Pierre de La Morinerie
d1a941d908
Merge pull request #6820 from betagouv/improve-env-var-organization
Amélioration des variables d'environnement (ajout et renommage)
2022-01-19 15:48:21 +01:00
Pierre de La Morinerie
0b4e82c25b config: move jobs env vars to the optional file 2022-01-19 15:43:44 +01:00
Pierre de La Morinerie
68fd3aea39 config: rename SOURCE to LOGRAGE_SOURCE 2022-01-19 15:43:44 +01:00