Commit graph

10674 commits

Author SHA1 Message Date
Pierre de La Morinerie
179a8b83b4
Merge pull request #5123 from betagouv/disable-turbolinks
Désactivation de Turbolinks
2020-05-13 11:10:09 +02:00
Pierre de La Morinerie
51cb3a04a3 app: fix JS redirection with Turbolinks disabled
When Turbolinks is enabled, a `redirect_to` in a `format: :js` request
will emit code that instructs Turbolinks to navigate to the page.
Turbolinks will then load the redirection target as HTML, and display
it.

But with Turbolinks disabled, the same `redirect_to` will instead
respond with a standard `302: redirect`. `Rails.ajax` will interpret
this redirect as "Please perform the same call again to the redirected
URL, in the same format" – and request our redirection target, but
using `format: :js`.


This breaks the "Publish procedure" button. In that case, we really want
the page to be navigated to. Add an explicit JS redirect, so that the
redirection occurs in HTML.
2020-05-13 11:04:16 +02:00
Pierre de La Morinerie
b5f1d97629 app: disable Turbolinks
Fix #5039
2020-05-13 11:04:16 +02:00
Paul Chavard
d287942e6c
Merge pull request #5141 from tchak/fix-un-archive-when-repasser_en_instruction
Unarchive dossier when repasser_en_instruction
2020-05-12 21:57:14 +02:00
Paul Chavard
dfc004d7bb Unarchive dossier when repasser_en_instruction 2020-05-12 19:05:18 +02:00
Paul Chavard
a0370ac507
Merge pull request #5103 from tchak/update-js
Update javascript dependencies
2020-05-12 18:29:30 +02:00
Paul Chavard
43a1ead1cb fix new prettier defaults 2020-05-12 18:18:37 +02:00
Paul Chavard
02b15e10cf Update javascript dependencies 2020-05-12 18:18:36 +02:00
Paul Chavard
400696bd61
Merge pull request #5139 from betagouv/feat/5137
feat/5137 - Adapt style for Map reader (point, line)
2020-05-12 18:06:58 +02:00
kara Diaby
474521c841 Adapt style for Map reader (point, line) 2020-05-12 17:47:28 +02:00
Paul Chavard
1d6b396d8b
Merge pull request #5132 from betagouv/remove-old-design-tooltips
app: remove tooltips on the old design
2020-05-12 10:44:49 +02:00
Pierre de La Morinerie
82cf9e26e1 app: remove tooltips on the old design
- Tooltips are no longer used anywhere
- They cause an error on app initialisation

