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

Merge release branch '1.22.0' #659

Merged
merged 56 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
9dcf878
Return instead of throw exception
askask Apr 30, 2024
43fd42d
updated development version to 1.22.0-SNAPSHOT
web-flow Sep 16, 2024
b3ae27a
Merge pull request #613 from NUM-Forschungsdatenplattform/feature/upd…
ramueSVA Sep 16, 2024
7872603
add clamAV to local env; make delete attachment idempotent
mafasva Sep 16, 2024
151ad5e
Merge pull request #615 from NUM-Forschungsdatenplattform/feature/att…
ramueSVA Sep 16, 2024
ba00d24
Bump commons-io:commons-io from 2.16.1 to 2.17.0
dependabot[bot] Sep 19, 2024
58d051b
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Sep 20, 2024
0b6e337
Merge pull request #617 from NUM-Forschungsdatenplattform/dependabot/…
ramueSVA Sep 24, 2024
0c9f806
Merge pull request #616 from NUM-Forschungsdatenplattform/dependabot/…
ramueSVA Sep 24, 2024
bf63cfe
Update build-for-development.yml
ramueSVA Sep 24, 2024
7bb4123
Update build-for-development.yml
ramueSVA Sep 24, 2024
a5fc537
Bump org.apache.commons:commons-csv from 1.11.0 to 1.12.0
dependabot[bot] Sep 25, 2024
5ca6a68
Update build-for-development.yml
ramueSVA Sep 25, 2024
1bd585b
Merge pull request #618 from NUM-Forschungsdatenplattform/dependabot/…
ramueSVA Sep 25, 2024
3148a97
Merge pull request #604 from fkaercher/feature/return-exception
ramueSVA Sep 25, 2024
7c20060
Update build-for-development.yml
ramueSVA Sep 26, 2024
a0ddbca
Update build-for-development.yml
ramueSVA Sep 26, 2024
a898d31
Bump testcontainers.version from 1.20.1 to 1.20.2
dependabot[bot] Oct 1, 2024
203650a
Bump ehr-sdk.version from 2.17.0 to 2.18.0
dependabot[bot] Oct 1, 2024
3ee8e5e
Update build-for-development.yml
ramueSVA Oct 4, 2024
8dfb4b6
Bump surefire.version from 3.5.0 to 3.5.1
dependabot[bot] Oct 7, 2024
e93a960
Feature/project info metrics (#625)
ramueSVA Oct 7, 2024
1354f0b
Merge pull request #623 from NUM-Forschungsdatenplattform/dependabot/…
ramueSVA Oct 7, 2024
344af67
Merge pull request #622 from NUM-Forschungsdatenplattform/dependabot/…
ramueSVA Oct 7, 2024
22bae50
Merge pull request #620 from NUM-Forschungsdatenplattform/dependabot/…
ramueSVA Oct 7, 2024
ae544b2
Bump ch.qos.logback:logback-classic from 1.5.7 to 1.5.9
dependabot[bot] Oct 9, 2024
7a17969
Feature/checkstyle (#627)
mafasva Oct 10, 2024
8d21768
Merge pull request #626 from NUM-Forschungsdatenplattform/dependabot/…
ramueSVA Oct 10, 2024
ec48f2d
Bump ch.qos.logback:logback-classic from 1.5.9 to 1.5.10 (#628)
dependabot[bot] Oct 15, 2024
bc1e61b
Bump org.apache.maven.plugins:maven-failsafe-plugin from 3.5.0 to 3.5…
dependabot[bot] Oct 15, 2024
ac58412
Bump ch.qos.logback:logback-classic from 1.5.10 to 1.5.11 (#629)
dependabot[bot] Oct 16, 2024
57e999f
Ignore Test
ramueSVA Oct 28, 2024
da5dbdd
Ignore Test
ramueSVA Oct 28, 2024
608679f
Bump org.apache.maven.plugins:maven-checkstyle-plugin (#635)
dependabot[bot] Oct 28, 2024
079a145
Bump ch.qos.logback:logback-classic from 1.5.11 to 1.5.12 (#637)
dependabot[bot] Oct 28, 2024
81edac7
Bump com.puppycrawl.tools:checkstyle from 10.18.2 to 10.19.0 (#636)
dependabot[bot] Oct 28, 2024
e55a82b
Bump org.apache.maven.plugins:maven-dependency-plugin (#634)
dependabot[bot] Oct 28, 2024
74f287c
Bump org.springframework.boot:spring-boot-starter-parent (#633)
dependabot[bot] Oct 28, 2024
923ba9b
Bump testcontainers.version from 1.20.2 to 1.20.3 (#632)
dependabot[bot] Oct 28, 2024
8e44b9c
Bump ehr-sdk.version from 2.18.0 to 2.19.0 (#638)
dependabot[bot] Oct 30, 2024
186a674
Bump org.apache.maven.plugins:maven-failsafe-plugin from 3.5.1 to 3.5…
dependabot[bot] Nov 4, 2024
9b086ea
Bump com.puppycrawl.tools:checkstyle from 10.19.0 to 10.20.0 (#639)
dependabot[bot] Nov 4, 2024
a9406f2
Bump surefire.version from 3.5.1 to 3.5.2 (#640)
dependabot[bot] Nov 4, 2024
bbceb2c
Bump com.puppycrawl.tools:checkstyle from 10.20.0 to 10.20.1 (#643)
dependabot[bot] Nov 11, 2024
5b69251
Bump ehr-sdk.version from 2.19.0 to 2.20.0 (#642)
dependabot[bot] Nov 11, 2024
2833e64
Use SELECT COUNT to get number of patients (#645)
askask Nov 19, 2024
4332a48
Fix ClassCastException when value is of type DvText (#644)
askask Nov 19, 2024
0522a9b
Bump commons-io:commons-io from 2.17.0 to 2.18.0 (#649)
dependabot[bot] Nov 20, 2024
c194e1f
Bump testcontainers.version from 1.20.3 to 1.20.4 (#650)
dependabot[bot] Nov 21, 2024
01f2f4d
Add Feature flags
ramueSVA Nov 25, 2024
a5ec0c2
fix manager search (#656)
ramueSVA Dec 2, 2024
c17512f
Bump com.puppycrawl.tools:checkstyle from 10.20.1 to 10.20.2 (#655)
dependabot[bot] Dec 2, 2024
1a3fedc
add deploy env for feature (#657)
mafasva Dec 2, 2024
af01721
updated project version to 1.22.0
Dec 3, 2024
25670d1
updated release version to 1.22.0
web-flow Dec 3, 2024
1026cd6
Merge branch 'main' into release/1.22.0
mafasva Dec 3, 2024
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
400 changes: 400 additions & 0 deletions .config/checkstyle.xml

Large diffs are not rendered by default.

168 changes: 168 additions & 0 deletions .config/intellij-codestyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
<code_scheme name="NUM-Codestyle" version="1">
<option name="OTHER_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="2" />
<option name="USE_TAB_CHARACTER" value="false" />
<option name="SMART_TABS" value="false" />
<option name="LABEL_INDENT_SIZE" value="0" />
<option name="LABEL_INDENT_ABSOLUTE" value="false" />
<option name="USE_RELATIVE_INDENTS" value="false" />
</value>
</option>
<option name="INSERT_INNER_CLASS_IMPORTS" value="true" />
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="100" />
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="100" />
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
<value />
</option>
<option name="IMPORT_LAYOUT_TABLE">
<value>
<package name="org.highmed" withSubpackages="true" static="false" />
<emptyLine />
<package name="" withSubpackages="true" static="false" />
<emptyLine />
<package name="java" withSubpackages="true" static="false" />
<package name="javax" withSubpackages="true" static="false" />
<emptyLine />
<package name="static org.highmed" withSubpackages="true" static="false" />
<emptyLine />
<package name="" withSubpackages="true" static="true" />
</value>
</option>
<option name="RIGHT_MARGIN" value="150" />
<option name="JD_ALIGN_PARAM_COMMENTS" value="false" />
<option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false" />
<option name="JD_P_AT_EMPTY_LINES" value="false" />
<option name="JD_KEEP_EMPTY_PARAMETER" value="false" />
<option name="JD_KEEP_EMPTY_EXCEPTION" value="false" />
<option name="JD_KEEP_EMPTY_RETURN" value="false" />
<option name="JD_INDENT_ON_CONTINUATION" value="true" />
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" />
<option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="0" />
<option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="0" />
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
<option name="ALIGN_MULTILINE_FOR" value="false" />
<option name="CALL_PARAMETERS_WRAP" value="1" />
<option name="METHOD_PARAMETERS_WRAP" value="1" />
<option name="EXTENDS_LIST_WRAP" value="1" />
<option name="THROWS_KEYWORD_WRAP" value="1" />
<option name="METHOD_CALL_CHAIN_WRAP" value="1" />
<option name="BINARY_OPERATION_WRAP" value="1" />
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" />
<option name="TERNARY_OPERATION_WRAP" value="1" />
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
<option name="FOR_STATEMENT_WRAP" value="1" />
<option name="ARRAY_INITIALIZER_WRAP" value="1" />
<option name="WRAP_COMMENTS" value="true" />
<option name="IF_BRACE_FORCE" value="3" />
<option name="DOWHILE_BRACE_FORCE" value="3" />
<option name="WHILE_BRACE_FORCE" value="3" />
<option name="FOR_BRACE_FORCE" value="3" />
<option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true" />
<XML>
<option name="XML_ALIGN_ATTRIBUTES" value="false" />
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
<option name="XML_SPACE_INSIDE_EMPTY_TAG" value="true" />
</XML>
<codeStyleSettings language="JAVA">
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" />
<option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
<option name="KEEP_BLANK_LINES_BETWEEN_PACKAGE_DECLARATION_AND_HEADER" value="0" />
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" />
<option name="ALIGN_MULTILINE_CHAINED_METHODS" value="false" />
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
<option name="ALIGN_MULTILINE_FOR" value="false" />
<option name="CALL_PARAMETERS_WRAP" value="1" />
<option name="CALL_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
<option name="METHOD_PARAMETERS_WRAP" value="1" />
<option name="EXTENDS_LIST_WRAP" value="1" />
<option name="THROWS_KEYWORD_WRAP" value="1" />
<option name="METHOD_CALL_CHAIN_WRAP" value="1" />
<option name="BINARY_OPERATION_WRAP" value="1" />
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" />
<option name="TERNARY_OPERATION_WRAP" value="1" />
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
<option name="FOR_STATEMENT_WRAP" value="1" />
<option name="ARRAY_INITIALIZER_WRAP" value="1" />
<option name="WRAP_COMMENTS" value="true" />
<option name="IF_BRACE_FORCE" value="3" />
<option name="DOWHILE_BRACE_FORCE" value="3" />
<option name="WHILE_BRACE_FORCE" value="3" />
<option name="FOR_BRACE_FORCE" value="3" />
<option name="ENUM_CONSTANTS_WRAP" value="2" />
<option name="WRAP_ON_TYPING" value="0" />
<option name="PARENT_SETTINGS_INSTALLED" value="true" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="JSON">
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="XML">
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
<arrangement>
<rules>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>style</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_NAMESPACE>.*</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
</rules>
</arrangement>
</codeStyleSettings>
</code_scheme>
4 changes: 3 additions & 1 deletion .github/workflows/build-for-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ 'feature/**' ]
pull_request:
branches: [ develop, main ]
types: [ opened, ready_for_review]
types: [ opened, ready_for_review ]
pull_request_target:
branches: [ develop, main ]
types: [ closed ]
Expand All @@ -24,6 +24,8 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Run Checkstyle
run: mvn validate
- name: Run unit tests
run: mvn clean test
- name: Run integration tests
Expand Down
47 changes: 39 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,57 @@
# Num-portal
The num-portal repository includes the backend for the Routine Data Platform (RDP).

## Building and running locally
To get the backend running first a postgres instance needs to be running.

1. Postgres should be up and running, instructions below
To start a local instance of PostgreSQL:

```
docker run --name postgres -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 postgres
```
Then you can start the project with the setting for the application-local.yml:

In the root folder of the project, open cmd and run:

1. Build app: `mvn clean install`
2. Run: `spring_profiles_active=local mvn spring-boot:run`

## Database
After that you can visit the swagger website:

Start a local instance of PostgreSQL:
### Swagger

```
docker run --name postgres -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 postgres
```
http://localhost:8090/swagger-ui/index.html

## Swagger
## Contributing

http://localhost:8090/swagger-ui/index.html
Pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.
After that and the approval of HiGHmed e.V. ([email protected]) you can add the code in a Branch.
1. Create a branch named 'feature/name-of-branch' because of pipeline requirements
2. Check you code with our provided [checkstyle](/.config/checkstyle.xml)
3. Update the previously tests
4. PRs can only be merged once the [build_for_development pipeline](/.github/workflows/build-for-development.yml) has been successfully completed

### Checkstyle

To integrate checkstyle in your IDE (IntelliJ) you need the checkstyle-plugin.
And for intelliJ we include a [intellij-codestyle.xml](/.config/intellij-codestyle.xml) file

#### IntelliJ Steps

1. Add the file in Settings -> Editor -> Code Style -> Java
2. For the checkstyle-plugin you can add the file [checkstyle](/.config/checkstyle.xml) under Settings -> Tools -> Checkstyle -> Configuration File

### Feature

Within the backend, controllers that are defined as Featurable can be activated and deactivated.

Example:

```
(@ConditionalOnProperty(value = “feature.search-by-manager”, havingValue = “true”)
```
They are defined within the application.yml. This configuration is then picked up in the frontend and deactivated features are not displayed there.

## License

Expand Down
19 changes: 15 additions & 4 deletions local-env/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
volumes:
- ./keycloak.conf:/opt/keycloak/conf/keycloak.conf
ports:
- 8180:8080
- "8180:8080"
networks:
- num-portal
depends_on:
Expand All @@ -23,7 +23,7 @@ services:
image: postgres:16.2
restart: always
ports:
- 5432:5432
- "5432:5432"
networks:
- num-portal
environment:
Expand All @@ -35,7 +35,7 @@ services:
image: dpage/pgadmin4:8.9
restart: always
ports:
- 8888:80
- "8888:80"
networks:
- num-portal
environment:
Expand All @@ -48,7 +48,7 @@ services:
ehrbase:
image: ehrbase/ehrbase:2.5.0
ports:
- 8080:8080
- "8080:8080"
networks:
- num-portal
env_file:
Expand All @@ -62,10 +62,21 @@ services:
DB_PASS: ${DB_PASS}
depends_on:
- postgres
clamav:
image: clamav/clamav:1.3.2
container_name: clamav
ports:
- "3310:3310"
volumes:
- clamav-db:/var/lib/clamav
environment:
- CLAMD_CONF_FILE=/etc/clamav/clamd.conf
- FRESHCLAM_CONF_FILE=/etc/clamav/freshclam.conf

volumes:
pgdata:
pgadmin-data:
clamav-db:
networks:
num-portal:
driver: bridge
Loading
Loading