Pierre de La Morinerie
1eebc2f1e1
specs: make test migrations safer
...
This will avoid strong_migrations to flag them as dangerous.
2022-03-16 10:30:25 +01:00
Pierre de La Morinerie
c45e01ada1
Merge pull request #7048 from betagouv/main
...
2022-03-15-03
2022-03-15 16:37:45 +01:00
Paul Chavard
747ecdcb08
Merge pull request #7049 from betagouv/fix-after-party-task
...
Correction de la tâche after_party de rétro-compatibilité 'null_exports_key_to_uuid'
2022-03-15 16:29:00 +01:00
Pierre de La Morinerie
1b69accd10
tasks: rename after_party task to the proper name
...
The name of the file must be exactly the same than the name of the
task.
2022-03-15 16:20:15 +01:00
Pierre de La Morinerie
c09f2506d0
Merge pull request #7019 from betagouv/move-users-foreign-keys-part-1
...
Ajout de colonnes référençant le User à Administrateur, Instructeur et Expert
2022-03-15 16:03:07 +01:00
Pierre de La Morinerie
ae3e360139
models: double-write to the newly created foreign keys
...
This code is only used to handle a live system creating new
Administrateurs, Instructeurs or Experts before the migration to the new
foreign keys.
2022-03-15 15:57:22 +01:00
Pierre de La Morinerie
d2f12e5188
db: copy user-related ids to the respective models
2022-03-15 15:57:22 +01:00
Pierre de La Morinerie
48ea53b90d
db: add foreign keys to Administrateur, Instructeur and Expert
2022-03-15 15:15:51 +01:00
Pierre de La Morinerie
be834ba58d
models: reload old_user roles before destroying it
...
Otherwise ActiveRecord believes that old_user still has roles (although
they have been migrated to the new user), and attempts to delete them.
2022-03-15 15:13:45 +01:00
Pierre de La Morinerie
2cac7d96be
models: fix procedure_revision comments indentation
2022-03-15 15:13:45 +01:00
Paul Chavard
4329d3e81e
Merge pull request #7044 from betagouv/test_for_sections_number_in_preview
...
Durcit le test de preview
2022-03-15 11:23:02 +01:00
simon lehericey
0a3eb4a909
reinforce preview testing
2022-03-15 11:15:28 +01:00
LeSim
defc9bab41
Merge pull request #7043 from betagouv/main
...
2022-03-15-02
2022-03-15 11:02:13 +01:00
Paul Chavard
968531f45b
Merge pull request #7042 from betagouv/fix_sections
...
quick fix of sections in preview
2022-03-15 10:58:45 +01:00
simon lehericey
44f2d93277
quick fix of sections in preview
2022-03-15 10:54:39 +01:00
Paul Chavard
bd4b2e3d47
Merge pull request #7041 from betagouv/main
...
2022-03-15-01
2022-03-15 10:20:15 +01:00
Paul Chavard
79bb26e4dd
Merge pull request #7024 from tchak/fix-instructeur-show-n+1
...
fix(instructeur): avoid n+1 in instructeur_dossiers#show et user_dossiers#show
2022-03-15 10:12:59 +01:00
Paul Chavard
77c2187747
fix(instructeur): avoid n+1 in instructeur_dossier#show and user_dossier#show
2022-03-15 09:57:54 +01:00
Pierre de La Morinerie
8b1af41273
Merge pull request #6912 from adullact/fix/6870-migration-export-key
...
Correction de la migration 20210402163003_exports_key_not_null
2022-03-15 09:01:16 +01:00
François Vantomme
5d448fd152
fix(export): set a random UUID key before forcing not null
2022-03-15 08:57:39 +01:00
Paul Chavard
31992b1e26
Merge pull request #7022 from tchak/graphql-more-info
...
feat(graphql): expose more dossier informations
2022-03-14 16:10:08 +01:00
Paul Chavard
ec2f2dc78c
feat(graphql): expose more dossier informations
2022-03-14 15:58:02 +01:00
Paul Chavard
14342e72f5
Merge pull request #7026 from tchak/fix-deleted-dossier-no-link
...
Améliorer la vue des dossiers (supprimés) pour les instructeurs
2022-03-14 15:57:30 +01:00
Paul Chavard
0695ea322a
refactor(instructeur): improuve dossiers list view
2022-03-11 14:06:34 +01:00
Paul Chavard
a50d07400e
refactor(instructeur): cleanup destroy / restore routes
2022-03-11 14:06:34 +01:00
Paul Chavard
78bf1147d0
refactor(instructeur): use better fallback location
2022-03-11 13:55:36 +01:00
Paul Chavard
bc4ff661ad
Merge pull request #7023 from tchak/refactor_champ_siblings
...
perf(dossier): memoize champ.sections
2022-03-11 12:26:38 +01:00
Paul Chavard
7c75a25552
Merge pull request #7025 from betagouv/main
...
2022-03-11-01
2022-03-11 12:11:03 +01:00
Paul Chavard
c60a8970f1
perf(dossier): memoize champ.sections on dossier
2022-03-11 00:15:53 +01:00
Pierre de La Morinerie
51af70639b
Merge pull request #6920 from adullact/feature/6878-config-footer
...
Les vues et les traductions de l'app sont maintenant facilement configurables par les instances
2022-03-10 17:35:40 +01:00
François Vantomme
d5cd0101c8
feat(footer): customize using custom views & locales
2022-03-10 17:31:20 +01:00
Paul Chavard
0b4fa6f3c9
Merge pull request #7014 from tchak/feat-deleted-dossiers-scopes
...
Ne plus utiliser Discarded sur les Dossiers et utiliser les bons scopes
2022-03-10 16:28:54 +01:00
Paul Chavard
d3ceba8955
feat(manager): display hidden_by_user_at and hidden_by_administration_at in manager views
2022-03-10 14:29:40 +01:00
Paul Chavard
51d7fd6190
test(dossier): update spec to use visible_by_administration
2022-03-10 14:29:40 +01:00
Paul Chavard
54b559364a
feat(dossier): replace discarded with visible_by_administration
2022-03-10 14:29:40 +01:00
Paul Chavard
59b0f3961d
refactor(dossier): improuve dossiers_count_summary
2022-03-10 14:29:40 +01:00
mfo
7c05a5fdee
Merge pull request #7010 from betagouv/US/doc/privacy-policy-constraints
...
doc(privacy-policy): add privacy policy doc
2022-03-10 10:53:10 +01:00
mfo
e60c515e9b
Merge branch 'main' into US/doc/privacy-policy-constraints
2022-03-10 10:48:45 +01:00
Paul Chavard
475634a854
Merge pull request #7021 from betagouv/main
...
2022-03-10-01
2022-03-10 10:03:50 +01:00
mfo
bb838c8eef
Update doc/PRIVACY-POLICY.md
...
Co-authored-by: LeSim <mail@simon.lehericey.net>
2022-03-10 07:04:37 +01:00
LeSim
aaebcf7121
Merge pull request #7018 from tchak/migration-dossiers-deleted-scopes-fix
...
fix(migration): add with_discarded to seed_hidden_at_dossiers
2022-03-09 18:00:24 +01:00
Paul Chavard
4c567632e5
fix(migration): add with_discarded to seed_hidden_at_dossiers
2022-03-09 17:53:49 +01:00
Paul Chavard
bda6f81528
Merge pull request #7017 from tchak/migration-dossiers-deleted-scopes
...
migrate(dossier): fill hidden_by_administration_at and hidden_by_user_at from hidden_at
2022-03-09 17:47:43 +01:00
Paul Chavard
bcbcd11c42
migrate(dossier): fill hidden_by_administration_at and hidden_by_user_at from hidden_at
2022-03-09 17:41:28 +01:00
LeSim
6ae901fd41
Merge pull request #7016 from betagouv/bump_rails
...
bump rails to 6.1.4.7
2022-03-09 12:48:05 +01:00
simon lehericey
feeb8b691a
bump rails to 6.1.4.7
2022-03-09 10:32:29 +01:00
Pierre de La Morinerie
24b72b23b0
Merge pull request #7015 from betagouv/main
...
2022-03-08-01
2022-03-08 15:25:58 +01:00
Pierre de La Morinerie
24e5450150
Merge pull request #7013 from betagouv/add-procedure-constraint
...
Suppression des AdministrateursProcedure quand une Procedure est supprimée
2022-03-08 15:18:12 +01:00
Pierre de La Morinerie
27edc6676d
db: add foreign key contraint to AdministrateursProcedure
...
In production there are around 20 000 AdministrateursProcedure
records that reference a deleted Procedure.
2022-03-08 14:48:17 +01:00
Pierre de La Morinerie
a4108c7787
db: backport delete_orphans
in recent migrations
...
Recent migrations used ActiveRecord when removing invalid data. This may
break if the ActiveRecord model later changes.
To ensure these migrations will run correctly, even when the code will
have changed, let's use an SQL-based helper instead of ActiveRecord.
2022-03-08 14:48:17 +01:00