Fixes "TypeError: dataAttributes.hasOwnProperty is not a function" error
that we've been seeing recently on Sentry.
2020-05-11 17:26:29 +02:00
krichtof
1e720f7587
Merge pull request #5129 from betagouv/dev
2020-05-11-01
2020-05-11 14:54:21 +02:00
krichtof
92efdafe44
Merge pull request #5127 from betagouv/5125-bug-depot-avis
Corrige l'erreur 404 sur les avis. Permet aux experts de consulter les bilans bdf
2020-05-11 13:14:41 +02:00
Christophe Robillard
aab4bb81ee return bilan bdf csv for expert 2020-05-11 13:05:50 +02:00
Christophe Robillard
cad8245540 fix bilans bdf link 2020-05-11 13:05:50 +02:00
Kara Diaby
649925657d
Merge pull request #5126 from betagouv/feat/5066-1
feat/5066 - import GPX file in browser [Carto]
2020-05-11 12:36:12 +02:00
kara Diaby
1cc04092f4 import GPX file in browser [Carto] 2020-05-11 11:36:36 +02:00
Paul Chavard
1cc9cd0330
Merge pull request #5122 from tchak/batch-feature-api
Add carto import api
2020-05-07 14:01:57 +02:00
Paul Chavard
4f2e504cc2 Add carto import api
takes a FeatureCollection to import and returns an augmented champ FeatureCollection
2020-05-07 12:06:42 +02:00
Paul Chavard
f4677a0907
Merge pull request #5121 from betagouv/5089-fix-collision
#5089 - Fix test aléatoire pour DossierSearchService
2020-05-07 11:31:21 +02:00
clemkeirua
36f381a743 fix flacky test 2020-05-07 10:23:28 +02:00
krichtof
e5a6396174
Merge pull request #5120 from betagouv/5119-export-effectifs
add effectifs in instructeur dossier pdf export
2020-05-06 18:13:24 +02:00
Christophe Robillard
5a27629ee9 add effectifs in instructeur dossier pdf export 2020-05-06 18:01:01 +02:00
krichtof
083a33bd23
Merge pull request #5118 from betagouv/5116-expose-attestations
API expose désormais attestationSocialeAttachment et attestationFiscaleAttachment
2020-05-06 17:42:55 +02:00
Christophe Robillard
10a21f9010 expose attestationSocialeAttachment and attestationFiscaleAttachment 2020-05-06 17:25:04 +02:00
Paul Chavard
b7d511a6e2
Merge pull request #5107 from tchak/map-geo-areas-api
Implement atomic operations on MapEditor
2020-05-06 17:13:42 +02:00
Paul Chavard
05e408225b Implement atomic operations on MapEditor 2020-05-06 16:46:14 +02:00
Paul Chavard
16bd8acea5
Merge pull request #5117 from betagouv/dev
2020-05-06-01
2020-05-06 14:52:54 +02:00
krichtof
d3ea20968e
Merge pull request #5115 from betagouv/5111-jeton-apient-ajour
N'appelle pas api-entreprise si jeton expiré
2020-05-06 11:06:13 +02:00
Christophe Robillard
dba77ec0b8 fix spec with not expired token
and use of `ApiEntrepriseToken#roles`
2020-05-06 10:57:45 +02:00
Christophe Robillard
dbf04dd0d8 make api entreprise call only if token not expired 2020-05-06 10:57:45 +02:00
Christophe Robillard
f587e6600a extract class ApiEntrepriseToken
and check if token is expired
2020-05-06 10:57:45 +02:00
Keirua
132cfcb6c3
Merge pull request #5108 from betagouv/improve-pdf
PDF vide - Ajout de descriptions manquantes
2020-05-05 21:01:50 +02:00
clemkeirua
088e08ff55 descriptions sur tous les types de champs 2020-05-05 20:50:39 +02:00
clemkeirua
f8519a6920 ajout des descriptions - cas general 2020-05-05 20:50:39 +02:00
clemkeirua
7065accf64 ajout du descriptif de procedure dans le pdf 2020-05-05 20:50:39 +02:00
Paul Chavard
c556a684f3
Merge pull request #5112 from tchak/fix-invalid-geometry
Fix a crash in case of invalid geometry
2020-05-05 16:06:01 +02:00
Paul Chavard
6556df2a85 Fix a crash in case of invalid geometry 2020-05-05 15:56:05 +02:00
Keirua
a1b32ae419
Merge pull request #5110 from betagouv/bump-postgres-circleci
Update circle CI postgres version
2020-05-05 13:57:11 +02:00
clemkeirua
3583fac058 update circle CI postgres version 2020-05-05 13:47:08 +02:00
Keirua
1d76cf9c32
Merge pull request #5114 from tchak/fix-dossiers-expiration-tests
Use a “safe” reference date in expiration tests
2020-05-05 13:46:33 +02:00
Paul Chavard
4299c9dbea Use a “safe” reference date in expiration tests 2020-05-05 12:41:45 +02:00
krichtof
ee46f67fb0
Merge pull request #5106 from betagouv/dev
2020-04-30-01
2020-04-30 17:38:49 +02:00
krichtof
c992eb654d
Merge pull request #5104 from betagouv/fix-vue-identite-entreprise
fix identite entreprise view
2020-04-30 17:08:14 +02:00
Christophe Robillard
733e282e76 fix identite entreprise view 2020-04-30 16:53:33 +02:00
krichtof
25e06feb98
Merge pull request #5100 from betagouv/5088-bilans-bdf
[5088] instructeurs : affiche les bilans bdf sous forme de csv
2020-04-30 16:23:15 +02:00
Christophe Robillard
9de2c7c85a improve csv generation for bilans bdf 2020-04-30 16:15:16 +02:00
Christophe Robillard
9873826dd4 remove date computed column
we will add it when more info of business
2020-04-30 16:15:16 +02:00
Christophe Robillard
22e2c2e133 render csv bidf bilans 2020-04-30 16:15:16 +02:00