-
Notifications
You must be signed in to change notification settings - Fork 0
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-5088 Edit logic in createDescriptor #302
PIN-5088 Edit logic in createDescriptor #302
Conversation
clonedDocuments <- Future.traverse(previousDescriptor.docs)(cloneDocument(UUIDSupplier.get(), _)) | ||
eServiceDescriptorSeed = CatalogProcess.EServiceDescriptorSeed( | ||
description = previousDescriptor.description, | ||
audience = Seq(), |
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.
won't this fail for constraint on process?
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.
Interesting! So, since we don't have a default for that, we should decrease the minimum length to 0.
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.
it could be an option, but notice that in that case we need to validate the audience when publishing the descriptor (now it's not required because it is enforced by the spec).
I suppose the audience should not be copied from the previous descriptor?
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.
Update: the constraint is being edited (pagopa/interop-be-monorepo#762)
[To be merged after pagopa/interop-be-monorepo/pull/739]
This pull request is for implementing the new logic inside
createDescriptor
: retrieving previous values and copying documents.