Skip to content

Commit 0846e9d

Browse files
committed
Merge branch 'hapi-master' into feat/remote-terminology-support
2 parents a7da4f2 + f7e2601 commit 0846e9d

File tree

4 files changed

+54
-21
lines changed

4 files changed

+54
-21
lines changed

.github/workflows/smoke-tests.yml

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,51 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- name: Checkout project
24-
uses: actions/checkout@v4
25-
- name: Set up JDK 17
26-
uses: actions/setup-java@v3
27-
with:
28-
java-version: 17
29-
distribution: zulu
30-
- name: Build with Maven
31-
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
32-
- name: Docker Pull HTTP client
33-
run: docker pull jetbrains/intellij-http-client
34-
- name: Start server with jetty
35-
run: |
36-
mvn -P jetty spring-boot:run & export JPA_PROCESS=$!
37-
sleep 80
38-
- name: Execute smoke tests
39-
run: docker run --rm -v $PWD:/workdir --add-host host.docker.internal:host-gateway jetbrains/intellij-http-client -D src/test/smoketest/plain_server.http --env-file src/test/smoketest/http-client.env.json --env default
40-
41-
23+
- name: Checkout project
24+
uses: actions/checkout@v4
25+
26+
- name: Set up JDK 17
27+
uses: actions/setup-java@v3
28+
with:
29+
java-version: 17
30+
distribution: zulu
31+
32+
- name: Build with Maven
33+
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
34+
35+
- name: Docker Pull HTTP client
36+
run: docker pull jetbrains/intellij-http-client
37+
38+
- name: Start server with jetty
39+
run: |
40+
mkdir -p logs
41+
mvn -P jetty spring-boot:run | tee logs/server.log &
42+
sleep 80
43+
44+
- name: Execute smoke tests
45+
run: docker run --rm -v $PWD:/workdir --add-host host.docker.internal:host-gateway jetbrains/intellij-http-client -D src/test/smoketest/plain_server.http --env-file src/test/smoketest/http-client.env.json --env default
46+
47+
- name: Show last server logs
48+
if: always()
49+
run: |
50+
echo "===== Last 200 Lines of Server Log ====="
51+
tail -n 200 logs/server.log || true
52+
53+
- name: Highlight server errors
54+
if: always()
55+
run: |
56+
echo "===== Highlighted Server Errors ====="
57+
if grep 'ERROR' logs/server.log > /dev/null; then
58+
grep 'ERROR' logs/server.log | while read -r line; do
59+
echo "::error::${line}"
60+
done
61+
else
62+
echo "No errors found in server logs."
63+
fi
64+
65+
- name: Upload server logs
66+
if: always()
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: server-logs
70+
path: logs/server.log

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<properties>
77
<java.version>17</java.version>
8-
<hapi.fhir.jpa.server.starter.revision>1</hapi.fhir.jpa.server.starter.revision>
8+
<hapi.fhir.jpa.server.starter.revision>2</hapi.fhir.jpa.server.starter.revision>
99
<clinical-reasoning.version>3.20.0</clinical-reasoning.version>
1010
</properties>
1111

src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ public static class Partitioning {
865865
private Boolean database_partition_mode_enabled = false;
866866
private Boolean patient_id_partitioning_mode = false;
867867
private Integer default_partition_id = 0;
868-
private boolean request_tenant_partitioning_mode;
868+
private boolean request_tenant_partitioning_mode = true;
869869

870870
public boolean isRequest_tenant_partitioning_mode() {
871871
return request_tenant_partitioning_mode;

src/main/resources/application.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ server:
33
# servlet:
44
# context-path: /example/path
55
port: 8080
6+
tomcat:
7+
# allow | as a separator in the URL
8+
relaxed-query-chars: "|"
69
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
710
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
811
management:
@@ -237,6 +240,7 @@ hapi:
237240
# allow_references_across_partitions: false
238241
# partitioning_include_in_search_hashes: false
239242
# conditional_create_duplicate_identifiers_enabled: false
243+
# request_tenant_partitioning_mode: true
240244
cors:
241245
allow_Credentials: true
242246
# These are allowed_origin patterns, see: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/cors/CorsConfiguration.html#setAllowedOriginPatterns-java.util.List-

0 commit comments

Comments
 (0)