demarches-normaliennes/app
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
..
assets import csv gi available only for published procedures 2022-01-18 13:21:11 +01:00
controllers stats: move date formatting out of the Stat model 2022-02-02 14:13:53 +01:00
dashboards superadmin can show zone for a procedure 2021-12-23 19:07:42 +01:00
fields manager: remove support for old pj 2019-07-30 16:11:17 +02:00
graphql feat(api particulier): add MESRI field 2021-12-16 16:45:18 +01:00
helpers helpers: handle flash[:error] 2022-01-06 14:09:31 +01:00
javascript config: add MATOMO_HOST environment variable 2022-01-19 15:43:44 +01:00
jobs feat(procedure): only purge procedures without dossiers 2022-01-18 11:22:04 +01:00
lib config: rename SOURCE to LOGRAGE_SOURCE 2022-01-19 15:43:44 +01:00
mailers fix dossier deletion mailers 2022-01-25 11:46:05 +01:00
models stats: move date formatting out of the Stat model 2022-02-02 14:13:53 +01:00
policies policies: clarify the role of ChampPolicy 2020-06-24 15:42:30 +02:00
schemas fix(api particulier): remove $def key from pole emploi JSON schema 2021-12-16 16:45:18 +01:00
serializers fix(dossier): use depose_at instead of en_construction_at 2021-12-06 15:49:17 +01:00
services fix(dossier): do not send notification on expiration when dossier is already deleted 2022-01-19 17:52:53 +01:00
validators validators: rename revisions namespace to types_de_champ 2022-02-01 12:37:16 +01:00
views Instructeurs : fixe la recherche cassée dans la précédente release 2022-02-02 09:33:28 +01:00