Pierre de La Morinerie
586028d064
Merge pull request #6036 from betagouv/use-rails-6-1-defaults
...
Mise à jour de la configuration Rails pour utiliser les réglages par défaut de Rails 6.1 (#6036 )
2021-04-06 12:49:50 +02:00
Pierre de La Morinerie
42b3ba1e1b
config: migrate all config to Rails 6.1 defaults
2021-04-06 12:12:57 +02:00
Pierre de La Morinerie
ce427784e7
config: enable has_many_inversing
2021-04-06 12:12:57 +02:00
Pierre de La Morinerie
6bc608a821
config: enable most Rails 6.1 defaults
2021-04-06 12:12:57 +02:00
Pierre de La Morinerie
c2ce20d40c
config: form_with now generates local forms by default
...
We can remove the `local: true` parameter, as it is now implied by
default.
2021-04-06 12:12:57 +02:00
Pierre de La Morinerie
b65de3e583
config: make the queue names explicit
...
With Rails 6.1, the default queue is now the global application queue.
We want to retain our custom queues in some cases, so configure them
epxlicitely.
2021-04-06 12:12:57 +02:00
Pierre de La Morinerie
95b6fdf86d
controllers: unload failed avis from dossier
...
This avoid the subsequent dossier update to fail because some Avis
may be invalid.
2021-04-06 12:12:57 +02:00
Pierre de La Morinerie
9096a3885c
specs: fix creating dossiers :en_construction
2021-04-06 12:12:56 +02:00
Pierre de La Morinerie
02743365eb
specs: make build
and create
consistent in downloadable_file_spec
2021-04-06 12:12:56 +02:00
Paul Chavard
233f51e8ca
Merge pull request #6049 from tchak/improuve-title-numbers
...
Show section numbers only if none of sections start with numbers
2021-04-06 11:01:47 +01:00
Paul Chavard
2702660d72
Update app/models/champs/header_section_champ.rb
...
Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2021-04-06 10:45:16 +01:00
Paul Chavard
4feda01b6f
Show section numbers only if none of sections start with numbers
2021-04-06 10:45:16 +01:00
Pierre de La Morinerie
f77285ded6
Merge pull request #6051 from adullact/6050_doc_add_ACCESSIBILITE_URL_to_env.example.optional
...
Ajout d'une variable d'environnement `ACCESSIBILITE_URL` (optionnelle)
2021-04-06 11:41:59 +02:00
Kara Diaby
e6faafa314
Merge pull request #6052 from betagouv/main
...
2021-04-06-01
2021-04-06 11:41:24 +02:00
Fabrice Gangler
6f0b594fc5
doc: add ACCESSIBILITE_URL to env.example.optional file
...
Refs: #6050
2021-04-06 11:33:42 +02:00
Kara Diaby
c152ac0e45
Merge pull request #6041 from betagouv/feat/5813
...
ETQ Admin, je peux ajouter/supprimer des experts notifiables
2021-04-06 10:52:56 +02:00
kara Diaby
2a0c40c25f
add experts_procedures controller
2021-04-06 10:39:25 +02:00
kara Diaby
a8b30c0cdc
add react component (expert view) and block it when the flag is activated
2021-04-06 10:39:24 +02:00
kara Diaby
03fd6eaeea
add react component to invite an expert
2021-04-06 10:39:24 +02:00
kara Diaby
f9e4d9c982
add variable to dossier controller
2021-04-06 10:39:24 +02:00
kara Diaby
436f567067
change create avis concern
2021-04-06 10:39:24 +02:00
kara Diaby
60c06b6d8c
add revoked at to experts_procedures
2021-04-06 10:39:22 +02:00
kara Diaby
d6bed42a3e
add css helper
2021-04-06 10:38:46 +02:00
kara Diaby
8a1cdf31e3
tests
2021-04-06 10:38:46 +02:00
kara Diaby
39d0dd2af1
yml traduction
2021-04-06 10:38:46 +02:00
kara Diaby
62b7d752f9
layout
2021-04-06 10:38:46 +02:00
kara Diaby
5b7b2d4966
change routes
2021-04-06 10:38:46 +02:00
kara Diaby
f4acc83269
change procedures controller
2021-04-06 10:38:46 +02:00
Pierre de La Morinerie
4d00aea7b3
Merge pull request #6045 from betagouv/cleanup-inverse-relationships
...
Nettoyage de la relation inverse Dossier ↔︎ Champs (#6045 )
2021-04-06 10:34:45 +02:00
Pierre de La Morinerie
3499f5af9a
models: remove invalid Dossier ↔︎ Champ inverse relationship
...
`Dossier.champs` is not really an inverse of `Champs.dossier`: when a
Champ record is created, it should not always be added to dossier.champs
(for instance if the champ is private).
NB: this breaks the workaround we added in #3907 to fix the parent
dossier not being touched in some cases (the workaround was to add an
inverse relationship, but we now have to remove it).
The new workaround is to watch for `changed_for_autosave?` on champs.
Unlike `changed?`, `changed_for_autosave?` also detects changes to
attachments. This allows us to touch both `last_champ_updated_at` and
`updated_at` in a single pass.
2021-04-06 10:26:17 +02:00
Pierre de La Morinerie
6eadcf614d
spec: improve the dossier_controller timestamp specs
...
Make the specs clearer, and better test the various timestamps.
2021-04-06 10:26:17 +02:00
Pierre de La Morinerie
fc4d8362dc
models: fix typo in comments
2021-04-06 10:26:17 +02:00
Pierre de La Morinerie
79d6ac18f0
Merge pull request #6048 from tchak/make-export-key-not-null
...
Migration : ajout d'une contrainte 'NOT NULL' sur la colonne exports#key
2021-04-06 09:59:37 +02:00
Paul Chavard
7f3d4a26ad
Make exports#key not-null
2021-04-02 17:42:24 +01:00
Paul Chavard
bc48d7043f
Merge pull request #6047 from betagouv/main
...
2021-04-02-01
2021-04-02 15:46:39 +01:00
Paul Chavard
fc49b7952e
Merge pull request #6046 from tchak/fix-pdf-rendering
...
Améliore le rendu des dossiers en PDF
2021-04-02 15:37:23 +01:00
Paul Chavard
ac17352693
Improuve generated dossier PDF
2021-04-02 14:22:59 +01:00
Paul Chavard
91c84d13b3
Merge pull request #6042 from tchak/improuve-exports
...
Simplify export unicity check and use create_or_find_by
2021-04-02 09:56:29 +02:00
Paul Chavard
fd48b86b7f
Simplify export unicity check and use create_or_find_by
2021-04-01 21:14:16 +01:00
Pierre de La Morinerie
b0e38f366e
Merge pull request #6044 from betagouv/bump_and_remove_mimemagic_deps
...
Maj de rails 6.3.1 et calcxls pour enlever mimemagic dep, maj skylight
2021-04-01 15:12:47 +02:00
simon lehericey
43f0a4ba48
update caxlsx (remove mimemagic dep)
2021-04-01 11:57:16 +02:00
simon lehericey
19bc60c555
update rails to 6.1.3 (remove mimemagic dep)
2021-04-01 11:57:16 +02:00
simon lehericey
f6564ddc66
update skylight
2021-04-01 11:57:16 +02:00
simon lehericey
5b69e087c7
fix sentry test
2021-04-01 11:57:16 +02:00
Pierre de La Morinerie
7edce745eb
Merge pull request #6040 from betagouv/dependabot/npm_and_yarn/y18n-4.0.1
...
Mise à jour de y18n de 4.0.0 à 4.0.1
2021-03-30 19:46:29 +02:00
dependabot[bot]
5e7804d52f
Bump y18n from 4.0.0 to 4.0.1
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 16:16:14 +00:00
Pierre de La Morinerie
ea53566594
Merge pull request #6039 from betagouv/update-accessibilite-link
...
Mise à jour de la déclaration d'accessibilité (#6039 )
2021-03-30 15:59:05 +02:00
Christophe Robillard
dbfc878bf5
supprime la page accessibilité
2021-03-30 15:12:18 +02:00
Christophe Robillard
d89dc785f0
met à jour le lien de bas de page Accessibilité
...
Ce lien pointe désormais vers notre site de documentation
2021-03-30 15:08:20 +02:00
Pierre de La Morinerie
5bc40595c6
Merge pull request #6035 from betagouv/last-part-of-active-storage-migration
...
Base de donnée : ajout d'une contrainte 'not null' sur la colonne `service_name` de la table `active_storage_blobs` (#6035 )
2021-03-30 13:02:39 +02:00