Commit graph

13434 commits

Author SHA1 Message Date
maatinito
2308b3bc5c [Fix 3827] Champ Pays: la ligne de tirets ne devrait pas être selectionnable 2019-05-06 14:55:29 +02:00
Keirua
748adfd3d5
Merge pull request #3838 from Keirua/feat/content-security-policy
Add Content Security Policy test headers
2019-05-06 10:23:44 +02:00
clemkeirua
2ae02a132b Report-Only for tests 2019-05-06 10:07:51 +02:00
clemkeirua
64b858ef19 handle Gon + add report-uri URL 2019-05-06 10:07:51 +02:00
clemkeirua
8582b08a98 add security policy 2019-05-06 10:07:51 +02:00
Paul Chavard
950fa2a025
Merge pull request #3844 from betagouv/dev
2019-05-03-03
2019-05-03 18:36:09 +02:00
Paul Chavard
58c71ddee6
Merge pull request #3841 from tchak/fix-api-entreprise
Exercices and RNA information are optional and should not block the request
2019-05-03 18:31:51 +02:00
Paul Chavard
96b3547788 Exercices and RNA information are optional and should not block the request 2019-05-03 18:23:21 +02:00
Paul Chavard
6f3653702f
Merge pull request #3840 from betagouv/dev
2019-05-03-02
2019-05-03 17:07:50 +02:00
Nicolas Bouilleaud
0ebb2f55eb
Merge pull request #3839 from tchak/fix-jquery-ie11
Update to latest jquery to fix IE11 exception
2019-05-03 16:46:41 +02:00
Paul Chavard
078732e318 Update to latest jquery to fix IE11 exception 2019-05-03 16:34:47 +02:00
Paul Chavard
ec4505af91
Merge pull request #3817 from tchak/clenup-virus-scan
Remove deprecated virus_scan model
2019-05-03 11:50:57 +02:00
Paul Chavard
91f2d7d706 Remove deprecated virus_scan model 2019-05-03 11:07:19 +02:00
Paul Chavard
d0026fc887
Merge pull request #3837 from betagouv/dev
2019-05-03-01
2019-05-03 10:58:16 +02:00
Pierre de La Morinerie
7b835f01fd
Save virus scan status to blob metadata (#3816)
Migration du statut de l'analyse anti-virus vers les objets `ActiveStorage` (plutôt que d'être liés à chaque modèle).
2019-05-02 16:52:56 +02:00
Paul Chavard
d26f736f50 Migrate virus scans to blob metadata 2019-05-02 15:58:09 +02:00
Paul Chavard
6e8b9cf668 Refactor piece_jointe template to avoid repetition 2019-05-02 15:58:09 +02:00
Paul Chavard
f113d108c9 Save virus scan status to blob metadata 2019-05-02 15:58:09 +02:00
Paul Chavard
7e8df41648
Merge pull request #3820 from tchak/update-webpack
Load leaflet from separate chunks
2019-05-02 15:57:47 +02:00
Paul Chavard
d72cead7ff Remove unnecessary uglify options
New options :
terserOptions:
   { output: { ecma: 5, comments: false, ascii_only: true },
     parse: { ecma: 8 },
     compress: { ecma: 5, warnings: false, comparisons: false },
     mangle: { safari10: true } } }
