demarches-normaliennes/app/controllers
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
..
administrateurs Revert "feat(attestation): revise attestations" 2022-01-25 18:26:34 +01:00
agent_connect add redirect 2021-11-23 14:17:59 +01:00
api fix(graphql): fix and improuve query parsing for logs 2021-11-24 13:23:05 +03:00
application_controller app: use a long-lived cookie for CSRF token 2021-07-20 11:11:52 +02:00
champs fix(users/champs/piece_justificative#update): ensure to bump dossier.last_champ_updated_at otherwise instructeurs are not notified when user update their piece_justificative 2022-01-06 13:09:57 +01:00
concerns fix(graphql): fix and improuve query parsing for logs 2021-11-24 13:23:05 +03:00
devise sign_in: extract the procedure context to a ProcedureContextConcern 2019-01-17 11:07:09 +01:00
experts l'expert ne voit pas les dossiers supprimés par l'instructeur 2022-01-03 11:51:25 +01:00
france_connect fix(i18n): wrap text under i18n.t 2021-11-25 17:34:37 +01:00
instructeurs modify procedures controller 2022-01-27 17:01:09 +01:00
manager feat(procedure): only purge procedures without dossiers 2022-01-18 11:22:04 +01:00
super_admins devise: use password_strength component in SuperAdmin::PasswordsController 2021-09-09 09:40:39 -05:00
users modify controller 2022-01-12 15:49:37 +01:00
admin_controller.rb Remove old css and js 2021-02-02 15:26:11 +01:00
api_controller.rb Enable flipflop on api requests 2019-03-12 14:02:55 +01:00
api_geo_test_controller.rb Update specs 2020-10-08 15:26:15 +02:00
application_controller.rb config: add MATOMO_HOST environment variable 2022-01-19 15:43:44 +01:00
attachments_controller.rb attachments: remove the buggy fallback 2020-04-09 10:40:08 +02:00
invites_controller.rb Fix apostrophes ‘ -> ’ 2021-05-26 18:05:14 +02:00
password_complexity_controller.rb app: add a password_complexity component 2021-09-09 09:40:39 -05:00
ping_controller.rb Fix ping controller in dev 2022-01-05 11:44:32 +01:00
recherche_controller.rb Instructeurs : fixe la recherche cassée dans la précédente release 2022-02-02 09:33:28 +01:00
root_controller.rb feat(i18n): enable localization by query param 2021-08-24 12:42:40 +02:00
saml_idp_controller.rb act as an saml identity provider 2020-11-16 12:19:54 +01:00
stats_controller.rb stats: move date formatting out of the Stat model 2022-02-02 14:13:53 +01:00
super_admins_controller.rb super_admin: fix OTP generation 2021-02-11 11:14:14 +01:00
support_controller.rb feat(support#create): block with invisible captcha [avoid painful captcha] 2022-01-04 14:49:00 +01:00
webhook_controller.rb added helscout link for emails 2020-10-13 17:36:43 +02:00