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

[FEATURE] Permettre la reconciliation d'un organization learner en fonction des paramètre de reconcialitaion prédéfini (PIX-12556) #9249

Merged

Conversation

xav-car
Copy link
Contributor

@xav-car xav-car commented Jun 13, 2024

🦄 Problème

Nous avons un import générique, mais nous n'avons aucun moyen de reconcilier un user à son bon apprenant sur une organisation donnée

🤖 Proposition

Ajouter un endpoint qui permet de réconcilier un utilisateur avec un apprenant d'une organisation

🌈 Remarques

RAS

💯 Pour tester

Ci au vert, le endpoint n'étant pas branché au Front, à moins de faire un CURL le test func ne pourra être fait dans cette PR

@pix-bot-github
Copy link

Une fois les applications déployées, elles seront accessibles via les liens suivants :

Les variables d'environnement seront accessibles via les liens suivants :

@xav-car xav-car force-pushed the pix-12556/add-reconcile-endpoint-common-import branch 3 times, most recently from a2a1fa5 to fb04b8c Compare June 13, 2024 13:19
@lionelB lionelB force-pushed the pix-12556/add-reconcile-endpoint-common-import branch from 6de193b to b0b0a8f Compare June 13, 2024 17:33
@xav-car xav-car force-pushed the pix-12556/add-reconcile-endpoint-common-import branch 2 times, most recently from 78b8aea to b37b838 Compare June 14, 2024 12:54
@xav-car xav-car marked this pull request as ready for review June 14, 2024 12:55
@xav-car xav-car requested a review from a team as a code owner June 14, 2024 12:55
@xav-car xav-car force-pushed the pix-12556/add-reconcile-endpoint-common-import branch 5 times, most recently from 9b7d8d9 to cb652c9 Compare June 14, 2024 14:48
{ key: 'reconcileField1', value: 'Nom apprenant' },
{ key: 'reconcileField2', value: 'catégorie' },
{ key: 'reconcileField3', value: 'Date de naissance' },
],
Copy link
Contributor

Choose a reason for hiding this comment

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

Remarque : Nous pourrions utiliser ici un Objet ReconciliationInfos qui serait un tableau clés/valeurs au lieux d'utiliser le deserializedPayload

Copy link
Contributor

Choose a reason for hiding this comment

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

Je propose qu'on le note en dette technique pour avancer sur le sujet. Est ce que c'est ok ?

@lionelB lionelB force-pushed the pix-12556/add-reconcile-endpoint-common-import branch 6 times, most recently from 65b4a74 to cecc0cd Compare June 20, 2024 18:02
Copy link
Contributor Author

@xav-car xav-car left a comment

Choose a reason for hiding this comment

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

tech ok

@xav-car
Copy link
Contributor Author

xav-car commented Jun 21, 2024

Func ok avec Curl

 curl -H "Accept: application/json" -H "Content-Type: application/json" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxMDAwLCJzb3VyY2UiOiJwaXgiLCJpYXQiOjE3MTg5NzMyODksImV4cCI6MTcxODk3NDQ4OX0.-p_aRulODOxIJitB5MHd8yvgoKwvRZVXvj2jE4ml12Q" \
  -X POST https://app-pr9249.review.pix.fr/api/organization-learners/reconcile -d \
  '{"data":{"attributes":{"campaign-code":"XUQQBK985","reconciliation-infos":{"reconcile-field-1":"Palatujaine","reconcile-field-2":"FEU","reconcile-field-3":"1999-12-12"}}}}'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   171    0     0  100   171      0    149  0:00:01  0:00:01 --:--:--   150

le user connecté admin-orga@example.net et bien réconcilié avec le learner décris par ses reconciliation field

@pix-service-auto-merge pix-service-auto-merge force-pushed the pix-12556/add-reconcile-endpoint-common-import branch from cecc0cd to ae6ba42 Compare June 21, 2024 12:43
@pix-service-auto-merge pix-service-auto-merge merged commit 74e71b1 into dev Jun 21, 2024
6 of 7 checks passed
@pix-service-auto-merge pix-service-auto-merge deleted the pix-12556/add-reconcile-endpoint-common-import branch June 21, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants