Commit graph

14528 commits

Author SHA1 Message Date
Pierre de La Morinerie
fbe0410702 models: fix a typo in a ProcedurePresentation's comment 2022-03-22 07:58:44 +01:00
Pierre de La Morinerie
6849a73aec models: ignore deprecated User columns 2022-03-22 07:58:44 +01:00
Pierre de La Morinerie
31bd05f835 models: inverse the direction of the User role associations 2022-03-22 07:58:44 +01:00
Pierre de La Morinerie
d4da6502ba models: remove double-write callback on User 2022-03-22 07:58:44 +01:00
Pierre de La Morinerie
56edba37bc specs: make the ProcedurePresentation#sorted_ids test more robust
Before the Dossiers were already created in the correct order, so the
sorting wasn't really tested.
2022-03-22 07:58:44 +01:00
mfo
6a67f9c859
Merge pull request #7063 from betagouv/US/drop_old_method_for_archive
feat(archive): drop old feature, enable new way for creating archive (parallel download and use safer zip method [binary])
2022-03-18 14:43:55 +01:00
Martin
98c1fb8abc feat(archive): drop old feature 2022-03-18 14:26:09 +01:00
mfo
f91cf5ab8a
Merge pull request #7058 from betagouv/fix_fd_leak_in_archive_creation
fix(parallel_download_queue): avoid fd leak in archive creation
2022-03-18 08:36:27 +01:00
simon lehericey
31d52d2483 do not open all fd at once 2022-03-17 22:44:53 +01:00
Kara Diaby
b72de3c64d
Merge pull request #7055 from betagouv/feat/7054
ETQ Instructeur, lorsque l'usager a supprimé le dossier de son interface, je ne peux plus lui envoyer de messages
2022-03-17 16:46:43 +01:00
Kara Diaby
8bcdf59778 change commentaire model 2022-03-17 13:57:49 +01:00
Kara Diaby
4bfcf4f9d9 tests 2022-03-17 13:57:49 +01:00
Kara Diaby
eda5f75ec3 modify dossier model 2022-03-17 13:57:49 +01:00
LeSim
294cc8a5b4
Merge pull request #7056 from tchak/fix-carto-ign
Correction des cartes IGN
2022-03-17 12:07:40 +01:00
Paul Chavard
d2e9cb5253 fix(map): remove IGN token 2022-03-17 11:55:20 +01:00
Paul Chavard
31da6178cc refactor(maplibre): improuve type imports 2022-03-17 11:55:20 +01:00
Paul Chavard
0b1fdf88c8
Merge pull request #7052 from tchak/feat-revisions-diffs
Afficher les modifications des formulaires
2022-03-17 10:30:54 +01:00
Paul Chavard
c530399eac feat(procedure): display revisions diffs 2022-03-17 10:26:38 +01:00
Paul Chavard
6d69e153f3 fix(procedure): use non-breaking spaces 2022-03-17 10:26:38 +01:00
Paul Chavard
0cb34028d2 fix(procedure): use size instead of count 2022-03-17 10:26:38 +01:00
mfo
18d1e5cad8
Merge pull request #7039 from adullact/fix/7038-after-party-geo-area
Échec de la tâche AfterParty fix_geo_areas_geometry
2022-03-17 10:14:31 +01:00
François Vantomme
28f9bd62d1 fix(after_party): use find_or_create_by to respect idempotency 2022-03-17 10:10:10 +01:00
LeSim
fc5847803c
Merge pull request #7035 from adullact/fix/7034-after-party-dossier-traitement
Échec de la tâche AfterParty add_traitements_from_dossiers
2022-03-17 10:07:09 +01:00
François Vantomme
021bdd4db6 fix(after_party): use find_or_create_by to respect idempotency
instead of create!
2022-03-17 10:02:43 +01:00
LeSim
9d5db6e276
Merge pull request #7029 from adullact/fix/7028-after-party-process-expired
Échec de la tâche AfterParty process_expired_dossiers_en_construction
2022-03-16 18:15:32 +01:00
François Vantomme
b89541568c fix(after_party): remove APP_ENV condition 2022-03-16 17:56:06 +01:00
François Vantomme
93233be5c9 fix(after_party): add the missing second argument to send_expiration_notices method
ArgumentError: wrong number of arguments (given 1, expected 2)
app/services/expired_dossiers_deletion_service.rb:72:in `send_expiration_notices'
lib/tasks/deployment/20200401123317_process_expired_dossiers_en_construction.rake:11:in `block (2 levels) in <main>'

refs: 7028
2022-03-16 17:56:06 +01:00
LeSim
54289dbcb8
Merge pull request #7053 from betagouv/fix_mention_legal
corrige un lien pointant vers les mentions légales
2022-03-16 17:40:35 +01:00
simon lehericey
885dd52f29 fix mentions legales 2022-03-16 17:15:47 +01:00
mfo
9c0d51d036
Merge pull request #6989 from betagouv/US/archive-with-swift-or-custom-uploader
ETQ qu'instructeur je veux pouvoir télécharger une archive de ma procédure même si elle fait plus de 5Go (et conserver la capacité a chiffré le truc)
2022-03-16 15:06:29 +01:00
Martin
5739150f15 feat(service/archive_uploader): add an archive uploader class to upload files thru a custom script which handle file encryption of massive file (bigger than 4Go)
Update doc/object-storange-and-data-encryption.md

Co-authored-by: LeSim <mail@simon.lehericey.net>

Update app/services/archive_uploader.rb

Co-authored-by: LeSim <mail@simon.lehericey.net>

Update doc/object-storange-and-data-encryption.md

Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>

clean(doc): align document file name and document h1

clean(review): refactore based on various comments

clean(review): refactore based on various comments
2022-03-16 14:56:21 +01:00
Pierre de La Morinerie
377e359908
Merge pull request #7046 from betagouv/strong-migrations
Ajout de strong_migrations (linter automatique des migrations Rails)
2022-03-16 10:52:23 +01:00
Pierre de La Morinerie
21bf4d38cf db: alphabetize schema.rb
This avoids the column order being de-synchronized between different
machines.
2022-03-16 10:30:25 +01:00
Pierre de La Morinerie
2e04435117 gems: add strong_migrations 2022-03-16 10:30:25 +01:00
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
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
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
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