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
Pierre de La Morinerie
e865a894f2
db: add last part of ActiveStorage::Blob migration
...
On DS, we split the ActiveStorage schema migration from Rails 6.1 into two migrations:
1. one for adding the column and filling the data asynchronousely
2. one for marking the column as non-null
This is the second part of this migration: it marks the column as non-null.
2021-03-30 12:54:13 +02:00
Pierre de La Morinerie
b4f8ffb748
Merge pull request #6034 from betagouv/db-cleanup
...
Correction de modifications mineures oubliées lors de mises à jour précédentes de la base de donnée (#6034 )
2021-03-30 12:52:01 +02:00
Pierre de La Morinerie
dd9c3c3fbd
db: fix missing change in schema
2021-03-30 10:46:17 +02:00
Pierre de La Morinerie
798b4a65cc
models: fix db structure comment in etablissement.rb
...
The column is not removed yet, but it is ignored.
2021-03-30 10:45:31 +02:00
LeSim
d9ca8798af
Merge pull request #6033 from betagouv/main
...
2021-03-29-02
2021-03-29 22:38:44 +02:00
LeSim
edbb5c325d
Merge pull request #6031 from betagouv/fix_deployment
...
Répare le déploiement (maj mimemagic et test du fichier i_am_a_webserver)
2021-03-29 18:55:48 +02:00
simon lehericey
5624e87867
add webserver file logic
2021-03-29 18:45:40 +02:00
simon lehericey
c5bcf62d09
update mimemagic
2021-03-29 18:45:40 +02:00
simon lehericey
d8cb52efa8
remove unused debase
2021-03-29 18:45:40 +02:00
Kara Diaby
667880db9e
Merge pull request #6030 from betagouv/main
...
2021-03-29-01
2021-03-29 11:10:57 +02:00
Kara Diaby
95931bea50
Merge pull request #6029 from betagouv/back-avis-btn
...
Ajoute l'onglet avis sur l'interface instructeur
2021-03-29 10:26:14 +02:00
kara Diaby
4fc4e19ee6
Ajoute l'onglet avis sur l'interface instructeur, qui renvoie vers le profil expert
2021-03-27 17:00:19 +01:00
Pierre de La Morinerie
9b9e744fcc
Merge pull request #6022 from tchak/fix-export-n+1
...
Instructeur : amélioration des performances de l'export des dossiers (#6022 )
2021-03-25 19:49:23 +01:00
Paul Chavard
23104f15a4
Fix export n+1 queries
2021-03-25 19:22:12 +01:00
Pierre de La Morinerie
a19107ef7e
Merge pull request #6026 from betagouv/main
2021-03-25 19:17:09 +01:00
Pierre de La Morinerie
c68b20b1d3
Merge pull request #6025 from betagouv/fix-active-storage-migration
...
Correction de la migration ActiveStorage incluse dans le passage à Rails 6.1 (#6025 )
2021-03-25 19:07:18 +01:00
Pierre de La Morinerie
a08c18eb81
db: fix ActiveStorage migration to Rails 6.1
...
1. Executing an `update_all` on a lot of records is slow. Instead we
backfill the column in batches (without locking the table).
2. We can't mark the colum as not-null, because already running
instances still using the old code will not use the service_name
column yet.
A later migration will backfill the remaining data and make the column
non-null.
2021-03-25 18:08:29 +01:00
Pierre de La Morinerie
9f11bbaae1
Merge pull request #6023 from betagouv/main
2021-03-25 15:27:59 +01:00
Pierre de La Morinerie
703f13c34d
Merge pull request #6020 from betagouv/sentry-version-number
...
CI : envoie le tag de version à Sentry (au lieu du SHA1) (#6020 )
2021-03-25 14:57:04 +01:00
Pierre de La Morinerie
1a35ba1906
ci: use the tag (2021-09-12) for Sentry releases
...
Previously the commit sha1 was used, which was harder to read.
2021-03-25 14:47:46 +01:00
Pierre de La Morinerie
d9ff621e4a
Merge pull request #5955 from betagouv/rails-6.1
...
Mise à jour vers Rails 6.1 (#5955 )
2021-03-25 13:32:59 +01:00
Pierre de La Morinerie
f6f013e87f
specs: fix Avis query in specs
2021-03-25 13:24:53 +01:00
Pierre de La Morinerie
3f3d6ae399
controllers: use template:
rather than file:
to render PDFs
...
ActionView now throws an error if a relative path is used with `file:`.
2021-03-25 13:24:53 +01:00
Pierre de La Morinerie
185c74d891
dossier: fix SQL deprecation error
...
ActiveRecord 6.1 disallows passing strings to the `order()` function, to
prevent SQL injections.
Here we know that the order string is safe: `ts_vector` is constant,
and `ts_query` is properly escaped.
Wrap the SQL fragment in Arel.sql to bypass the error.
2021-03-25 13:24:53 +01:00
Pierre de La Morinerie
21356e42b8
specs: remove unused require
2021-03-25 13:24:53 +01:00
Pierre de La Morinerie
305a312815
db: migrate ActiveStorage to Rails 6.1
2021-03-25 13:24:53 +01:00
Pierre de La Morinerie
5990439ab7
app: update code to Rails 6.1
2021-03-25 13:24:53 +01:00
Pierre de La Morinerie
de9fab701a
gems: use Rails 6.1 gems
2021-03-25 13:24:53 +01:00
Pierre de La Morinerie
a7e919c184
Merge pull request #6019 from betagouv/main
2021-03-25 12:54:17 +01:00
Pierre de La Morinerie
66ffbf77a5
Merge pull request #5991 from betagouv/localize-sign-in-form
...
Usagers : traduction de la page `/users/sign_in` en anglais (derrière un feature-flag) (#5991 )
2021-03-25 12:05:36 +01:00
lydiasan
8dce3e5d2a
i18n: localize users/sign_in page
2021-03-25 11:59:05 +01:00
Pierre de La Morinerie
1d18df1d3a
Merge pull request #6018 from betagouv/fix-schema
...
Correction du schéma des experts
2021-03-25 11:54:42 +01:00
kara Diaby
2165b5bcc6
fix tmp expert migrated on schema
2021-03-25 11:48:19 +01:00
Pierre de La Morinerie
07aa588edf
Merge pull request #6002 from betagouv/remove-useless-code-avis-table
...
Nettoyage du code de migration des Experts (#6002 )
2021-03-25 10:12:34 +01:00
kara Diaby
18f89b0d83
adjust tests
2021-03-24 17:47:24 +01:00
kara Diaby
fff6725799
modify api and serializer
2021-03-24 17:47:24 +01:00
kara Diaby
d17fdfec77
modify layout
2021-03-24 17:47:24 +01:00
kara Diaby
2930de1015
remove useless code in models
2021-03-24 17:47:24 +01:00
krichtof
40b1511185
Merge pull request #6017 from betagouv/main
...
2021-03-24-02
2021-03-24 16:58:50 +01:00
kara Diaby
fe7fb882c8
remove useless routes
2021-03-24 16:20:44 +01:00
kara Diaby
71973de17c
remove useless columns from the db
2021-03-24 16:20:44 +01:00
krichtof
8e1569a658
Merge pull request #6016 from betagouv/5493-detect-staging
...
detect staging env
2021-03-24 15:39:39 +01:00
Christophe Robillard
83cf0fa903
detect staging env
2021-03-24 15:30:12 +01:00
Kara Diaby
cddd61a44b
Merge pull request #6015 from betagouv/main
...
2021-03-24-01
2021-03-24 10:02:25 +01:00
Kara Diaby
db7603efb7
Merge branch 'production' into main
2021-03-24 09:51:34 +01:00
Kara Diaby
4abf5cf958
Merge pull request #6014 from betagouv/clean-avis
...
After party task to backfill experts_procedure_id on avis table
2021-03-24 09:42:07 +01:00
kara Diaby
fdc6521d02
After party task to backfill experts_procedure_id on avis table
2021-03-24 09:23:26 +01:00
Pierre de La Morinerie
909f1ba9ac
Merge pull request #6011 from betagouv/display-pdf-export-on-two-columns
...
Export PDF : les valeurs des champs sont maintenant affichés sur deux colonnes (#6011 )
2021-03-23 17:11:33 +01:00
maatinito
a29fb5cc5b
dossier pdf: display form fields in two columns (instead of 2 lines)
...
Identity fields are displayed on two columns, but until now Dossier
fields were displayed on two lines.
This was because of a bug in format_in_2_columns, where the multiple-
lines fields were not handled properly.
This has been fixed a while back by @maatinito, so we can now enable
two-columns formatting even for Dossier fields.
2021-03-23 17:02:52 +01:00