-
Notifications
You must be signed in to change notification settings - Fork 58
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] Ajout de l'API getLegalDocumentStatusByUserId dans legal-document context (PIX-15581) #10786
Merged
pix-service-auto-merge
merged 7 commits into
dev
from
pix-15581-add-api-to-get-legal-document-status
Dec 20, 2024
Merged
[FEATURE] Ajout de l'API getLegalDocumentStatusByUserId dans legal-document context (PIX-15581) #10786
pix-service-auto-merge
merged 7 commits into
dev
from
pix-15581-add-api-to-get-legal-document-status
Dec 20, 2024
Conversation
This file contains 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 : |
0784c49
to
5a8ed3c
Compare
5a8ed3c
to
0791e81
Compare
api/src/legal-documents/infrastructure/repositories/user-acceptance.repository.js
Outdated
Show resolved
Hide resolved
api/src/legal-documents/domain/usecases/get-legal-document-status-by-user-id.usecase.js
Outdated
Show resolved
Hide resolved
lego-technix
approved these changes
Dec 19, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Lu et validé avec succès
EmmanuelleBonnemay
approved these changes
Dec 20, 2024
ebcd76a
to
b64d4f6
Compare
b64d4f6
to
10c267c
Compare
HEYGUL
pushed a commit
that referenced
this pull request
Dec 24, 2024
machestla
pushed a commit
that referenced
this pull request
Feb 3, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Dans le cadre de la nouvelle gestion du versioning des CGUs pour Pix Orga, nous avons besoin d’une API permettant de récupérer l'état d’acceptation d’un document légal pour un utilisateur.
🎁 Proposition
Ajouter une API getLegalDocumentStatusByUserId permettant récupérer le status d'un document légal pour un utilisateur
newLegalDocumentsVersioning
est activé: calculer le status à partir du nouveau modèle de gestion de documents légaux.newLegalDocumentsVersioning
est désactivé: calculer le status à partir des attributs Pix Orga CGU de la tableusers
.Retour de l'API avec un modèle
LegalDocumentStatus
:status
:accepted
,requested
ouupdate-requested
acceptedAt
: date d’acceptation (uniquement si accepted)documentPath
: chemin du document (pour pointer vers la page pix-site du document)🧦 Remarques
databaseBuilder
pourlegal-document-version-user-acceptances
type
etservice
dans le use caseaccept-legal-document-by-user-id
🎅 Pour tester