2019-05-02 14:10:48 +02:00
Paul Chavard
2f633b5d23 Load leaflet from a separate chunk 2019-05-02 14:10:48 +02:00
Pierre de La Morinerie
011b575900
Affiche un message d'erreur clair lorsque l'API-Entreprise est indisponible (#3831)
Un message d'erreur clair est affiché lorsque la récupération des informations à partir du n° SIRET est temporairement indisponible
2019-05-02 13:30:32 +02:00
Pierre de La Morinerie
e06e32238c api_entreprise: display a specific error message on network errors 2019-05-02 11:24:38 +02:00
Pierre de La Morinerie
ad4a89f0f6 api_entreprise: raise on network error 2019-05-02 11:24:22 +02:00
Pierre de La Morinerie
7c1c61248e spec: cleanup siret_controller_spec.rb 2019-05-02 11:24:22 +02:00
Pierre de La Morinerie
fd95ea2871 spec: cleanup exercices_adapter_spec 2019-05-02 11:24:22 +02:00
Nicolas Bouilleaud
67158e8660
Merge pull request #3833 from betagouv/add-api-entreprise-feature-flag
Ajout d'un feature-flag pour désactiver l'API INSEE v3
2019-05-02 10:51:15 +02:00
Pierre de La Morinerie
6c8280fba6 api_entreprise: add a feature flag for toggling API INSEE v3 2019-04-30 17:27:58 +02:00
Pierre de La Morinerie
b74fdd3cc8 Revert "Fix API Entreprise call"
This reverts commit 7deb228477.
2019-04-30 17:19:46 +02:00
Pierre de La Morinerie
16f01033ab
Merge pull request #3775 from betagouv/fix-time-estimation-cache-duration
Améliore l'estimation des délais de traitement
2019-04-30 16:28:19 +02:00
Pierre de La Morinerie
54813db0ad dossiers: fix the cache not actually caching
As the expensive `procedure.usual_traitement_time` was called outside of
the cache, the cache was useless.
2019-04-30 15:56:27 +02:00
Pierre de La Morinerie
d855468cb6 dossiers: display the estimate of the entire processing time
Displaying separate estimations for en_construction and en_instruction
doesn't really make sense for the users: they want to know how
long it is going to take overall, not the petty details of our workflow.
2019-04-30 15:56:27 +02:00
Pierre de La Morinerie
10fee7a12b dossiers: decrease estimation cache duration
Some badly outdated data where shown to the users.
2019-04-30 15:56:27 +02:00
Paul Chavard
b5072b4568
Merge pull request #3815 from tchak/better-warning-in-test-mode
Améliorer les avertissements lors du test des démarches
2019-04-30 11:09:45 +02:00
Paul Chavard
1c71355574 Better warnings in test mode 2019-04-30 11:03:24 +02:00
Paul Chavard
4f1a65cd14
Merge pull request #3810 from tchak/create-dropdown-with-default-item
Éviter les erreurs de validation a la création du champ menu déroulant
2019-04-30 11:02:21 +02:00
LeSim
470a90f695
Merge pull request #3830 from betagouv/dev
2019-04-30-01
2019-04-30 10:48:32 +02:00
Paul Chavard
1d67005545 Add a default value for drop_down_list_value to avoid validation error on new type_de_champ 2019-04-30 10:39:27 +02:00
LeSim
66ad1c0961
Merge pull request #3829 from betagouv/fix_apientreprise
Fix API Entreprise call
2019-04-30 10:37:16 +02:00
simon lehericey
7deb228477 Fix API Entreprise call 2019-04-30 10:27:35 +02:00
Nicolas Bouilleaud
0c6b5c63d5
Merge pull request #3826 from betagouv/fix-form-header
sign_in: fix line breaks on form header
2019-04-30 10:17:17 +02:00
Pierre de La Morinerie
9c6aa209c9 sign_in: fix line breaks on form header 2019-04-29 17:59:11 +02:00
Pierre de La Morinerie
3d8cd40f1b
Merge pull request #3825 from betagouv/dev
2019-04-29-01
2019-04-29 17:04:37 +02:00
Pierre de La Morinerie
ae4d74daab
tasks: populate Procedure.administrateurs even for hidden procedures (#3822)
Migration des administrateurs des procédures masquées
2019-04-29 16:51:56 +02:00
Pierre de La Morinerie
8bd1064532 tasks: populate Procedure.administrateurs even for hidden procedures
The previous procedure migration (created in
f7af01e0dc) worked fine, but didn't run
on hidden procedures (due to the default scope).
2019-04-29 16:35:34 +02:00
LeSim
2425647fef
Merge pull request #3824 from betagouv/fix-nearing_end_of_retention-spec
Fix “nearing_end_of_retention” test
2019-04-29 15:49:54 +02:00
Nicolas Bouilleaud
1c2e93ed41 Fix “nearing_end_of_retention” test
The `nearing_end_of_retention` test creates a `just_expired_dossier` “six months ago”, which is 29 Oct 2018. The autumn DST change was on October 28; this is the first time this test runs under these conditions. We workaround the time offset by creating the dossier one hour earlier.

This is technically a workaround, not a fix: the date arithmetics in `nearing_end_of_retention` are probably wrong. It looks like it’s comparing intervals, which seems error-prone, while it should be comparing dates. For now, I’m just making the tests pass.
2019-04-29 15:41:52 +02:00
LeSim
04a2248e4e
Merge pull request #3809 from betagouv/dev
2019-04-23-01
2019-04-23 15:17:29 +02:00
Paul Chavard
d0d8eb34c5
Merge pull request #3808 from betagouv/add_timeout_to_address_api
ApiAdresse: add timeout
2019-04-23 14:48:54 +02:00
simon lehericey
14c3686969 ApiAdresse: add timeout 2019-04-23 14:31:01 +02:00