demarches-normaliennes/config/locales
Sébastien Carceles 20136b7ac8
feat(demarche): create and prefill a dossier with POST request (#8233)
* add base controller for public api

* add dossiers controller with basic checks

* create the dossier

* ensure content-type is json

* prefill dossier with given values

* mark a dossier as prefilled

When a dossier is prefilled, it's allowed not to have a user.

Plus, we add a secure token to the dossier, which we will need later to set a
user after sign in / sign up.

* set user as owner of an orphan prefilled dossier

When a visitor comes from the dossier_url answered by the public api,
the dossier is orphan:
- when the user is already authenticated: they become the owner
- when the user is not authenticated: they can sign in / sign up / france_connect
and then they become the owner

So here is the procedure:
- allow to sign in / sign up / france connect when user is unauthenticated
- set dossier ownership when the dossier is orphan
- check dossier ownership when the dossier is not
- redirect to brouillon path when user is signed in and owner

* mark the dossier as prefilled when it's prefilled
(even with a GET request, because it will be useful later on, for
exmample in order to cleanup the unused prefilled dossiers)

* system spec: prefilling dossier with post request
2023-01-03 14:46:10 +01:00
..
dynamics Procédure → Démarche 2018-09-05 15:46:24 +02:00
models correctif(email.sans-confirmation): manque de la maj des traductions des mails sans confirmations 2022-12-26 10:32:19 +01:00
views add folders number for instructor group 2023-01-02 15:43:13 +01:00
active_storage_validations.en.yml models: remove custom code for file size validation message 2021-11-24 10:06:45 +01:00
active_storage_validations.fr.yml models: remove custom code for file size validation message 2021-11-24 10:06:45 +01:00
api_entreprise.en.yml chore(api_entreprise): intercept token expiration for a more contextual frontend message 2022-07-18 09:57:19 +02:00
api_entreprise.fr.yml chore(api_entreprise): intercept token expiration for a more contextual frontend message 2022-07-18 09:57:19 +02:00
api_particulier.en.yml feat(api particulier): add MESRI locales 2021-12-16 16:45:17 +01:00
api_particulier.fr.yml fix(typography): fix quotes 2022-12-01 17:59:11 +01:00
devise.en.yml ajout des traductions pour la demande de mdp 2021-08-26 17:43:00 +02:00
devise.fr.yml ajout des traductions pour la demande de mdp 2021-08-26 17:43:00 +02:00
en.yml feat(demarche): create and prefill a dossier with POST request (#8233) 2023-01-03 14:46:10 +01:00
flipflop.fr.yml Add translations for flipflop 2018-05-22 12:22:07 +02:00
fr.yml feat(demarche): create and prefill a dossier with POST request (#8233) 2023-01-03 14:46:10 +01:00
links.en.yml chore(footer): remove obsolete footer partial & i18n keys 2022-12-05 10:38:16 +01:00
links.fr.yml chore(footer): remove obsolete footer partial & i18n keys 2022-12-05 10:38:16 +01:00
metas.en.yml chore(i18n): translate meta title for main user pages 2022-12-05 10:38:16 +01:00
metas.fr.yml chore(i18n): translate meta title for main user pages 2022-12-05 10:38:16 +01:00
shared.en.yml Merge branch 'main' into feature/add_rna_type_de_champs 2022-10-05 12:38:24 +02:00
shared.fr.yml fix(typography): fix quotes 2022-12-01 17:59:11 +01:00
time_format.en.rb i18n for publication date 2022-10-31 16:12:02 +01:00
time_format.fr.rb i18n for publication date 2022-10-31 16:12:02 +01:00