Commit graph

15017 commits

Author SHA1 Message Date
Pierre de La Morinerie
ebb6294682 routes: fix API authentication not to use deprecated columns
Fix a regression introduced by 6849a73aec
2022-03-22 12:11:41 +01:00
LeSim
f685090122
Merge pull request #7033 from adullact/fix/7032-after-party-migrate-revisions
Échec de la tâche AfterParty migrate_revisions
2022-03-22 12:11:17 +01:00
François Vantomme
6a6947c064 fix(after_party): check constant presence before processing
NameError: uninitialized constant TmpDossiersMigrateRevisionsJob

refs: #7032
2022-03-22 12:07:40 +01:00
LeSim
a79a66647b
Merge pull request #7031 from adullact/fix/7030-after-party-dropdown-list
Échec de la tâche AfterParty drop_down_list_options_to_json
2022-03-22 12:06:32 +01:00
François Vantomme
a1354e7996 fix(after_party): rescue from ActiveRecord::ConfigurationError
ActiveRecord::ConfigurationError: Can't join 'TypeDeChamp' to
association named 'drop_down_list'; perhaps you misspelled it?

refs: #7030
2022-03-22 12:02:43 +01:00
Paul Chavard
8799fb4041
Merge pull request #7069 from betagouv/main
2022-03-22-01
2022-03-22 10:22:46 +01:00
Paul Chavard
ddc0876dc5
Merge pull request #7067 from tchak/fix-map-reader
fix(carto): render GeoJSON layers after map style changes
2022-03-22 09:38:16 +01:00
Paul Chavard
af166f5520 fix(carto): render GeoJSON layers after map style changes 2022-03-22 09:26:11 +01:00
Paul Chavard
f033194ffa
Merge pull request #7061 from tchak/fix-notifications
fix(dossiers): mark as read dossier on update_annotations
2022-03-22 09:23:58 +01:00
Paul Chavard
7aacb7565c fix(dossiers): mark as read dossier on update_annotations 2022-03-22 09:19:24 +01:00
Pierre de La Morinerie
b5b33b16ef
Merge pull request #7050 from betagouv/move-users-foreign-keys-part-2
Changement du sens de la relation des Users aux rôles
2022-03-22 08:05:23 +01:00
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
d7f9b4fdf6
Merge pull request #7064 from betagouv/main
2022-03-18-02
2022-03-18 14:52:34 +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
6c18666b7e
Merge pull request #7059 from betagouv/main
2022-03-18-01
2022-03-18 08:54:07 +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
Paul Chavard
a7c406c6f2
Merge pull request #7057 from betagouv/main
2022-03-17-01
2022-03-17 12:17:22 +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
LeSim
c525274770
Merge pull request #7051 from betagouv/main
2022-03-16-01
2022-03-16 15:38:10 +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