diff --git a/helm/Chart.yaml b/helm/Chart.yaml index fd58eef..aaf7646 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopareceiptpdfnotifier description: Microservice description type: application -version: 0.87.0 -appVersion: 0.12.4 +version: 0.88.0 +appVersion: 0.12.4-1-PAGOPA-2017 dependencies: - name: microservice-chart version: 2.4.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 8673643..99fa01d 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-receipt-pdf-notifier - tag: "0.12.4" + tag: "0.12.4-1-PAGOPA-2017" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 03e4e4e..5e0ef4c 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-receipt-pdf-notifier - tag: "0.12.4" + tag: "0.12.4-1-PAGOPA-2017" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 0b8cbe6..543b6ba 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-receipt-pdf-notifier - tag: "0.12.4" + tag: "0.12.4-1-PAGOPA-2017" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/host.json b/host.json index 4314390..de3b043 100644 --- a/host.json +++ b/host.json @@ -2,7 +2,7 @@ "version": "2.0", "extensionBundle": { "id": "Microsoft.Azure.Functions.ExtensionBundle", - "version": "[2.*, 3.0.0)" + "version": "[4.0.0, 5.0.0)" }, "extensions": { "http": { diff --git a/openapi/openapi-spec.yml b/openapi/openapi-spec.yml index 9409d44..a4954f0 100644 --- a/openapi/openapi-spec.yml +++ b/openapi/openapi-spec.yml @@ -1,6 +1,6 @@ swagger: '2.0' info: - version: 0.12.4 + version: 0.12.4-1-PAGOPA-2017 title: IO API for Public Administration Services contact: name: PagoPA S.p.A. @@ -107,6 +107,7 @@ info: + * A required `subject`: a short description of the topic. @@ -202,6 +203,7 @@ info: + * Headings @@ -286,6 +288,7 @@ info: + 1. Call [getProfile](#operation/getProfile): if the profile does not exist diff --git a/pom.xml b/pom.xml index 42b4eee..bf3eb08 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ it.gov.pagopa.project pagopa-receipt-pdf-notifier - 0.12.4 + 0.12.4-1-PAGOPA-2017 jar pagopa-receipt-pdf-notifier @@ -13,8 +13,8 @@ UTF-8 17 - 1.15.0 - 1.4.2 + 1.27.0 + 3.1.0 com.microsoft.azure-20220215182005862 3.15.3.Final @@ -263,7 +263,7 @@ FUNCTIONS_EXTENSION_VERSION - ~3 + ~4 java-functions-group diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/notifier/NotifierRetry.java b/src/main/java/it/gov/pagopa/receipt/pdf/notifier/NotifierRetry.java index f9debb4..c77470d 100644 --- a/src/main/java/it/gov/pagopa/receipt/pdf/notifier/NotifierRetry.java +++ b/src/main/java/it/gov/pagopa/receipt/pdf/notifier/NotifierRetry.java @@ -43,8 +43,8 @@ public void processNotifierRetry( @CosmosDBOutput( name = "ReceiptOutputDatastore", databaseName = "db", - collectionName = "receipts", - connectionStringSetting = "COSMOS_RECEIPTS_CONN_STRING") + containerName = "receipts", + connection = "COSMOS_RECEIPTS_CONN_STRING") OutputBinding> documentReceipts, final ExecutionContext context ) throws JsonProcessingException { diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/notifier/ReceiptToIO.java b/src/main/java/it/gov/pagopa/receipt/pdf/notifier/ReceiptToIO.java index a302dfd..47293f0 100644 --- a/src/main/java/it/gov/pagopa/receipt/pdf/notifier/ReceiptToIO.java +++ b/src/main/java/it/gov/pagopa/receipt/pdf/notifier/ReceiptToIO.java @@ -70,24 +70,24 @@ public void processReceiptToIO( @CosmosDBTrigger( name = "ReceiptInputDatastore", databaseName = "db", - collectionName = "receipts", - leaseCollectionName = "receipts-leases", - leaseCollectionPrefix = "materialized", - createLeaseCollectionIfNotExists = true, + containerName = "receipts", + leaseContainerName = "receipts-leases", + leaseContainerPrefix = "materialized", + createLeaseContainerIfNotExists = true, maxItemsPerInvocation = 300, - connectionStringSetting = "COSMOS_RECEIPTS_CONN_STRING") + connection = "COSMOS_RECEIPTS_CONN_STRING") List listReceipts, @CosmosDBOutput( name = "ReceiptOutputDatastore", databaseName = "db", - collectionName = "receipts", - connectionStringSetting = "COSMOS_RECEIPTS_CONN_STRING") + containerName = "receipts", + connection = "COSMOS_RECEIPTS_CONN_STRING") OutputBinding> documentReceipts, @CosmosDBOutput( name = "IoMessageDatastore", databaseName = "db", - collectionName = "receipts-io-messages", - connectionStringSetting = "COSMOS_RECEIPTS_CONN_STRING") + containerName = "receipts-io-messages", + connection = "COSMOS_RECEIPTS_CONN_STRING") OutputBinding> documentMessages, final ExecutionContext context ) {