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

feat: Initial persister setup #1

Open
wants to merge 68 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 62 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
6c919ed
start project structure
LucaCiccarelli Sep 13, 2023
c995ee0
added config
CriMDev97 Sep 18, 2023
d799135
refactor package name, added test config
CriMDev97 Sep 19, 2023
4fac1bc
added LocalStackTestConfig
CriMDev97 Sep 19, 2023
2983cbf
Updated spring boot configuration for liquibase
Sep 19, 2023
0007c39
Added liquibase changelog and sql scripts
Sep 19, 2023
436afbf
fixed properties
CriMDev97 Sep 20, 2023
812aa62
Updated dependencies and properties
Sep 20, 2023
256426d
Added SignalEvent dto, Signal and DeadSignal entities and respective …
Sep 20, 2023
bc73a94
Added exception management
Sep 20, 2023
8ebde09
Added listener on internal queue
Sep 20, 2023
c9dfe87
Added signal service
Sep 20, 2023
d45f5c9
Updated signal service
Sep 21, 2023
b899f83
Updated signal repository and enum
Sep 21, 2023
3ef6c82
some fixes
CriMDev97 Sep 22, 2023
85a9474
added dlq
CriMDev97 Sep 22, 2023
fef18bc
Added push dead signal on dlq queue
Sep 22, 2023
152a550
minor change
CriMDev97 Sep 27, 2023
39b4fda
Updated some configuration
Sep 28, 2023
a222c49
Updated init table sql script
Oct 2, 2023
e3f24ac
Updated pom with jacoco configuration
Oct 2, 2023
5d0b9a6
refactoring name of column and added new table for tracing batch
CriMDev97 Oct 11, 2023
bcbb989
adds gitflow
ariannazafarana Oct 11, 2023
cea935e
Updated init_table's script and h2's schema
Oct 11, 2023
9df203f
Merge remote-tracking branch 'origin/feature/signals-persister' into …
Oct 11, 2023
35c60e1
Updated entities for handle correlation_id
Oct 11, 2023
644734b
adds actuator configuration
ariannazafarana Oct 13, 2023
22f53a2
Merge branch 'feature/signals-persister' of https://github.com/pagopa…
ariannazafarana Oct 13, 2023
fec77df
Updated sql init_table script
Oct 16, 2023
ce772f6
Merge remote-tracking branch 'origin/feature/signals-persister' into …
Oct 16, 2023
efbb1ed
Added some unit test
Oct 16, 2023
23a07c3
Added mockito test configuration
Oct 16, 2023
7a402f5
some fixes
CriMDev97 Oct 16, 2023
056bafd
added dead event table
CriMDev97 Oct 17, 2023
e439820
moved aws profile to dev config
francarl77 Oct 17, 2023
5b469d6
add conditional creation on indexes
francarl77 Oct 17, 2023
a4b2f53
Added Signal Service unit Test
Oct 18, 2023
a550465
Merge remote-tracking branch 'origin/feature/signals-persister' into …
Oct 18, 2023
c8cc11f
Added SignalListener unit test and updated configurations
Oct 20, 2023
3cf70e8
Splitted signal service impl with its interface
Oct 20, 2023
38272b2
Updated jacoco configuration
Oct 20, 2023
d677773
Updated SignalServiceImplTest with entity save exception test
Oct 20, 2023
220b503
Updated some unit test
Oct 20, 2023
0ed1569
update test
francarl77 Oct 20, 2023
3b22e2a
Updated some unit test
Oct 26, 2023
c5e079f
Merge remote-tracking branch 'origin/feature/poc' into feature/poc
Oct 26, 2023
528199a
Updated LocalStackTestConfig
Oct 26, 2023
8725a44
Updated init_table.sql and schema-h2.sql scripts
Oct 26, 2023
9f6dec7
some fixes
CriMDev97 Oct 31, 2023
2cc8c47
remove NOT NULL constraint for event_id column
CriMDev97 Nov 2, 2023
c488496
Set default timestamp for tmst_insert column
CriMDev97 Nov 2, 2023
19f77a0
refactoring consumer primary key
CriMDev97 Nov 2, 2023
757427c
Updated init_table.sql and schema-h2.sql scripts
Nov 6, 2023
d81c50e
Updated init_table.sql and schema-h2.sql scripts
Nov 7, 2023
2b42fc1
Updated init_table.sql and schema-h2.sql scripts
Nov 7, 2023
e41e7b8
added key into eservice table
CriMDev97 Nov 10, 2023
6e8a8a1
added queue error policy
CriMDev97 Nov 16, 2023
44cfd4e
fixed column type and added type column into tracing batch
CriMDev97 Nov 20, 2023
eb1fb58
changed property indexSignal to signalId
CriMDev97 Nov 22, 2023
9fa187a
removed mapping annotation
CriMDev97 Nov 22, 2023
0a8872c
Updated pom
Nov 23, 2023
7142a3f
Merge remote-tracking branch 'origin/feature/poc' into feature/poc
Nov 23, 2023
ab9d88e
resolved reports
CriMDev97 Nov 29, 2023
0dcb5d0
addded tracing log
CriMDev97 Nov 30, 2023
f5ef17a
added logs
CriMDev97 Nov 30, 2023
9a267b9
some fix
CriMDev97 Nov 30, 2023
78bd4fe
fixed properties
CriMDev97 Dec 5, 2023
932a83f
some fix
CriMDev97 Dec 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "CI Develop"

on:
push:
branches:
- '**'
- '!main'
- '!master'
paths:
- '**'

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: normalize branch name for tagging
run: |
NORM_TAG=$(echo "$GITHUB_REF_NAME" | tr -s "/" "-")
echo "NORM_TAG=$NORM_TAG" >> $GITHUB_ENV
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push on GitHub packages
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ env.NORM_TAG }}
36 changes: 36 additions & 0 deletions .github/workflows/build_prod-uat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CI RCs - PROD"

on:
push:
tags:
- 'v*'
- '*-rc'

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: normalize branch name for tagging
run: |
NORM_TAG=$(echo "$GITHUB_REF_NAME" | tr -s "/" "-")
echo "NORM_TAG=$NORM_TAG" >> $GITHUB_ENV
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push on GitHub packages
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ env.NORM_TAG }}
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## BUILD ##
FROM maven:3.8.3-openjdk-17 AS build

WORKDIR /app

COPY . .

RUN mvn -q clean package -Dmaven.test.skip=true


## RUN ##
FROM openjdk:17-alpine

COPY --from=build /app/target/*.jar /app/app.jar

ENTRYPOINT ["java", "-jar", "/app/app.jar"]
2 changes: 2 additions & 0 deletions config/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
aws.profile=default

3 changes: 3 additions & 0 deletions lombok.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lombok.addLombokGeneratedAnnotation = true

lombok.log.custom.declaration = it.pagopa.sh.shperformancetest.abstractions.log.PnLogger.getLogger(NAME)
Loading
Loading