From 15edf061a6fdff8ba0440e02d61fa059250c8b61 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Tue, 30 Apr 2024 17:27:03 +0200 Subject: [PATCH 1/6] changed src views --- helm/values-dev.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 814a3b0..9b940f4 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -98,9 +98,9 @@ microservice-chart: RIVERSAMENTO_ENABLED: "true" RIVERSAMENTO_SOURCE: "nexi-oracle" RIVERSAMENTO_TARGET: "nexi-oracle" - CDI_PREFERENCES_VIEW: CDI_PREFERENCES_VIEW + CDI_PREFERENCES_VIEW: CDI_PREFERENCES_VIEW_MASTER CDI_PREFERENCES_TABLE: CDI_PREFERENCES_TABLE - ELENCO_SERVIZI_VIEW: ELENCO_SERVIZI_VIEW + ELENCO_SERVIZI_VIEW: ELENCO_SERVIZI_VIEW_MASTER ELENCO_SERVIZI_TABLE: ELENCO_SERVIZI_TABLE envSecret: # required From 1ebc2c60668371b28bdc41d63becc4b385d045c8 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 30 Apr 2024 15:28:46 +0000 Subject: [PATCH 2/6] Bump to version 0.0.6-1-NOD-866-dev-src [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 0d1953e..8b8c215 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.82.0 -appVersion: 0.0.6 +version: 0.83.0 +appVersion: 0.0.6-1-NOD-866-dev-src dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 9b940f4..8fcf08a 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6" + tag: "0.0.6-1-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 04c8d05..845a6a4 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6" + tag: "0.0.6-1-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 3123971..70c490c 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6" + tag: "0.0.6-1-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 75e1b12..94a3e91 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.6" + "version": "0.0.6-1-NOD-866-dev-src" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 40257a4..f9714d2 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.6 + 0.0.6-1-NOD-866-dev-src Microservice to update configuration schema of Nodo dei Pagamenti From 43a7aea9739a9ce83373c51f9d709636b33224c9 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 6 May 2024 19:45:57 +0200 Subject: [PATCH 3/6] added timezone --- .../it/gov/pagopa/node/cfgsync/Application.java | 14 ++++++++++++++ src/main/resources/application.yaml | 2 ++ src/test/resources/application.yaml | 2 ++ 3 files changed, 18 insertions(+) diff --git a/src/main/java/it/gov/pagopa/node/cfgsync/Application.java b/src/main/java/it/gov/pagopa/node/cfgsync/Application.java index bd1547e..b044901 100644 --- a/src/main/java/it/gov/pagopa/node/cfgsync/Application.java +++ b/src/main/java/it/gov/pagopa/node/cfgsync/Application.java @@ -1,13 +1,27 @@ package it.gov.pagopa.node.cfgsync; import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import javax.annotation.PostConstruct; +import java.util.TimeZone; + @SpringBootApplication @Slf4j public class Application { + + @Value("${timezone}") + private String timezone; + public static void main(String[] args) { SpringApplication.run(Application.class, args); } + + @PostConstruct + public void init(){ + // Setting Spring Boot SetTimeZone + TimeZone.setDefault(TimeZone.getTimeZone(timezone)); + } } diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 5e01ae4..9bb77c0 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -121,6 +121,8 @@ riversamento: source: ${RIVERSAMENTO_SOURCE} target: ${RIVERSAMENTO_TARGET} +timezone: ${TIMEZONE:Europe/Rome} + logging: level: it: diff --git a/src/test/resources/application.yaml b/src/test/resources/application.yaml index 7b52e29..df57d1d 100644 --- a/src/test/resources/application.yaml +++ b/src/test/resources/application.yaml @@ -123,6 +123,8 @@ riversamento: source: pagopa-postgres target: pagopa-postgres +timezone: ${TIMEZONE:Europe/Rome} + logging: level: it: From 40533d03f4eba536960d5d659861e7b29e2d3e81 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 6 May 2024 17:47:51 +0000 Subject: [PATCH 4/6] Bump to version 0.0.6-2-NOD-866-dev-src [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 8b8c215..03949d7 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.83.0 -appVersion: 0.0.6-1-NOD-866-dev-src +version: 0.84.0 +appVersion: 0.0.6-2-NOD-866-dev-src dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 8fcf08a..ea040c8 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6-1-NOD-866-dev-src" + tag: "0.0.6-2-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 845a6a4..03db067 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6-1-NOD-866-dev-src" + tag: "0.0.6-2-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 70c490c..f2e1cf9 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6-1-NOD-866-dev-src" + tag: "0.0.6-2-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index 94a3e91..ef4f472 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.6-1-NOD-866-dev-src" + "version": "0.0.6-2-NOD-866-dev-src" }, "servers": [ { diff --git a/pom.xml b/pom.xml index f9714d2..a052d10 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.6-1-NOD-866-dev-src + 0.0.6-2-NOD-866-dev-src Microservice to update configuration schema of Nodo dei Pagamenti From a4e396b5da14405a0b0f3a4c1a400b6ff6963af1 Mon Sep 17 00:00:00 2001 From: Francesco Cesareo Date: Mon, 6 May 2024 20:11:17 +0200 Subject: [PATCH 5/6] fix consumer group --- src/main/resources/application.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 9bb77c0..5708f4b 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -87,7 +87,7 @@ stand-in-manager: enabled: 'true' sa-connection-string: ${STAND_IN_MANAGER_SA_CONNECTION_STRING} sa-name: standinevents - consumer-group: $Default + consumer-group: nodo-dei-pagamenti-stand-in-sync-rx consumer: ##permette di abilitare/disabilitare il consumer enabled: 'true' @@ -107,7 +107,7 @@ api-config-cache: enabled: 'true' sa-connection-string: ${API_CONFIG_CACHE_SA_CONNECTION_STRING} sa-name: cacheevents - consumer-group: $Default + consumer-group: nodo-dei-pagamenti-cache-sync-rx consumer: ##permette di abilitare/disabilitare il consumer enabled: 'true' From ec9784220d8b1dffcac98f2104046e8aa5d21457 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Mon, 6 May 2024 18:14:48 +0000 Subject: [PATCH 6/6] Bump to version 0.0.6-3-NOD-866-dev-src [skip ci] --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- openapi/openapi.json | 2 +- pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 03949d7..3abf52f 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-node-cfg-sync description: Microservice that sync api-config-cache and standin configuration type: application -version: 0.84.0 -appVersion: 0.0.6-2-NOD-866-dev-src +version: 0.85.0 +appVersion: 0.0.6-3-NOD-866-dev-src dependencies: - name: microservice-chart version: 2.8.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index ea040c8..17423c6 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6-2-NOD-866-dev-src" + tag: "0.0.6-3-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 03db067..eaf5548 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6-2-NOD-866-dev-src" + tag: "0.0.6-3-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index f2e1cf9..ccf4c06 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-node-cfg-sync - tag: "0.0.6-2-NOD-866-dev-src" + tag: "0.0.6-3-NOD-866-dev-src" pullPolicy: Always livenessProbe: httpGet: diff --git a/openapi/openapi.json b/openapi/openapi.json index ef4f472..bc023a4 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "cfg-sync", "description": "Microservice to update configuration schema of Nodo dei Pagamenti", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.0.6-2-NOD-866-dev-src" + "version": "0.0.6-3-NOD-866-dev-src" }, "servers": [ { diff --git a/pom.xml b/pom.xml index a052d10..3dcb3ca 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ it.gov.pagopa.node cfg-sync - 0.0.6-2-NOD-866-dev-src + 0.0.6-3-NOD-866-dev-src Microservice to update configuration schema of Nodo dei Pagamenti