Commit graph

14824 commits

Author SHA1 Message Date
simon lehericey
4bbe2db668 only export safe pj 2022-04-12 12:05:08 +02:00
LeSim
9da44bd913
Merge pull request #7137 from betagouv/faster_pdf
refactor(pdf)!: accélère la génération des pdf (*2 à *4)
2022-04-12 12:01:17 +02:00
simon lehericey
af27af7900 ! instances : prawn does not like svg
win 10% on pdf generation
2022-04-12 11:56:56 +02:00
simon lehericey
ba688a477a small refactor 2022-04-12 11:56:56 +02:00
simon lehericey
2269585188 preload all tdc once for all 2022-04-12 11:56:56 +02:00
simon lehericey
4c0b157383 includes stuff 2022-04-12 11:56:56 +02:00
simon lehericey
2c195e3ce2 extract procedure 2022-04-12 11:56:56 +02:00
simon lehericey
4d3412daf5 batch it 2022-04-12 11:56:56 +02:00
LeSim
ebac71796c
Merge pull request #7143 from betagouv/update_nokogiri
Mise à jour de la dépendance Nokogiri
2022-04-12 11:54:40 +02:00
simon lehericey
5955b1af05 update Nokogiri 2022-04-12 11:50:59 +02:00
LeSim
0a36ed8775
corrige un pb lors d'une fusion d'instructeur dont l'un était référencé par un dossier_operation_log
fix(User.merge): when user have an instructeur having dossier_opertions_logs containing instructeur_id
2022-04-12 11:35:29 +02:00
Martin
e83f5fe475 fix(user.merge): when merging old_user having an instructeur with dossier_operation_logs containing the old_user.instructeur_id, should be able to merge to new instructeur
feat(user.merge): when user have an instructeur having dossier_opertions_logs containing instructeur_id
2022-04-12 11:28:33 +02:00
LeSim
bab0335fc0
Merge pull request #7141 from betagouv/fix_nonce_agent_connect
Ajoute le controle du nonce et du state dans le flow openid d'agent connect
2022-04-12 10:59:38 +02:00
simon lehericey
29dacb4686 remove env dependence in spec 2022-04-11 14:40:02 +02:00
simon lehericey
1dcfb2509f check nonce 2022-04-11 14:40:02 +02:00
simon lehericey
9938586d96 check state 2022-04-11 13:56:27 +02:00
Paul Chavard
98b574b031
Merge pull request #7136 from tchak/refactor-types-de-champ-editor-ts
refactor(type_de_champs): use typescript in type de champs editor
2022-04-08 14:38:23 +02:00
Paul Chavard
2ce9c842a1 refactor(type_de_champs): use typescript in type de champs editor 2022-04-08 14:34:27 +02:00
Paul Chavard
57df2fe693
Merge pull request #7139 from betagouv/main
2022-04-08-01
2022-04-08 14:13:45 +02:00
Paul Chavard
f4c2adbcd6
Merge pull request #7138 from tchak/fix-expiration-dossiers
fix(dossiers): dossier extend_conservation actually works
2022-04-08 13:53:25 +02:00
Paul Chavard
90dd5bc9c5 fix(dossiers): dossier extend_conservation actually works 2022-04-08 13:40:28 +02:00
mfo
ab14acef6c
Merge pull request #7124 from kleph/mina_setup_env
Use the same env vars for setup and deploy
2022-04-08 10:50:31 +02:00
kleph
94fa247d8d Use the same env vars for setup and deploy 2022-04-08 10:45:44 +02:00
LeSim
a1c299464c
Merge pull request #7115 from betagouv/really_faster_list_of_documents
accélere *30  la liste des documents par archive
2022-04-07 13:49:47 +02:00
simon lehericey
4f73c6105f remove duplicate spec 2022-04-07 12:06:13 +02:00
simon lehericey
e2130cc2d3 add witness dossier 2022-04-07 12:06:13 +02:00
simon lehericey
951d964701 clean pj_service test 2022-04-07 12:06:13 +02:00
simon lehericey
e2a54e3ee3 extract bill_ids per batch, and catch them all afterwards to avoid duplicate 2022-04-07 12:06:13 +02:00
simon lehericey
f24f6ee105 extract operation_logs_and_signature from pjs_for_dossiers 2022-04-07 12:06:13 +02:00
simon lehericey
c27d9a01f2 fetch documents by batch to avoid huge memory load 2022-04-07 12:06:13 +02:00
simon lehericey
e1afb35ca2 fetch pjs_for_dossier by dossiers
put all bills in bills folder
2022-04-07 12:06:13 +02:00
simon lehericey
11aedb2dc8 fetch pjs_for_commentaires by dossiers 2022-04-07 12:06:13 +02:00
simon lehericey
5631141a46 fetch pjs_for_champ by dossiers 2022-04-07 12:06:13 +02:00
simon lehericey
34b0578d70 pj_and_path only take dossier id 2022-04-07 12:06:13 +02:00
simon lehericey
7ac1288905 pj_service take a dossier collection ! 2022-04-07 12:06:13 +02:00
simon lehericey
51a6145d96 put dossier_pdf apart 2022-04-07 12:06:13 +02:00
simon lehericey
d5241381eb extract pj_path method 2022-04-07 12:06:13 +02:00
simon lehericey
97443e2ff6 inline create_list_from_dossier into caller 2022-04-07 12:06:13 +02:00
simon lehericey
51b71aaa01 always call create_list_from_dossiers 2022-04-07 12:06:13 +02:00
simon lehericey
cf79e340ef remove unused method 2022-04-07 12:06:13 +02:00
simon lehericey
3f7693ae13 style remove blank line 2022-04-07 12:06:13 +02:00
mfo
a53175241a
Merge pull request #7135 from betagouv/main
2022-04-07-01
2022-04-07 10:44:57 +02:00
mfo
a545e01034
Merge pull request #7133 from betagouv/US/fix-migration-add-reference
fix(migration): apply what strong migration recommends
2022-04-07 10:33:52 +02:00
Martin
f84c7ac5e4 fix(migration): apply what strong migration recommends 2022-04-07 10:25:05 +02:00
mfo
59cddcbfe6
Merge pull request #7130 from tchak/fix-exports-migration
fix(exports): disable strong migration checks because we are operating on a “small” table
2022-04-07 09:48:13 +02:00
Paul Chavard
21945b6df0 fix(exports): disable strong migration checks because we are operating on a “small” table 2022-04-07 09:44:09 +02:00
mfo
84a1276a2f
Merge pull request #7125 from betagouv/US/ETQ-instructeur-quand-je-demande-un-avis-je-veux-la-notif
fix(instructeur/dossiers#create_avis): as an instructeur, when I ask an avis, i hope to be notified when the expert give his avis. ⚠️ follow up https://secure.helpscout.net/conversation/1781498732/1963490?folderId=1653799
2022-04-07 09:09:24 +02:00
Martin
9bac5c65ba feat(instructeurs/dossier#create_avis): only followed dossier receive notifications, so when an instructeur ask for an avis, he follows the dossier
Update app/controllers/concerns/create_avis_concern.rb

Co-authored-by: Paul Chavard <paul.chavard@beta.gouv.fr>

Update spec/controllers/instructeurs/dossiers_controller_spec.rb

Co-authored-by: Paul Chavard <paul.chavard@beta.gouv.fr>
2022-04-07 09:05:23 +02:00
Martin
a9769ae277 fix(instructeur/dossiers#create_avis): as an instructeur, when I ask an avis, i hope to be notified when the expert give his avis 2022-04-07 09:05:23 +02:00
Paul Chavard
5629d99a4a
Merge pull request #7077 from tchak/feat-export-with-filters
feat(exports): add ability to create exports with filters
2022-04-06 17:23:20 +02:00