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

PIN-5088 Edit logic in createDescriptor #302

Merged

Conversation

taglioni-r
Copy link
Contributor

[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.

@taglioni-r taglioni-r changed the title PIN-5088 Edit createDescriptor PIN-5088 Edit logic in createDescriptor Jul 15, 2024
clonedDocuments <- Future.traverse(previousDescriptor.docs)(cloneDocument(UUIDSupplier.get(), _))
eServiceDescriptorSeed = CatalogProcess.EServiceDescriptorSeed(
description = previousDescriptor.description,
audience = Seq(),
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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)

@taglioni-r taglioni-r requested review from galales and AsterITA July 18, 2024 12:35
@taglioni-r taglioni-r changed the base branch from 1.0.x to PIN-5086_edit-create-eservice July 22, 2024 08:56
@taglioni-r taglioni-r merged commit f2145c2 into PIN-5086_edit-create-eservice Jul 22, 2024
4 checks passed
@taglioni-r taglioni-r deleted the PIN-5088_edit-create-descriptor branch July 22, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants