Commit graph

20668 commits

Author SHA1 Message Date
Pierre de La Morinerie
9647e2b55c
Merge pull request #6965 from betagouv/fix-flaky-test
Amélioration de la fiabilité du test automatisé "Remplir un dossier"
2022-02-15 15:55:38 +01:00
Pierre de La Morinerie
8786b60285 specs: fix flaky "dossier brouillon" spec
When filling all the champs of a dossier, we skip the "Address"
champ (because it would attempt to request a blocked URL).

But that means the "Yes/No" radio buttons may be under the sticky
bottom bar, and thus not register the click – which makes the test fail.

Fix the issue by manually scrolling to the radio buttons.
2022-02-15 15:04:49 +01:00
Pierre de La Morinerie
c5418e1c52
Merge pull request #6956 from betagouv/dependabot/bundler/puma-5.6.2
Dépendances : mise à jour de `puma` de la v5.5.1 à la v5.6.2
2022-02-15 14:49:59 +01:00
dependabot[bot]
6e11c3445d
chore(deps): bump puma from 5.5.1 to 5.6.2
Bumps [puma](https://github.com/puma/puma) from 5.5.1 to 5.6.2.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v5.5.1...v5.6.2)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-15 13:44:10 +00:00
Pierre de La Morinerie
4f056ab7b1
Merge pull request #6964 from betagouv/main
2022-02-15-03
2022-02-15 14:40:05 +01:00
Pierre de La Morinerie
e9cc87f4b3
Merge pull request #6946 from betagouv/rework-csp
Utilisation des variables d'environnement lors de la déclaration des Content Security Policies (à nouveau)
2022-02-15 12:55:48 +01:00
Pierre de La Morinerie
6fa52e8a5a config: report CSP violations to report-uri 2022-02-15 12:49:52 +01:00
Pierre de La Morinerie
0b2775a1a6 config: add back DS_PROXY_URL to CSP
Otherwise a bunch of "static.demarches-simplifiees.fr" domains would
be missing.
2022-02-15 12:49:52 +01:00
François Vantomme
d5f207d98c refactor(url): use env variables in content security policies 2022-02-15 12:49:52 +01:00
Pierre de La Morinerie
886efd7f26
Merge pull request #6963 from betagouv/fix-operation-queue-error-handling
Javascript : correction de la gestion d'erreur dans OperationQueue.js
2022-02-15 12:34:32 +01:00
Pierre de La Morinerie
50cafc033f js: fix OperationQueue error handling
When an exception is raised, `response.json()` may have been called
already. In that case, when accessing `response.text()` in the error
handler, a "Response.text: Body has already been
consumed." error will be raised.
2022-02-15 12:23:18 +01:00
Pierre de La Morinerie
d7557dfe1b
Merge pull request #6961 from betagouv/main
2022-02-15-02
2022-02-15 12:07:51 +01:00
Paul Chavard
c848fc6d00
Merge pull request #6960 from betagouv/fix-matomo-cookie-domain
Correction du réglage "cookieDomain" de Matomo
2022-02-15 12:03:24 +01:00
Pierre de La Morinerie
90b5e938e3 stats: fix Matomo cookie domains setting
It was exported to the GON as `cookie_domain`, but imported
by the tracking code as `cookieDomain`.
2022-02-15 11:55:24 +01:00
Pierre de La Morinerie
b35df95713
Merge pull request #6958 from betagouv/main
2022-02-15-01
2022-02-15 11:40:55 +01:00
Pierre de La Morinerie
86871bd8ca
Merge pull request #6929 from adullact/feature/6887-openstack-stockage-type
Ajout d'un réglage pour configurer le type de stockage ActiveStorage
2022-02-15 10:38:55 +01:00
François Vantomme
7425a08e74 refactor(openstack): rename STORAGE_TYPE to ACTIVE_STORAGE_SERVICE 2022-02-15 10:34:42 +01:00
François Vantomme
a2c04a80aa refactor(storage): harmonize environment variables
Use STORAGE_TYPE everywhere rather than FOG_ENABLED.
STORAGE_TYPE is more flexible and is the reference variable for
production environment.
2022-02-15 09:40:32 +01:00
Pierre de La Morinerie
cec9aea93e
Merge pull request #6914 from adullact/feature/6871-enable-mailcatcher
Support de MailCatcher dans l'environnement de production
2022-02-15 09:40:02 +01:00
Jon
31996c7d09 chore(smtp): add mailcatcher configuration 2022-02-15 09:34:07 +01:00
Pierre de La Morinerie
cf1f92409c
Merge pull request #6915 from adullact/feature/6872-matomo-domain-config
Configuration du domaine de Matomo
2022-02-15 09:31:06 +01:00
François Vantomme
cc6cb2ea30 feat(matomo): use env variables to set the domain 2022-02-15 09:25:23 +01:00
Pierre de La Morinerie
e7aa29b9b0
Merge pull request #6927 from adullact/feature/6885-deactivate-clamav
Ajout d'un réglage pour pouvoir désactiver ClamAV
2022-02-15 09:21:52 +01:00
Jon
97feca6305 feat(ClamAV): add config to disable clamav usage 2022-02-15 09:15:47 +01:00
Pierre de La Morinerie
628625366b
Merge pull request #6957 from betagouv/dependabot/npm_and_yarn/follow-redirects-1.14.8
chore(deps): bump follow-redirects from 1.14.7 to 1.14.8
2022-02-15 09:13:45 +01:00
dependabot[bot]
b87154027e
chore(deps): bump follow-redirects from 1.14.7 to 1.14.8
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-15 08:02:40 +00:00
Pierre de La Morinerie
2746c2dedf
Merge pull request #6902 from adullact/feature/6860-custom-app-host
Rend l'environnement de développement accessible depuis un hôte autre que localhost:3000
2022-02-15 09:01:59 +01:00
François Vantomme
0758e2d1cf Refactor: use APP_HOST env variable in development env
It prevents exceptions when APP_HOST is custom in development env.

*** ArgumentError Exception: Missing host to link to! Please provide the
   :host parameter, set default_url_options[:host], or set :only_path to
   true
2022-02-15 09:01:38 +01:00
Pierre de La Morinerie
2be40cf432
Merge pull request #6917 from adullact/feature/6874-hide-landing-sections
Masquage de sections de la landing page administration
2022-02-15 08:54:55 +01:00
François Vantomme
ac915494df feat(landing): hide testimonial & users sections 2022-02-15 08:49:23 +01:00
Pierre de La Morinerie
7ac6e0af1b
Merge pull request #6955 from betagouv/fix/6952/message-d-expiration-incorrecte-sur-certains-dossiers-termines
Correction du bandeau indiquant l'expiration du dossier
2022-02-15 08:46:22 +01:00
Martin
f84b69276e fix(expiration_banner.message): miss match when procedure was not expirable ; always showing expiration message 2022-02-11 15:49:37 +01:00
Paul Chavard
d635864d47
Merge pull request #6954 from betagouv/main
2022-02-11-01
2022-02-11 14:02:31 +01:00
Paul Chavard
ea28555376
Merge pull request #6951 from tchak/fix-attestation-templates
Fix attestation templates again
2022-02-11 13:42:22 +01:00
Paul Chavard
fac77d97ef task(attestation_template): reassign_redundant_attestation_templates 2022-02-11 11:30:24 +01:00
Paul Chavard
08030bcdb7 fix(attestation_template): handle attestation changes on procedures without revisions 2022-02-11 11:12:10 +01:00
Paul Chavard
76b1b85fa7 fix(attestation_template): add revision diff support 2022-02-11 08:45:32 +01:00
Paul Chavard
e269077c40 refactor(attestation_template): cleanup relationships 2022-02-11 08:45:32 +01:00
Paul Chavard
88e80e9e32
Merge pull request #6901 from adullact/feature/6859-jwt-token-expiration
[API Entreprise] Ajout du support des jetons JWT sans clé d'expiration
2022-02-10 11:48:39 +01:00
Kara Diaby
0be8be78b5
Merge pull request #6947 from betagouv/main
2022-02-09-01
2022-02-09 15:10:22 +01:00
Kara Diaby
d629901e7f
Merge pull request #6938 from betagouv/feat/6846
Crée les DeletedDossier dans la méthode Dossier.purge_discarded
2022-02-09 14:51:12 +01:00
Kara Diaby
24ff41d2c0 tests 2022-02-09 14:43:36 +01:00
Kara Diaby
a6b2873bfc modify instructeur model 2022-02-09 14:43:36 +01:00
Kara Diaby
0ce61f451e modify dossier model 2022-02-09 14:43:36 +01:00
Kara Diaby
ebd0c711e6 add hidden by reason to dossiers 2022-02-09 14:43:36 +01:00
Pierre de La Morinerie
60b74767ba
Merge pull request #6932 from adullact/feature/6890-openstack-vars-cleanup
OpenStack : utilisation de la variable d'environnement FOG_OPENSTACK_URL
2022-02-09 13:07:06 +01:00
Pierre de La Morinerie
56461c6614 feat(openstack): just use FOG_OPENSTACK_URL
We don't need introducing a new env var for this.
2022-02-09 13:02:43 +01:00
François Vantomme
36f8a582ed feat(openstack): use env variables for base and auth URLs 2022-02-09 13:02:42 +01:00
Pierre de La Morinerie
2b563f55b4
Merge pull request #6931 from adullact/feature/6889-matomo-iframe-config
L'URL de l'iframe Matomo est maintenant configurable
2022-02-09 12:49:41 +01:00
François Vantomme
aebe90a0c4 refactor: use example domains
According to RFC 2606, example domains must be:
example.com, example.net, or example.org
2022-02-09 12:44:13 +01:00