Christophe Robillard
609a1aa45b
add archive creation and purge archives jobs
2021-04-28 11:40:58 +02:00
Christophe Robillard
07cc4fa97f
add service to create procedure archive
2021-04-28 11:40:58 +02:00
Christophe Robillard
fba0d78153
generate pdf export inside pieces_justificatives_service
2021-04-28 11:40:58 +02:00
Christophe Robillard
c25f3c79d9
add archive model
2021-04-28 11:40:58 +02:00
Pierre de La Morinerie
959026ca4f
Merge pull request #6139 from betagouv/fix-migration
...
Correction de la migration des Individuals (#6139 )
2021-04-27 17:06:57 +02:00
Pierre de La Morinerie
d1777d8cd6
db: fix migration adding unique index to Individuals
2021-04-27 16:57:46 +02:00
Pierre de La Morinerie
02902e2b0e
Merge pull request #6136 from betagouv/add-some-unique-contraints
...
Ajout de contraintes d'unicité sur les tables Invites, Procedures et Individuals (#6136 )
2021-04-27 15:45:34 +02:00
Pierre de La Morinerie
d024b9ab9e
db: add uniqueness constraints
...
Enforce uniqueness constraints at the database level, on:
- Invites,
- Procedures,
- Individuals.
These are the one less likely to have duplicates. A follow-up
PR will contains similar migrations, but more likely to have
existing duplicates that need to be removed.
2021-04-27 15:36:22 +02:00
Pierre de La Morinerie
0cb2162a65
db: fix out-to-date Procedure comments
2021-04-27 15:36:22 +02:00
Paul Chavard
a19c5b3a39
Merge pull request #6137 from betagouv/fix-email-locale
...
views: fix invalid locale name
2021-04-27 15:36:09 +02:00
Pierre de La Morinerie
ac3bc38c75
views: fix invalid locale name
2021-04-27 14:51:00 +02:00
Pierre de La Morinerie
96d3c5d1e3
Merge pull request #6124 from betagouv/nbsp
...
Page "Lien de réinitialisation du mot de passe envoyé" : ajout d'espaces insécables (#6124 )
2021-04-27 14:30:48 +02:00
Pierre de La Morinerie
4a12e973bf
i18n: add unbreakable spaces to reset_link_sent locales
2021-04-27 13:56:57 +02:00
Pierre de La Morinerie
de3a39cb2f
Merge pull request #6134 from betagouv/avoid_huge_n_plus_one_in_dossier_show
...
Instructeur : la page d'un dossier s'affiche plus rapidement (#6134 )
2021-04-27 13:54:35 +02:00
simon lehericey
275b71abac
includes champs: :type_de_champ
2021-04-27 13:45:57 +02:00
Pierre de La Morinerie
ba466f8430
Merge pull request #6129 from betagouv/log-token-errors
...
Ajout d'un message de déboguage en cas de token invalide dans Users::SessionsController (#6129 )
2021-04-27 10:15:33 +02:00
Pierre de La Morinerie
51d6faabee
controllers: log invalid tokens in Users::SessionsController
...
This is an attempt to understand why we have so many of these
errors in production.
2021-04-22 19:23:47 +02:00
Paul Chavard
684fb388d3
Merge pull request #6105 from tchak/remove-feedback
...
Remove user feedback buttons
2021-04-22 16:43:37 +01:00
Paul Chavard
2a068fb9b0
Remove user feedback buttons
2021-04-22 15:40:40 +01:00
Paul Chavard
dc73500d61
Merge pull request #6107 from tchak/refactor-commentaires
...
Remove the link between commentaire and user
2021-04-22 15:32:36 +01:00
Paul Chavard
c20ad5ca17
Remove the link between commentaire and user
2021-04-22 15:10:47 +01:00
LeSim
a640ec1d43
Merge pull request #6122 from betagouv/add-reset-link-page
...
Improve password reset : confirmation page and button in email
2021-04-22 14:33:00 +02:00
Pierre de La Morinerie
360f4be4c9
views: replace link by a round_button in the password reset email
2021-04-22 14:24:15 +02:00
Pierre de La Morinerie
d530b272a1
password: add specific page for reset instructions
2021-04-22 14:24:15 +02:00
Pierre de La Morinerie
fb55c76829
views: cleanup link_sent HTML and CSS
...
This prepares for re-using the CSS in the reset_link_sent page.
2021-04-22 14:24:15 +02:00
LeSim
b973f60379
Merge pull request #6121 from betagouv/easy_instructeur_dossier_show_improvments
...
Ajoute un index sur la colonne etablissement_id de la table exercices
2021-04-22 14:20:30 +02:00
simon lehericey
f542c0876e
Add missing etablissement_id index on exercices table (-600ms)
2021-04-22 14:12:50 +02:00
Paul Chavard
6b08de77e3
Merge pull request #6117 from tchak/show-more-results
...
Improuve commune autocomplete results
2021-04-22 10:16:58 +01:00
Paul Chavard
6836191ca5
Improuve commune autocomplete results
2021-04-22 09:59:21 +01:00
LeSim
d1c241cdbc
Merge pull request #6120 from betagouv/improve_instructeur_show_array
...
Améliore le temps de réponse de la vue d'une procédure par un instructeur
2021-04-22 10:57:26 +02:00
simon lehericey
b20296f8c6
less object (-350)
2021-04-22 10:46:04 +02:00
simon lehericey
553e1d973c
remove old methods
2021-04-22 10:46:04 +02:00
simon lehericey
0c845c937d
use DossierProjectionService
2021-04-22 10:46:04 +02:00
simon lehericey
5bfd4ecbbf
add DossierProjectionService
2021-04-22 10:46:04 +02:00
Kara Diaby
0376ad9564
Merge pull request #6114 from betagouv/display-procedure-link
...
add procedure number and link into admin dashboard (show)
2021-04-21 17:15:49 +02:00
kara Diaby
d5cea74ee9
add procedure number and link into admin dashboard (show)
2021-04-21 17:01:46 +02:00
LeSim
202309da20
Merge pull request #6118 from betagouv/fix-autoloader-warning
...
Fix "Initialization autoloaded the constants ActionText::ContentHelper" warning message
2021-04-21 15:21:35 +02:00
Pierre de La Morinerie
9ad57fde2a
initializers: lazy-load Mailjet gem
...
This fixes an error message on app startup about autoloaded
constants:
> DEPRECATION WARNING: Initialization autoloaded the constants ActionText::ContentHelper and ActionText::TagHelper.
The reason for this error is that the Mailjet gem forces the
immediate loading of `action_mailer`. Which leads to the
following sequence of events:
On app init, when bundler requires all the gems in the Gemfile:
- The Mailjet gem is required,
- It loads `ActionMailer::Base`.
Later, when Rails initializes itself:
- `ActionText` creates an `action_text.helpers` initializer,
- This initializer register hooks to add `ActionText` helpers
when either `action_controller_base` or `action_mailer` are loaded,
- But as `action_mailer` has already been loaded, the hook is trigerred
immediately,
- ActiveSupport::Dependencies notices `ActionText` constants do not
exist yet, auto-load them, and add the constants to
`ActiveSupport::Dependencies.autoloaded_constants`.
And even later, at the end of the Rails initialization process:
- The `:warn_if_autoloaded` initializer is run,
- It notices that `autoloaded_constants` is not empty, and prints the
warning message.
See https://github.com/mailjet/mailjet-gem/issues/213
2021-04-20 15:11:43 +02:00
Pierre de La Morinerie
b96151934e
Merge pull request #6115 from betagouv/dependabot/npm_and_yarn/ssri-6.0.2
...
Dépendances : mise à jour de ssri de 6.0.1 à 6.0.2 (#6115 )
2021-04-20 13:47:28 +02:00
dependabot[bot]
591f7c42c2
Bump ssri from 6.0.1 to 6.0.2
...
Bumps [ssri](https://github.com/npm/ssri ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases )
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md )
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 11:10:27 +00:00
Kara Diaby
c62751d006
Merge pull request #6116 from betagouv/fix-flaky-experts-test
...
spec: fix flaky expert test
2021-04-20 12:53:50 +02:00
Pierre de La Morinerie
7ee29b2190
spec: fix flaky expert test
...
In this test, two Avis are created for each expert:
- one for the original dossier,
- one for the dossier linked to the original dossier.
When we check for a sign-up link, we should do so using the
Avis for the original dossier explicitely.
2021-04-20 12:06:12 +02:00
Pierre de La Morinerie
d264ab3b8e
Merge pull request #6106 from betagouv/improve-password-reset
...
Amélioration de l'interface de ré-inititialisation de mot de passe (#6106 )
2021-04-20 09:52:51 +02:00
Pierre de La Morinerie
8cb7a49dd9
password: add password reset instructions
2021-04-20 09:34:53 +02:00
Pierre de La Morinerie
53fc7386f1
sign_in: fix the procedure preview not being hidden on mobile
2021-04-20 09:34:52 +02:00
Pierre de La Morinerie
85691b9f2e
sign_in: no need to specify password length
2021-04-20 09:34:52 +02:00
Pierre de La Morinerie
6b14420ffa
sign_in: improve "Forgot password?" appearance on mobile
2021-04-20 09:34:52 +02:00
Pierre de La Morinerie
0749d981ab
password: make the "Reset password" button clearer
2021-04-20 09:34:52 +02:00
Pierre de La Morinerie
fffb85987c
app: retain user email on sign-in error
2021-04-20 09:34:52 +02:00
Kara Diaby
8640770a15
Merge branch 'production' into main
2021-04-19 11:13:38 +02:00