Commit graph

12498 commits

Author SHA1 Message Date
François Vantomme
cb717aede2 Fix (GraphQL): raise exception when blob is missing
Failures:

  1) API::V2::GraphqlController when authenticated mutations dossierEnvoyerMessage upload error should fail
     Failure/Error: expect(gql_errors).to eq(nil)

       expected: nil
            got: [{:backtrace=>["/usr/local/bundle/ruby/2.7.0/gems/graphql-1.12.5/lib/graphql/backtrace/tracer.rb:64:i...]
2021-05-04 11:26:23 +02:00
Pierre de La Morinerie
691262340d
Merge pull request #6160 from betagouv/dependabot/bundler/rexml-3.2.5
Mise à jour de la dépendance rexml de 3.2.4 à 3.2.5 (#6160)
2021-05-04 09:04:12 +02:00
dependabot[bot]
ea087af5d9
Bump rexml from 3.2.4 to 3.2.5
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.4...v3.2.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-30 20:30:05 +00:00
Paul Chavard
48eb4d9778
Merge pull request #6142 from tchak/enable_brouillon_extend_conservation
Enable brouillon extend conservation
2021-04-30 10:19:22 +02:00
Paul Chavard
88db6fb661 rename en_construction_conservation_extension in conservation_extension 2021-04-29 19:50:30 +02:00
Paul Chavard
b2a867266a Allow users to extend conservation on drafts 2021-04-29 19:50:30 +02:00
Paul Chavard
ba69edffc5 add conservation extension to dossiers 2021-04-29 18:03:57 +02:00
krichtof
5539d5cb8c
Merge pull request #6157 from betagouv/fix_perf_pj
exporte tous les dossiers d'une démarche
genère l'export pdf de chaque dossier uniquement sur demande
2021-04-29 17:44:57 +02:00
Christophe Robillard
3d04221dab generate pdf export for dossier only on demand 2021-04-29 17:30:38 +02:00
Christophe Robillard
f40d96fbd2 Revert "Revert "Export de tous les dossier d'une démarche""
This reverts commit d9a588b52e.
2021-04-29 17:29:47 +02:00
krichtof
533fa903bc
Merge pull request #6155 from betagouv/revert-6059-4978-export-dossiers-proc
Revert "Export de tous les dossier d'une démarche"
2021-04-29 16:16:23 +02:00
krichtof
d9a588b52e
Revert "Export de tous les dossier d'une démarche" 2021-04-29 16:07:18 +02:00
Paul Chavard
4f79c0315d
Merge pull request #6144 from tchak/use-heroicons
replace fontawesome with heroicons
2021-04-29 15:31:58 +02:00
Paul Chavard
69ab7854c2 replace fontawesome with heroicons 2021-04-29 15:20:05 +02:00
Pierre de La Morinerie
aae5f3f0db
Merge pull request #6153 from betagouv/retry-active-storage-jobs-on-transient-error
Les jobs ActiveStorage et ApplicationJob ré-essaient automatiquement plus tard en cas d'erreur réseau (#6153)
2021-04-29 15:18:10 +02:00
Pierre de La Morinerie
2cb6ec7c51 jobs: add more transient errors
These errors occur frequently during interactions with OVH's
ObjectStorage.
2021-04-29 14:08:12 +02:00
Pierre de La Morinerie
fbfe5c3817 jobs: also retry native ActiveStorage's jobs on transient errors 2021-04-29 14:08:12 +02:00
Pierre de La Morinerie
684af77e35 jobs: extract an RetryOnTranscientErrors concern 2021-04-29 14:08:12 +02:00
LeSim
f45a7a83fe
Merge pull request #6131 from betagouv/more_instructeur_show_love
ameloration des perfs instructeur show procedure
2021-04-29 11:55:55 +02:00
simon lehericey
7b94c2de88 remove extra Dossier call in projection 2021-04-29 11:46:00 +02:00
simon lehericey
fd6f110210 do not calculate pagination twice 2021-04-29 11:23:41 +02:00
simon lehericey
22811e1cc2 remove unused kaminari stuff 2021-04-29 11:23:41 +02:00
simon lehericey
db23a853a9 fetch all notification at once 2021-04-29 11:23:41 +02:00
simon lehericey
87bee9d234 set img height and width 2021-04-29 11:23:41 +02:00
simon lehericey
a4e813380a one query for avis count 2021-04-29 11:23:41 +02:00
simon lehericey
5cfb4114ce one query per table 2021-04-29 11:23:41 +02:00
simon lehericey
20fb756097 one less count 2021-04-29 11:23:41 +02:00
simon lehericey
8b73d8804c fetch all exports at once by groupe_instructeurs_ids 2021-04-29 11:23:41 +02:00
simon lehericey
951d4c0025 eager load procedure logo 2021-04-29 11:23:41 +02:00
Paul Chavard
acf078c726
Merge pull request #6096 from tchak/update-and-pin-map-dependencies
Update and pin mapbox-gl
2021-04-28 15:45:13 +02:00
Paul Chavard
f9fb6473b4 geo module is not really accessible :( 2021-04-28 15:34:53 +02:00
Paul Chavard
6e1b4a2067 Update and pin mapbox-gl 2021-04-28 15:34:53 +02:00
Paul Chavard
44b438630c
Merge pull request #6130 from tchak/improuve-multi-select
Improuve ComboMultipleDropdownList style
2021-04-28 15:33:45 +02:00
Paul Chavard
85b907807a Improuve ComboMultipleDropdownList style 2021-04-28 12:54:45 +02:00
krichtof
c6bf29d936
Merge pull request #6059 from betagouv/4978-export-dossiers-proc
archive tous les dossiers d'une démarche
2021-04-28 12:16:21 +02:00
Christophe Robillard
09870c918d prevent race conditions when creating archives 2021-04-28 11:40:58 +02:00
Christophe Robillard
dfbe004122 rename content_type to time_span_type for archives 2021-04-28 11:40:58 +02:00
Christophe Robillard
9134114c2e fix rubocop offenses 2021-04-28 11:40:58 +02:00
Christophe Robillard
aa407d5607 place le cronjob PurgeStaleArchives dans le bon répertoire 2021-04-28 11:40:58 +02:00
Christophe Robillard
8bee53fe77 rend plus robuste la création de l'archive 2021-04-28 11:40:58 +02:00
Christophe Robillard
59a08ad307 affiche quand l'archive a été générée 2021-04-28 11:40:58 +02:00
Christophe Robillard
fa4f6190c4 exporte aussi les démarches archivées 2021-04-28 11:40:58 +02:00
Christophe Robillard
71a5e41e5b add archive_zip_globale feature flag 2021-04-28 11:40:58 +02:00
Christophe Robillard
8b2849408c instructeurs can create and download archives 2021-04-28 11:40:58 +02:00
Christophe Robillard
609a1aa45b add archive creation and purge archives jobs 2021-04-28 11:40:58 +02:00
Christophe Robillard
07cc4fa97f add service to create procedure archive 2021-04-28 11:40:58 +02:00
Christophe Robillard
fba0d78153 generate pdf export inside pieces_justificatives_service 2021-04-28 11:40:58 +02:00
Christophe Robillard
c25f3c79d9 add archive model 2021-04-28 11:40:58 +02:00
Pierre de La Morinerie
959026ca4f
Merge pull request #6139 from betagouv/fix-migration
Correction de la migration des Individuals (#6139)
2021-04-27 17:06:57 +02:00
Pierre de La Morinerie
d1777d8cd6 db: fix migration adding unique index to Individuals 2021-04-27 16:57:46 +02:00