-
Notifications
You must be signed in to change notification settings - Fork 58
[BUGFIX] Mettre à jour les informations d'une invitation à rejoindre une organisation lors d'un renvoi avec de nouveaux paramètres (PIX-18065) #12528
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
Merged
pix-service-auto-merge
merged 6 commits into
dev
from
pix-18065-update-some-informations-in-organization-invitation
Jun 24, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Une fois les applications déployées, elles seront accessibles via les liens suivants :
Les variables d'environnement seront accessibles via les liens suivants : |
608209d to
187e58e
Compare
P-Jeremy
reviewed
Jun 16, 2025
...ests/team/integration/infrastructure/repositories/organization-invitation.repository.test.js
Outdated
Show resolved
Hide resolved
Contributor
|
Test func ok ✅ |
P-Jeremy
approved these changes
Jun 16, 2025
187e58e to
baff424
Compare
Libouk
reviewed
Jun 20, 2025
...ests/team/integration/infrastructure/repositories/organization-invitation.repository.test.js
Outdated
Show resolved
Hide resolved
Libouk
reviewed
Jun 20, 2025
...ests/team/integration/infrastructure/repositories/organization-invitation.repository.test.js
Outdated
Show resolved
Hide resolved
Libouk
reviewed
Jun 20, 2025
api/tests/team/integration/domain/services/organization-invitation.service.test.js
Outdated
Show resolved
Hide resolved
...ests/team/integration/infrastructure/repositories/organization-invitation.repository.test.js
Outdated
Show resolved
Hide resolved
api/tests/team/integration/domain/services/organization-invitation.service.test.js
Outdated
Show resolved
Hide resolved
api/tests/team/unit/domain/usecases/create-organization-invitation-by-admin.usecase.test.js
Outdated
Show resolved
Hide resolved
api/src/team/domain/services/organization-invitation.service.js
Outdated
Show resolved
Hide resolved
bfaade3 to
70055b3
Compare
2fd2987 to
91e043e
Compare
Contributor
|
Test func toujours OK ✅ 🎉 |
bpetetot
approved these changes
Jun 24, 2025
… integration tests
…ts to integration tests
let reuse the existing locale contained in the invitation
Co-authored-by: LEGO Technix <[email protected]>
…ionInvitation also update role and locale
91e043e to
005dfc7
Compare
pix-service
pushed a commit
that referenced
this pull request
Jun 25, 2025
# [5.143.0](v5.142.0...v5.143.0) (2025-06-25) ### 🚀 Amélioration - [#12604](#12604) Afficher une modale avant de quitter la page de fin de parcours (PIX-18023) - [#12625](#12625) Ajouter un filtre sur l'api maddo pour remonter les dernières participations mise à jour (PIX-18288) - [#12626](#12626) ajouter une route PATCH users/{id} pour enrichir un utilisateur anonyme avec des données d'authentification (Pix-18022) - [#12639](#12639) Détacher les profile-rewards de l'organisation lors de la supression de learner (PIX-18113). - [#12640](#12640) Lister par défaut les feature-toggles. - [#12619](#12619) Repenser l'affichage des niveaux sur la page d'analyse de Pix Orga (PIX-18337) - [#12635](#12635) v2 du module tmp-ia-fonctionnement-debut pour revue PYO ### 🐛 Correction - [#12632](#12632) Corriger une typo dans le message de MER - [#12528](#12528) Mettre à jour les informations d'une invitation à rejoindre une organisation lors d'un renvoie avec de nouveaux paramètres (PIX-18065) - [#12621](#12621) Réparer l'affichage du nombre de tentatives de connexions restantes (PIX-18405) ### 🏗️ Tech - [#12627](#12627) Bump audit-logger dependencies - [#12568](#12568) Montée de version EmberJS pour PixAdmin ### ☕ Autre - [#12638](#12638) Corriger l'exemple de titre de PR
Contributor
|
🎉 This PR is included in version 5.143.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔆 Problème
Lorsqu'on renvoie une invitation à rejoindre une organisation depuis Pix admin, si on met de nouveaux paramètres tels que le rôle et la locale, ceux-ci ne sont pas modifiés par rapport à la première invitation. Et on est alors obliger d’annuler l'invitation puis d’en recréer une autre avec les nouveaux paramètres désirés.
⛱️ Proposition
Modifier la fonction
organizationInvitationService.createOrUpdateOrganizationInvitationpour qu’en cas d’organizationInvitationexistante leroleet lalocalesoient aussi modifiés et pas uniquement la « modificationDate » (updatedAt).Considérations de sécurité
Le choix a été fait de continuer d’utiliser la même fonction
organizationInvitationService.createOrUpdateOrganizationInvitationpour les usecasescreate-organization-invitations,create-organization-invitation-by-adminetresend-organization-invitationplutôt que de définir une nouvelle fonctionorganizationInvitationService.createOrUpdateOrganizationInvitationForAdmin.En effet dupliquer la fonction
organizationInvitationService.createOrUpdateOrganizationInvitationpour lui permettre de modifier leroleet lalocalen’a pas d’intérêt en terme de sécurité puisque la sécurité est réalisée au niveau du usecaseresend-organization-invitationqui ne va pas passer deroleou delocale.🌊 Remarques
RAS
🏄 Pour tester
Tester également le cas de renvoi d’une invitation dans Pix Orga pour vérifier qu’il n’y a pas de régression car le usecase
resend-organization-invitation.usecase.jsa également été modifié.