demarches-normaliennes/app
Pierre de La Morinerie 3499f5af9a models: remove invalid Dossier ↔︎ Champ inverse relationship
`Dossier.champs` is not really an inverse of `Champs.dossier`: when a
Champ record is created, it should not always be added to dossier.champs
(for instance if the champ is private).

NB: this breaks the workaround we added in #3907 to fix the parent
dossier not being touched in some cases (the workaround was to add an
inverse relationship, but we now have to remove it).

The new workaround is to watch for `changed_for_autosave?` on champs.
Unlike `changed?`, `changed_for_autosave?` also detects changes to
attachments. This allows us to touch both `last_champ_updated_at` and
`updated_at` in a single pass.
2021-04-06 10:26:17 +02:00
..
assets supprime la page accessibilité 2021-03-30 15:12:18 +02:00
controllers models: remove invalid Dossier ↔︎ Champ inverse relationship 2021-04-06 10:26:17 +02:00
dashboards bump administrate 2020-09-21 11:15:25 +02:00
fields manager: remove support for old pj 2019-07-30 16:11:17 +02:00
graphql modify api and serializer 2021-03-24 17:47:24 +01:00
helpers detect staging env 2021-03-24 15:30:12 +01:00
javascript focus to target after toggle 2021-03-17 11:31:51 +01:00
jobs active_storage: refactor concerns 2021-03-16 11:49:14 +01:00
lib remove dead code 2021-03-16 15:13:17 +01:00
mailers change avis invitation mailer 2021-03-18 11:38:52 +01:00
models models: remove invalid Dossier ↔︎ Champ inverse relationship 2021-04-06 10:26:17 +02:00
policies policies: clarify the role of ChampPolicy 2020-06-24 15:42:30 +02:00
schemas Add api address external data fetch 2021-02-17 19:10:16 +01:00
serializers modify experts avis controllers, concern and serializer 2021-03-18 11:38:52 +01:00
services dossier: fix SQL deprecation error 2021-03-25 13:24:53 +01:00
validators Add geo json validation 2021-03-11 15:51:09 +01:00
views Improuve generated dossier PDF 2021-04-02 14:22:59 +01:00