Skip to content

Commit

Permalink
Merge pull request #32 from pagopa/PPANTT-120-station-maintenances-apis
Browse files Browse the repository at this point in the history
[PPANTT-120] feat: Implement Station Maintenances' APIs
  • Loading branch information
svariant authored Sep 19, 2024
2 parents 18721d3 + 537567f commit 05a99e4
Show file tree
Hide file tree
Showing 32 changed files with 2,341 additions and 115 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
sonar_token: ${{ secrets.SONAR_TOKEN }}
project_key: ${{env.PROJECT_KEY}}
coverage_exclusions: "**/config/*,**/*Mock*,**/model/**,**/entities/*"
coverage_exclusions: "**/config/*,**/*Mock*,**/model/**,**/entities/*,**/util/**"
cpd_exclusions: "**/model/**,**/entities/*"
java_version: 17

Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ Start the springboot application with this command:

👀 You need to put in your local environment some variables

| VARIABLE | USAGE | DEFAULT VALUE |
|--------------------------------|---------------------------------------------|:-----------------:|
| `MONGODB_CONNECTION_URI` | Connection string to the Backoffice MongoDB | |
| `MONGODB_NAME` | Name of the Backoffice MongoDB | pagopaBackoffice |
| VARIABLE | USAGE | DEFAULT VALUE |
|-----------------------------------------|---------------------------------------------|:----------------:|
| `MONGODB_CONNECTION_URI` | Connection string to the Backoffice MongoDB | |
| `MONGODB_NAME` | Name of the Backoffice MongoDB | pagopaBackoffice |
| `PAGOPA_APIM_API_CONFIG_API_KEY_PAGOPA` | APIM Key to connect to Api-config | |

### Spring Profiles

Expand Down
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: pagopa-afm-calculator
description: Microservice that handles calculation for pagoPA Advanced Fees Management
type: application
version: 0.39.0
appVersion: 1.4.2
version: 0.40.0
appVersion: 1.4.2-1-PPANTT-120-station-maintenances-apis
dependencies:
- name: microservice-chart
version: 2.8.0
Expand Down
4 changes: 3 additions & 1 deletion helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: "backoffice-external"
image:
repository: ghcr.io/pagopa/pagopa-backoffice-external
tag: "1.4.2"
tag: "1.4.2-1-PPANTT-120-station-maintenances-apis"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -64,6 +64,7 @@ microservice-chart:
envConfig:
WEBSITE_SITE_NAME: 'pagopa-backoffice-external' # required to show cloud role name in application insights
ENV: 'azure-dev'
PAGOPA_APIM_SERVICE_URL: https://api.dev.platform.pagopa.it
APP_LOGGING_LEVEL: 'DEBUG'
DEFAULT_LOGGING_LEVEL: 'INFO'
CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}'
Expand All @@ -77,6 +78,7 @@ microservice-chart:
envSecret:
# required
MONGODB_CONNECTION_URI: cosmodbmongo-d-bopagopa-connection-string
PAGOPA_APIM_API_CONFIG_API_KEY_PAGOPA: pagopa-d-apim-api-config-key
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-d-connection-string'
OTEL_EXPORTER_OTLP_HEADERS: elastic-apm-secret-token
keyvault:
Expand Down
4 changes: 3 additions & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: "backoffice-external"
image:
repository: ghcr.io/pagopa/pagopa-backoffice-external
tag: "1.4.2"
tag: "1.4.2-1-PPANTT-120-station-maintenances-apis"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -64,6 +64,7 @@ microservice-chart:
envConfig:
WEBSITE_SITE_NAME: 'pagopa-backoffice-external' # required to show cloud role name in application insights
ENV: 'azure-prod'
PAGOPA_APIM_SERVICE_URL: https://api.platform.pagopa.it
APP_LOGGING_LEVEL: 'INFO'
DEFAULT_LOGGING_LEVEL: 'INFO'
CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}'
Expand All @@ -78,6 +79,7 @@ microservice-chart:
envSecret:
# required
MONGODB_CONNECTION_URI: cosmodbmongo-p-bopagopa-connection-string
PAGOPA_APIM_API_CONFIG_API_KEY_PAGOPA: pagopa-p-apim-api-config-key
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-p-connection-string'
OTEL_EXPORTER_OTLP_HEADERS: elastic-apm-secret-token
keyvault:
Expand Down
4 changes: 3 additions & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: "backoffice-external"
image:
repository: ghcr.io/pagopa/pagopa-backoffice-external
tag: "1.4.2"
tag: "1.4.2-1-PPANTT-120-station-maintenances-apis"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down Expand Up @@ -64,6 +64,7 @@ microservice-chart:
envConfig:
WEBSITE_SITE_NAME: 'pagopa-backoffice-external' # required to show cloud role name in application insights
ENV: 'azure-uat'
PAGOPA_APIM_SERVICE_URL: https://api.uat.platform.pagopa.it
APP_LOGGING_LEVEL: 'DEBUG'
DEFAULT_LOGGING_LEVEL: 'INFO'
CORS_CONFIGURATION: '{"origins": ["*"], "methods": ["*"]}'
Expand All @@ -77,6 +78,7 @@ microservice-chart:
envSecret:
# required
MONGODB_CONNECTION_URI: cosmodbmongo-u-bopagopa-connection-string
PAGOPA_APIM_API_CONFIG_API_KEY_PAGOPA: pagopa-u-apim-api-config-key
APPLICATIONINSIGHTS_CONNECTION_STRING: 'ai-u-connection-string'
OTEL_EXPORTER_OTLP_HEADERS: elastic-apm-secret-token
keyvault:
Expand Down
Loading

0 comments on commit 05a99e4

Please sign in to comment.