-
Notifications
You must be signed in to change notification settings - Fork 1
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
PIN-5619 clone purpose #1355
base: feature/incaricato
Are you sure you want to change the base?
PIN-5619 clone purpose #1355
Conversation
8a6ed53
to
2b0bc0b
Compare
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.
I see that this functionality still has unresolved doubts in the requirements: https://pagopa.atlassian.net/wiki/spaces/PDNDI/pages/1236959344/SRS+Incaricato#Clonazione-finalit%C3%A0-in-delega
Were these doubts solved?
@@ -1180,6 +1193,21 @@ export function purposeServiceBuilder( | |||
|
|||
const purposeToClone = await retrievePurpose(purposeId, readModelService); | |||
|
|||
const activeConsumerDelegation = purposeToClone.data.delegationId | |||
? await retrieveDelegation( |
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.
If we decide to remove the delegationId
from the purpose model (see Slack thread: https://buildo.slack.com/archives/C07U5M9SJ1Y/p1736783396238289) then here we will need to use one of the other readmodel methods (probably getActiveConsumerDelegationByPurpose
) as done in other functions here
3f5b66f
to
5250562
Compare
aac69c1
to
3995b65
Compare
Based on #1326
Smoke tested as: