(Translated by https://www.hiragana.jp/)
API Particulier: remove responsable de traitement, add contact metier by skelz0r · Pull Request #327 · etalab/data_pass · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Particulier: remove responsable de traitement, add contact metier #327

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

skelz0r
Copy link
Member

@skelz0r skelz0r commented Aug 2, 2024

Screenshot 2024-09-06 at 18 45 15

A quoi ressemblera le texte de l'événement de mise à jour global --^

Modifiable ici: https://github.com/etalab/data_pass/blob/api-particulier/remove-respo-traitement/db/migrate/20240906162647_create_mass_update_for_api_particulier_on_contact_metier.rb#L22

Screenshot 2024-09-19 at 19 20 38

La modal affichée aux demandeurs --^

@skelz0r skelz0r self-assigned this Aug 2, 2024
@skelz0r skelz0r force-pushed the api-particulier/remove-respo-traitement branch 2 times, most recently from 68db164 to 20171ac Compare August 2, 2024 16:35
@skelz0r skelz0r force-pushed the api-particulier/remove-respo-traitement branch from 20171ac to 995f7be Compare August 5, 2024 12:57
@skelz0r skelz0r marked this pull request as draft August 5, 2024 15:01
@skelz0r
Copy link
Member Author

skelz0r commented Aug 5, 2024

Je passe en draft car ce n'est pas clair ce qui doit être fait ici. A priori il faut introduire un contact métier pour remplacer, mais il manque des infos sur les données historiques.

Plus d'infos ici: https://mattermost.incubateur.net/betagouv/pl/jur4gxfp9jysty6johgd4bcsxo

@skelz0r
Copy link
Member Author

skelz0r commented Aug 12, 2024

On migre le responsable de traitement en contact métier.

@skelz0r skelz0r changed the title API Particulier: remove responsable de traitement API Particulier: remove responsable de traitement, add contact metier Aug 12, 2024
@skelz0r skelz0r force-pushed the api-particulier/remove-respo-traitement branch 2 times, most recently from bd9715e to ca94817 Compare August 12, 2024 15:29
@skelz0r skelz0r marked this pull request as ready for review August 12, 2024 15:30
@skelz0r
Copy link
Member Author

skelz0r commented Aug 12, 2024

Le commit important ca94817

@skelz0r
Copy link
Member Author

skelz0r commented Aug 13, 2024

Je me demande si on ne devrait pas faire un event d'explication aussi pour l'historique, wdyt @JeSuisUnCaillou ?

@JeSuisUnCaillou
Copy link
Contributor

Je me demande si on ne devrait pas faire un event d'explication aussi pour l'historique, wdyt @JeSuisUnCaillou ?

Un event qui décrit le transfert des infos d'un responsable_traitement vers un contact_metier c'est ça ?
Bof, j'en vois pas tellement l'utilité. T'imagines qu'on en aurait quel usage éventuel ?

Copy link
Contributor

@JeSuisUnCaillou JeSuisUnCaillou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pour moi c'est go

@skelz0r
Copy link
Member Author

skelz0r commented Aug 13, 2024

Je me demande si on ne devrait pas faire un event d'explication aussi pour l'historique, wdyt @JeSuisUnCaillou ?

Un event qui décrit le transfert des infos d'un responsable_traitement vers un contact_metier c'est ça ? Bof, j'en vois pas tellement l'utilité. T'imagines qu'on en aurait quel usage éventuel ?

Historiser les changements. Ça donnerait du contexte pour l'instructeur, et des potentiels explications pour le demandeur (quand on affichera l'historique (pourquoi c'est pas fait d'ailleurs ..?))

@skelz0r
Copy link
Member Author

skelz0r commented Aug 13, 2024

Un event genre mass_update qui est lié à une AuthorizationDefinition

@JeSuisUnCaillou
Copy link
Contributor

Qui va se rendre compte de la différence entre contact métier et responsable traitement ? Pour moi c'est du zèle, mais enjoy doing it :D

@skelz0r
Copy link
Member Author

skelz0r commented Aug 13, 2024

Qui va se rendre compte de la différence entre contact métier et responsable traitement ? Pour moi c'est du zèle, mais enjoy doing it :D

En règle générale je suis d'accord, sauf que là on parle d'habilitations juridiques entre plusieurs administrations, je ne suis pas sûr qu'on puisse faire ça en mode yolo non plus.

@JeSuisUnCaillou
Copy link
Contributor

Qui va se rendre compte de la différence entre contact métier et responsable traitement ? Pour moi c'est du zèle, mais enjoy doing it :D

En règle générale je suis d'accord, sauf que là on parle d'habilitations juridiques entre plusieurs administrations, je ne suis pas sûr qu'on puisse faire ça en mode yolo non plus.

Je pense que ça se yolo bien, mais encore une fois, enjoy doing it, j'y vois pas d'inconvénient.

@skelz0r
Copy link
Member Author

skelz0r commented Aug 13, 2024

Je pense que ça va attendre le retour de Nicolas ou Vincent ici.

@skelz0r
Copy link
Member Author

skelz0r commented Aug 13, 2024

(Je repasse en draft)

@skelz0r skelz0r marked this pull request as draft August 13, 2024 09:27
@SchweisguthN
Copy link
Contributor

@skelz0r Pour moi RT et contact métier sont 2 choses différentes. Je suis pas ultra fan de passer les coordonnées du RT dans "contact métier" pour l'historique, puisque ça n'est pas un contact métier. Je serais plus pour dire qu'on n'affiche plus les coordonnées du RT sur ces habilitations, mais le problème est plutôt : est-ce que ces habilitations peuvent exister sans contact métier renseigné.

Copy link
Contributor

@JeSuisUnCaillou JeSuisUnCaillou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few comments

@skelz0r skelz0r force-pushed the api-particulier/remove-respo-traitement branch from 7d1c56e to 3f0eb81 Compare September 20, 2024 09:35
@skelz0r
Copy link
Member Author

skelz0r commented Sep 20, 2024

@JeSuisUnCaillou c'est BULK rename c'est bon :D

Copy link
Contributor

@JeSuisUnCaillou JeSuisUnCaillou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est bon pour moi

@skelz0r
Copy link
Member Author

skelz0r commented Sep 20, 2024

Je vais merge/deploy ça post migration d'HubEE.

This is a really common contact for a lot of authorizations
Will be introduced for API Particulier in a next commit
Migrate keys from responsable traitement to contact metier.
This migration should be really fast thanks to mass update. It skips
ActiveRecord validations as well (thanks to SQL query)

Here a script to test in local: https://gist.github.com/skelz0r/319fba9b9160f054873142ea55db02ff
All alerts are within this view, simplify by moving this lonely alert
Add created_at, can be use within views
* Can use layout multiple times
* Can trigger on load the modal
On the first visit post bulk update on authorization requests, the
system displays a modal to inform applicant (only, not other users)
to the changes.
@skelz0r skelz0r force-pushed the api-particulier/remove-respo-traitement branch from 3f0eb81 to ab0c561 Compare September 21, 2024 08:18
@JeSuisUnCaillou
Copy link
Contributor

Ping sur cette PR, elle devient quoi ?

@skelz0r
Copy link
Member Author

skelz0r commented Oct 21, 2024

ah oui faut la mettre en prod celle-ci

@JeSuisUnCaillou
Copy link
Contributor

ah oui faut la mettre en prod celle-ci

Ca veut dire que tu t'en charges ?

@skelz0r
Copy link
Member Author

skelz0r commented Oct 21, 2024

Oui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants