demarches-normaliennes/spec/services
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
..
administrateur_usage_statistics_service_spec.rb fix tests that now requir an admin user to have a strong password 2020-09-18 11:16:34 +02:00
api_entreprise_service_spec.rb zeitwerk: Api -> API 2021-02-09 13:07:30 +01:00
bill_signature_service_spec.rb WIP 2020-07-07 18:03:56 +02:00
clamav_service_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
commentaire_service_spec.rb active_storage: refactor concerns 2021-03-16 11:49:14 +01:00
dossier_projection_service_spec.rb fix(dossier): use depose_at instead of en_construction_at 2021-12-06 15:49:17 +01:00
dossier_search_service_spec.rb cleanup tests 2021-05-18 11:42:10 +02:00
encryption_service_spec.rb Feat (API Particulier): new encryption service 2021-07-30 11:18:44 +02:00
expired_dossiers_deletion_service_spec.rb fix(spec/lint/review): lint and fix spec of previous commits, also fix based on tchak feedback 2021-12-06 07:05:17 +01:00
france_connect_service_spec.rb disable france connect authentication for admin and instructeurs 2021-02-10 18:13:47 +01:00
geojson_service_spec.rb Remove quartiers prioritaires 2020-04-14 10:29:59 +02:00
instructeurs_import_service_spec.rb tests 2021-06-15 19:36:46 +02:00
ip_service_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
notification_service_spec.rb fetch all notification at once 2021-04-29 11:23:41 +02:00
pieces_justificatives_service_spec.rb tests 2021-10-05 15:00:21 +02:00
procedure_archive_service_spec.rb 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
procedure_export_service_spec.rb feat (api particulier): add Pole emploi field 2021-12-08 10:36:25 +01:00
zxcvbn_service_spec.rb services: cache zxcvbn dictionaries per-thread 2021-10-25 12:04:56 +02:00