Skip to content

Commit

Permalink
Merge pull request #9 from pagopa/PAGOPA-2619-FDR1-recovery-blob
Browse files Browse the repository at this point in the history
feat: [PAGOPA-2619] - HTTP recovery function
  • Loading branch information
alessio-acitelli authored Feb 26, 2025
2 parents f0dccae + 78172ee commit 9c811f3
Show file tree
Hide file tree
Showing 16 changed files with 965 additions and 251 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
with:
configuration-path: '.github/auto_assign.yml'


check_labels:
name: Check Required Labels
# The type of runner that the job will run on
Expand All @@ -41,9 +42,28 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const script = require('./.github/workflows/github_scripts/check_required_labels.js')
script({github, context, core})
var comments = await github.rest.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo
});
for (const comment of comments.data) {
if (comment.body.includes('This pull request does not contain a valid label')){
github.rest.issues.deleteComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: comment.id
})
}
}
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'This pull request does not contain a valid label. Please add one of the following labels: `[major, minor, patch, patch, skip]`'
})
core.setFailed('Missing required labels')
formatter:
name: Formatter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
sonar_token: ${{ secrets.SONAR_TOKEN }}
project_key: ${{env.PROJECT_KEY}}
java_version: 17
coverage_exclusions: "**/config/*,**/*Mock*,**/models/**,**/clients/model/**,**/entity/*,**/exception/**,**/App.java"
coverage_exclusions: "**/config/*,**/*Mock*,**/models/**,**/clients/model/**,**/entity/*,**/exception/**,**/App.java,**/wrapper/BlobServiceClientWrapperImpl.java"
cpd_exclusions: "**/models/**,**/clients/model/**,**/entity/*"
coverage_report_path: "./target/jacoco-report/jacoco.xml"

Expand Down
2 changes: 1 addition & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ microservice-chart:
create: true
host: "weuprod.fdr.internal.platform.pagopa.it"
path: /pagopa-fdr-to-event-hub-service/(.*)
servicePort: 80
servicePort: 8080
serviceAccount:
name: "fdr-workload-identity"
azure:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ microservice-chart:
create: true
host: "weuuat.fdr.internal.uat.platform.pagopa.it"
path: /pagopa-fdr-to-event-hub-service/(.*)
servicePort: 80
servicePort: 8080
serviceAccount:
name: "fdr-workload-identity"
azure:
Expand Down
1 change: 1 addition & 0 deletions host.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"Host.Results": "Error",
"Function.ProcessFDR1BlobFiles": "Information",
"Function.ProcessFDR3BlobFiles": "Information",
"Function.HTTPBlobRecovery": "Information",
"Host.Aggregator": "Error"
},
"applicationInsights": {
Expand Down
24 changes: 16 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
</azure.functions.java.library.version>
<azure.messaging.eventhubs.version>5.20.0
</azure.messaging.eventhubs.version>
<azure.storage.blob.version>12.29.0</azure.storage.blob.version>
<functionAppName>com.microsoft.azure-20220215182005862
</functionAppName>
<jackson.version>2.18.2</jackson.version>
<modelmapper.version>3.2.2</modelmapper.version>
<lombok.version>1.18.36</lombok.version>
<junit.version>5.9.3</junit.version>
<mockito.version>5.15.2</mockito.version>
<system.stubs.version>2.1.7</system.stubs.version>
</properties>

<dependencies>
Expand All @@ -36,26 +39,28 @@
<artifactId>azure-functions-java-library</artifactId>
<version>${azure.functions.java.library.version}</version>
</dependency>

<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventhubs</artifactId>
<version>${azure.messaging.eventhubs.version}</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>${azure.storage.blob.version}</version>
</dependency>

<!-- Jackson -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>${jackson.version}</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
Expand All @@ -68,7 +73,6 @@
<artifactId>modelmapper</artifactId>
<version>${modelmapper.version}</version>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
Expand All @@ -95,18 +99,22 @@
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.15.2</version>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.15.2</version>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>uk.org.webcompere</groupId>
<artifactId>system-stubs-jupiter</artifactId>
<version>${system.stubs.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Loading

0 comments on commit 9c811f3

Please sign in to comment.