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

Version 2.1.0 #298

Closed
wants to merge 84 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
5db5dcd
Update the swagger doc
ineiti Oct 13, 2020
c5ee830
DB model extended for visited countries. DB model adapted for new key…
martinalig Oct 15, 2020
4bc4a6e
App API extended for international. DB insertion and retrieval extend…
martinalig Oct 16, 2020
ef46b00
Add Interops Module
martinalig Oct 15, 2020
5844350
Add first impl for irish hub sync. Download only
martinalig Oct 16, 2020
673f55b
Use system properties when creating HttpClientBuilder (includes proxy…
UBaggeler Oct 16, 2020
99856c1
Merge pull request #264 from DP-3T/update_doc
martinalig Nov 5, 2020
fc9d2bc
Update Spring Boot to 2.3.5. Adapt Tests. Start versioning for artifa…
martinalig Nov 5, 2020
b51ad2b
Build Step is not needed atm.
martinalig Nov 5, 2020
8fef849
Revert back to version in each pom.xml. (using revision makes problem…
martinalig Nov 5, 2020
bbcae2a
Revert "Build Step is not needed atm."
martinalig Nov 5, 2020
8222423
Add GaenV2Controller for doku generator.
martinalig Nov 5, 2020
bd752a0
Merge pull request #280 from DP-3T/feature/update-springboot-2.3.x
martinalig Nov 5, 2020
febb0a1
Merge branch 'develop' into feature/gaen-v2-international-interops
martinalig Nov 12, 2020
3d7aaf0
Update to Spring Boot 2.3.6
martinalig Nov 18, 2020
730f34a
Make workflow work again.
martinalig Nov 18, 2020
a2c43e8
Merge pull request #281 from DP-3T/feature/update-springboot-2.3.6
martinalig Nov 18, 2020
253c505
Remove unused path. Add path for v2
martinalig Nov 18, 2020
0449a99
WIP: Irish Hub Sync
martinalig Nov 13, 2020
c0d8291
Add Test for Post without Token
martinalig Nov 19, 2020
4e8b068
Merge pull request #282 from DP-3T/fix/security-config-for-v2
martinalig Nov 19, 2020
3023ff5
add test to verify upload and release of key on v1 api
simonroesch Nov 24, 2020
4f70788
remove pseudo sql code
simonroesch Nov 24, 2020
97e130d
WIP: use v2 sql logic for v1. only one sql query for loading keys.
martinalig Nov 25, 2020
0b3d004
fix publishedUntil handling on v1 dataservice implementation
simonroesch Nov 25, 2020
7ff8c35
Fix dataservice tests. Extend some tests to check v1 and v2 together.
martinalig Nov 25, 2020
2059cc1
Create codeql-analysis.yml
martinalig Nov 25, 2020
fa208f6
Update codeql-analysis.yml
martinalig Nov 25, 2020
25e6102
Update codeql-analysis.yml
martinalig Nov 25, 2020
92b30a3
fix batch release time check for devices that were offline for 10 days
simonroesch Dec 2, 2020
05c7607
check batchReleaseTime is in the past
simonroesch Dec 2, 2020
4793604
Merge pull request #283 from DP-3T/feature/testcase-for-v1-api-upload
martinalig Dec 3, 2020
f3e6284
Merge pull request #284 from DP-3T/bugfix/fix-batch-release-time-check
martinalig Dec 3, 2020
507725f
Merge branch 'master' into develop
martinalig Dec 4, 2020
79ee5b3
Version Up.
martinalig Dec 4, 2020
5d9b249
Refactor International DB. Refactor WS for new client facing api.
martinalig Feb 26, 2021
1587847
Gateway configs via properties POC
ubhaller Feb 26, 2021
2f2cc97
Interface for client. TODOs for sync process
martinalig Feb 26, 2021
b60bedc
Merge develop back into interops
martinalig Mar 3, 2021
939b149
Fix tests
martinalig Mar 3, 2021
97d0591
Refactor upper-case abbreviations
ubhaller Mar 1, 2021
1b6a980
EFGS Hub Sync
ubhaller Mar 1, 2021
20e2059
Remove SyncTest for now
ubhaller Mar 5, 2021
f42f4a1
remove placeholders from application.properties
ubhaller Mar 5, 2021
2b9f755
Switch to int
martinalig Mar 5, 2021
ebc8e63
Set UploadDate for Upload
martinalig Mar 5, 2021
191d56a
Add SyncTest for local testing and update rest template sslcontext
ubhaller Mar 9, 2021
e5851df
remove hostnameverifier
ubhaller Mar 9, 2021
0096b47
Extend Model. Rename
martinalig Mar 10, 2021
3d30b3e
EFGS upload with correct values and defaults
ubhaller Mar 10, 2021
17a5906
EFGS downloaded keys upsert through insert manager
ubhaller Mar 11, 2021
3a7d712
Set all props from downloaded protos
martinalig Mar 11, 2021
3db3474
Fix code formatting
UBaggeler Mar 16, 2021
c6d308e
Add tests for DSOS filter logic
UBaggeler Mar 16, 2021
39b68d2
Add controller to generate and add random keys to the database for lo…
UBaggeler Mar 16, 2021
38fbcf9
Run maven (tests) for all pull-requests
UBaggeler Mar 16, 2021
63900e8
Fix DSOS range filter
UBaggeler Mar 16, 2021
8790bfd
Run action for all pull-requests
UBaggeler Mar 17, 2021
9c5020f
Cache maven and sonar packages
UBaggeler Mar 17, 2021
2cb7073
Simplify sonar task by moving sonar pull-requst properties to pom.xml
UBaggeler Mar 17, 2021
0f26502
Update testcontainers dependency
UBaggeler Mar 17, 2021
1bfecc8
Read pull-request key from github.event variable
UBaggeler Mar 17, 2021
27d8c84
Run sonar analysis directly (without "verify" since "mvn install" alr…
UBaggeler Mar 17, 2021
6de0066
Update to cache@v2 action
UBaggeler Mar 17, 2021
6e588d6
Run "mvn clean" before building
UBaggeler Mar 17, 2021
353e2a3
Merge pull request #291 from DP-3T/feature/github-actions
UBaggeler Mar 18, 2021
26145fc
Fix detection of issue
ineiti Mar 18, 2021
f639aad
Merge pull request #289 from DP-3T/feature/load-test-controller
UBaggeler Mar 18, 2021
f832bb5
Make EFGS DSOS Filter configurable (enabled/disabled and separate cut…
UBaggeler Mar 18, 2021
2229528
Merge pull request #290 from DP-3T/feature/dsos-filter-tests
UBaggeler Mar 18, 2021
20e99fb
Merge pull request #292 from DP-3T/fix_close_issue_workflow
UBaggeler Mar 18, 2021
dbd55f8
Cleanup (add copyright header and remove unused files)
UBaggeler Mar 18, 2021
68a7349
Merge branch 'feature/gaen-v2-international-interops' into feature/up…
UBaggeler Mar 18, 2021
5e91f96
Rename configuration properties to interops.*
UBaggeler Mar 18, 2021
81c1163
Merge pull request #295 from DP-3T/feature/update-interop
UBaggeler Mar 18, 2021
13571bb
Merge pull request #296 from DP-3T/feature/interop-cleanup
UBaggeler Mar 18, 2021
be97fff
Refactoring: Exctract claculateDsos to it's own class (EfgsDsosUtil) …
UBaggeler Mar 18, 2021
9520435
Add test cases for EfgsDsosUtil
UBaggeler Mar 18, 2021
d343fb4
Fix calculation of (calendar) days since submission
UBaggeler Mar 18, 2021
a0b4a84
Add zero points for the different DSOS mappings
UBaggeler Mar 18, 2021
418012c
Code formatting
UBaggeler Mar 18, 2021
feddebe
Add comments to assertions
UBaggeler Mar 22, 2021
1605c47
Merge pull request #297 from DP-3T/feature/efgs-dsos-tests
UBaggeler Mar 22, 2021
47b082a
Merge pull request #294 from DP-3T/feature/gaen-v2-international-inte…
UBaggeler Mar 22, 2021
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
2 changes: 1 addition & 1 deletion .github/workflows/close_issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
const body = pr.body;
const lines = body.split('\n').map((l)=>l.trim());
const closers = new RegExp(
/(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)/i);
/^(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) .*#/i);
const issues = lines.filter((l)=>l.match(closers));
const issue_nbrs = issues.map((i) => i.replace(/.*#/, ''));
issue_nbrs.forEach((i) => {
Expand Down
82 changes: 82 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ develop, master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ develop ]
schedule:
- cron: '38 20 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'java' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
#- name: Autobuild
# uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11.0.7
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file: :
- name: 'Create settings.xml'
uses: whelk-io/maven-settings-xml-action@v4
with:
servers: '[{"id": "github", "username": "${{ github.actor }}", "password": "${{ github.token}}"}, {"id": "github-annotation", "username": "${{ github.actor }}", "password": "${{ github.token }}"}]'
repositories: '[{"id" : "github", "url" : "https://maven.pkg.github.com/Ubique-OSS/springboot-swagger3"}, {"id" : "github-annotation", "url" : "https://maven.pkg.github.com/Ubique-OSS/springboot-swagger3-annotations"}]'
- name: Build with Maven
run: |
mvn install --file dpppt-backend-sdk/pom.xml;
mvn springboot-swagger-3:springboot-swagger-3 -f dpppt-backend-sdk/dpppt-backend-sdk-ws/pom.xml
env:
GITHUB_TOKEN: ${{ github.token }}
TESTCONTAINERS_RYUK_DISABLED: true

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
39 changes: 24 additions & 15 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven
name: Build, test and analyze

on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master ]

jobs:
build:
Expand All @@ -29,29 +28,39 @@ jobs:
with:
servers: '[{"id": "github", "username": "${{ github.actor }}", "password": "${{ github.token}}"}, {"id": "github-annotation", "username": "${{ github.actor }}", "password": "${{ github.token }}"}]'
repositories: '[{"id" : "github", "url" : "https://maven.pkg.github.com/Ubique-OSS/springboot-swagger3"}, {"id" : "github-annotation", "url" : "https://maven.pkg.github.com/Ubique-OSS/springboot-swagger3-annotations"}]'
- name: Build with Maven

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Cache SonarCloud packages
uses: actions/cache@v2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Build and run tests
run: |
mvn install --file dpppt-backend-sdk/pom.xml;
mvn clean install --file dpppt-backend-sdk/pom.xml;
mvn springboot-swagger-3:springboot-swagger-3 -f dpppt-backend-sdk/dpppt-backend-sdk-ws/pom.xml
env:
GITHUB_TOKEN: ${{ github.token }}
TESTCONTAINERS_RYUK_DISABLED: true
- name: SonarCloud Scan (develop)
run: mvn verify -B sonar:sonar --file dpppt-backend-sdk/dpppt-backend-sdk-ws/pom.xml
if: github.ref == 'refs/heads/develop'
env:
SONAR_ORGANIZATION: ${{ secrets.SONAR_ORGANIZATION }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
TESTCONTAINERS_RYUK_DISABLED: true
- name: SonarCloud Scan (PR)
run: mvn verify -B sonar:sonar -Dsonar.pullrequest.base=develop -Dsonar.pullrequest.key=$(echo "$GITHUB_REF" | awk -F / '{print $3}') --file dpppt-backend-sdk/dpppt-backend-sdk-ws/pom.xml
if: github.ref != 'refs/heads/develop'

- name: Analyze (sonar)
run: mvn sonar:sonar --file dpppt-backend-sdk/dpppt-backend-sdk-ws/pom.xml
env:
SONAR_ORGANIZATION: ${{ secrets.SONAR_ORGANIZATION }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
GITHUB_PULL_REQUEST_KEY: ${{ github.event.number }}
TESTCONTAINERS_RYUK_DISABLED: true

- name: Publish to GitHub Packages Apache Maven
if: github.ref == 'refs/heads/develop'
run: mvn deploy -Dmaven.test.skip=true --file dpppt-backend-sdk/pom.xml -s $GITHUB_WORKSPACE/settings.xml
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/tagged_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
TESTCONTAINERS_RYUK_DISABLED: true
- name: shasum
- name: "Calculate shasum for SDK WS"
run: shasum -a 256 dpppt-backend-sdk/dpppt-backend-sdk-ws/target/dpppt-backend-sdk-ws.jar > dpppt-backend-sdk/dpppt-backend-sdk-ws/target/dpppt-backend-sdk-ws.sha256
shell: bash
- name: "Calculate shasum for SDK Interops"
run: shasum -a 256 dpppt-backend-sdk/dpppt-backend-sdk-interops/target/dpppt-backend-sdk-interops.jar > dpppt-backend-sdk/dpppt-backend-sdk-interops/target/dpppt-backend-sdk-interops.sha256
shell: bash
- name: "Create new release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand All @@ -43,4 +46,6 @@ jobs:
dpppt-backend-sdk/dpppt-backend-sdk-ws/target/dpppt-backend-sdk-ws.jar
dpppt-backend-sdk/dpppt-backend-sdk-ws/target/dpppt-backend-sdk-ws.sha256
dpppt-backend-sdk/dpppt-backend-sdk-ws/generated/swagger/swagger.yaml

dpppt-backend-sdk/dpppt-backend-sdk-interops/target/dpppt-backend-sdk-interops.jar
dpppt-backend-sdk/dpppt-backend-sdk-interops/target/dpppt-backend-sdk-interops.sha256

17 changes: 17 additions & 0 deletions docker-compose/stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.1'

services:

dpppt_db:
image: postgres:11
restart: always
environment:
POSTGRES_PASSWORD: dpppt
POSTGRES_DB: dpppt
POSTGRES_USER: dpppt
ports:
- "5432:5432"
volumes:
- dpppt_db_data:/var/lib/postgresql/data
volumes:
dpppt_db_data:
Loading