Commit graph

7993 commits

Author SHA1 Message Date
Nicolas Bouilleaud
0590cc1e28 Ignore the Procedure.administrateur_id column again
following #3822
2019-05-06 16:19:08 +02:00
Nicolas Bouilleaud
df865e71dc Make sure that there always is at least one administrator per Procedure 2019-05-06 16:19:08 +02:00
Nicolas Bouilleaud
8d84dba3f2 Link to multi-admin settings from the left panel
refs #1626
2019-05-06 16:19:08 +02:00
Nicolas Bouilleaud
3ff0c83485 Add multi-admin UI
refs #1626
2019-05-06 16:19:08 +02:00
Pierre de La Morinerie
07d43d8c2e
Obsolete tasks that triggers errors on a fresh database (#3836)
Suppression de tâches de migration de données obsolètes
2019-05-06 15:17:50 +02:00
maatinito
3cc088e965 Obsolete tasks that triggers errors on a fresh database
20180913161001_add_path_to_procedures.rake
  NoMethodError: undefined method `procedure_path' for #<Procedure:0x00007fffd77aed40>
20181009130216_restore_deleted_dossiers.rake
  ActiveRecord::RecordNotFound: Couldn't find Procedure with 'id'=4860
20181010102500_remove_invite_gestionnaires.rake
  NameError: uninitialized constant InviteGestionnaire
2019-05-06 15:08:42 +02:00
Pierre de La Morinerie
05c9e3e659
[Fix 3827] Champ Pays: la ligne de tirets devrait être grisée (#3828)
Usager : la ligne de séparation dans les menus déroulants de pays n'est plus sélectionnable
2019-05-06 15:08:19 +02:00
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
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
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
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
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
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
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