Commit graph

14443 commits

Author SHA1 Message Date
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
Paul Chavard
5bfcae1c0f fix(dossiers): show correct count on download button 2022-04-06 17:08:38 +02:00
Paul Chavard
23e2429d0d fix(export): make count argument optional 2022-04-06 17:08:38 +02:00
Paul Chavard
9904dabffe feat(procedure_presentation): pass filters as serialized snapshot 2022-04-06 17:08:38 +02:00
Paul Chavard
e82dc9c8b5 feat(exports): add ability to create exports with filters 2022-04-06 17:08:38 +02:00
Paul Chavard
be1a2f916d feat(exports): add statut and procedure_presentation to exports 2022-04-06 17:08:38 +02:00
mfo
19d07a01d5
Merge pull request #7127 from betagouv/US/allow-email-from-assurance-maladie.fr-to-change-email
fix(users/profil_controller#update): allow people from assurance-maladie.fr to change their email. ⚠️ follow up https://secure.helpscout.net/conversation/1823503820/1969926/
2022-04-06 16:41:24 +02:00
Martin
7c0e8e406b fix(users/profiles#update): allow people from @assurance-maladie.fr to be a target email when user change his email 2022-04-06 16:07:25 +02:00
Paul Chavard
9a3b9e3912
Merge pull request #7114 from tchak/refactor-dossiers-with-procedure-presentation
refactor(procedure_presentation): expose filtered_sorted_ids method
2022-04-05 15:54:39 +02:00
Paul Chavard
ec3ed049ef refactor(procedure_presentation): expose filtered_sorted_ids method 2022-04-05 15:50:53 +02:00
LeSim
be86384125
Merge pull request #7117 from betagouv/remove_duplicate_attestation_part_2
Ajoute un index unique sur attestation dossier_id
2022-04-05 15:46:56 +02:00
simon lehericey
200e8680d5 add uniq index on attestation dossier_id 2022-04-05 15:43:21 +02:00
mfo
4baa9ee43c
Merge pull request #7121 from betagouv/US/retry-once-when-call-to-script-fails
feat(ArchiveUploader.upload_with_chunking_wrapper): expect to retry call to wrapper once
2022-04-05 15:38:30 +02:00
Martin
9e8807d12a feat(ArchiveUploader.upload_with_chunking_wrapper): retry once on error 2022-04-05 15:11:21 +02:00
Martin
c72ba43c55 feat(ArchiveUploader.upload_with_chunking_wrapper): expect to retry call to wrapper once 2022-04-05 15:11:21 +02:00
mfo
8c4c5ed0cf
Merge pull request #7119 from betagouv/US/fix-dossier.processed_in_month-2
fix: missing dossiers from last day of month in archives
2022-04-05 13:57:58 +02:00
Martin
4890530428 fix(Dossier.processed_in_month): recast date to datetime in scope 2022-04-05 13:54:36 +02:00
Martin
9484c4cdf4 fix(Dossier.processed_in_month): using PG between operator with a date does not play nicely when it is compared to DateTime in postgres. meaning given a Date as 2022/03/31, when compared with a DateTime in postgres, the casting of 2022/03/31 to Datetime becomes 2022/03/31 00:00. So we skiped all dossiers from last date in month 2022-04-05 13:54:36 +02:00
mfo
4a6d5a03aa
Merge pull request #7118 from betagouv/US/fix-sorbet
Revert "Merge pull request #7105 from betagouv/US/fix-dossier.processed_in_month"
2022-04-05 13:53:55 +02:00
Martin
c1884f231c Revert "Merge pull request #7105 from betagouv/US/fix-dossier.processed_in_month"
This reverts commit a0e144b9a7, reversing
changes made to 49848bd150.
2022-04-05 13:39:37 +02:00
LeSim
7653fc569e
Merge pull request #7116 from betagouv/remove_duplicate_attestation_part_1
tache pour supprimer les attestations en double
2022-04-05 13:07:30 +02:00
simon lehericey
c00e21adb9 after_party task which removes duplicate attestation 2022-04-05 13:01:32 +02:00
mfo
a0e144b9a7
Merge pull request #7105 from betagouv/US/fix-dossier.processed_in_month
fix(Dossier.processed_in_month): used by ProcedureArchiveService ; until now we skipped all dossiers from last day of month 🌈🍨
2022-04-05 13:00:50 +02:00
Martin
c07e0fc13e fix(Dossier.processed_in_month): ensure proper usage via method sig instead of defensive programming style 2022-04-05 12:14:07 +02:00
Martin
d6d9db9721 tech(Sorbet): prepare usage of sorbet to avoid defensive programming style [casting date to datetime] 2022-04-05 12:14:07 +02:00
Martin
ec78340c06 fix(Dossier.processed_in_month): recast date to datetime in scope 2022-04-05 12:14:07 +02:00
Martin
ab777a790c fix(Dossier.processed_in_month): using PG between operator with a date does not play nicely when it is compared to DateTime in postgres. meaning given a Date as 2022/03/31, when compared with a DateTime in postgres, the casting of 2022/03/31 to Datetime becomes 2022/03/31 00:00. So we skiped all dossiers from last date in month 2022-04-05 12:14:07 +02:00
LeSim
49848bd150
Merge pull request #7111 from betagouv/faster_archive_2
Optimisation de la construction d'archive 2
2022-04-05 12:01:28 +02:00
simon lehericey
bd0b88a410 move create_list_of_attachments 2022-04-05 11:55:14 +02:00
simon lehericey
1f98f75ccc remove unused method 2022-04-05 11:55:14 +02:00
simon lehericey
4c3b9979e9 fix test 2022-04-05 11:55:14 +02:00
simon lehericey
f2fea1f882 faster pjs_for_dossier 2022-04-05 11:55:14 +02:00
simon lehericey
62e0553a4e faster operation logs 2022-04-05 11:55:14 +02:00
simon lehericey
437e871f79 extract operation_logs_and_signatures method 2022-04-05 11:55:14 +02:00
Paul Chavard
9414d499b8
Merge pull request #7102 from tchak/refactor-dossiers-by-statut
Improve dossiers presentation scopes
2022-04-05 09:49:18 +02:00
Paul Chavard
0daae815d8 refactor(dossier): use by_statut 2022-04-05 09:42:23 +02:00
Paul Chavard
6da54936b7 refactor(procedure_presentation): use internal reference to instructeur 2022-04-05 09:42:23 +02:00
Paul Chavard
f71c89aa91 refactor(procedure): cleanup tests 2022-04-05 09:42:23 +02:00
Paul Chavard
706c648be8 refactor(procedure): remove unused code 2022-04-05 09:42:23 +02:00
LeSim
ba79a65015
Merge pull request #7106 from betagouv/remove_old_per_dossier_zip_size_constraints
Supprime la restriction par taille d'export de pjs par dossier
2022-04-04 17:31:04 +02:00
simon lehericey
57f9e5bac3 always allow dossier pjs download (-9 queries) 2022-04-04 17:26:49 +02:00
mfo
c21eac0513
Merge pull request #7109 from betagouv/US/fix-counter-including-discarded-procedures
ETQ instructeur, les compteurs entre la synthese et les procedures ne sont pas synchro
2022-04-04 16:31:47 +02:00
Martin
ad4e5a8bc6 fix(instructeurs/procedures#index): counter not in sync 2022-04-04 16:28:25 +02:00
Martin
1d99e21a27 tech(bug): identify 2022-04-04 16:28:25 +02:00