demarches-normaliennes/spec
simon lehericey f0b0e7fd9a Switch to usage of zip unix binary to create archive. Also use a dedicated queue for DelayedJob
use dedicated archives queue

As the used disk space will increase, we want a fined grain control

move zip logic in dedicated method

zip

wip

wip

fix(spec): pass spec in green

tech(improvements): avoid File.delete(folder), favor FileUtils.remove_entry_secure which is safer. Also wrap most of code that open file within blocks so it is cleaned when the block ends. Lastly use  attachement.download to avoid big memory pressure [download in chunk, write in chunk] otherwise big file [124>1GO] are loaded in memory. what if we run multiple jobs/download in parallel ?

fix(spec): try to retry with grace

clean(procedure_archive_service_spec.rb): better retry [avoid to rewrite on open file]

lint(things): everything
2021-12-13 16:37:04 +01:00
..
controllers feat (api particulier): add Pole emploi field 2021-12-08 10:36:25 +01:00
factories fix(bulk_messages): destroy bulk messages with procedures 2021-12-09 16:16:40 +01:00
fixtures feat (api particulier): add Pole emploi field 2021-12-08 10:36:25 +01:00
graphql fix(graphql): do not crash if attestation is nil 2021-12-08 13:12:42 +01:00
helpers specs: avoid executing business logic in Procedure factory 2021-11-23 08:07:07 +01:00
jobs specs: minor cleanups 2021-11-23 08:07:07 +01:00
lib Switch to usage of zip unix binary to create archive. Also use a dedicated queue for DelayedJob 2021-12-13 16:37:04 +01:00
mailers feat(UserMailer.france_connect_merge_confirmation): in addition to distance_of_time_in_words, add exact expiration date 2021-11-25 17:34:37 +01:00
middlewares specs: always require rails_helper 2020-03-31 12:48:32 +02:00
models fix(mon_avis_embed_validator): enhance regexp 2021-12-13 14:49:40 +01:00
policies factories: cleanup Administrateur, Instructeur and Expert factories 2021-10-26 12:03:30 +02:00
serializers fix(dossier): use depose_at instead of en_construction_at 2021-12-06 15:49:17 +01:00
services Switch to usage of zip unix binary to create archive. Also use a dedicated queue for DelayedJob 2021-12-13 16:37:04 +01:00
support specs: use Instructeur.bypass_email_login_token in the tests 2021-12-02 08:51:52 +01:00
system small wording fixes 2021-12-08 11:19:30 +01:00
views fix(dossier): use depose_at instead of en_construction_at 2021-12-06 15:49:17 +01:00
rails_helper.rb specs: use Instructeur.bypass_email_login_token in the tests 2021-12-02 08:51:52 +01:00
spec_helper.rb Chore(test): enable rspec only-failures support 2021-04-15 14:17:39 +02:00