Merge remote-tracking branch 'origin/master' into rel_8_1_tracking

This commit is contained in:
dotasek
2025-04-30 13:34:40 -04:00
5 changed files with 54 additions and 21 deletions

View File

@@ -22,20 +22,49 @@ jobs:
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
- name: Build with Maven
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
- name: Docker Pull HTTP client
run: docker pull jetbrains/intellij-http-client
- name: Start server with jetty
run: |
mvn -P jetty spring-boot:run & export JPA_PROCESS=$!
mkdir -p logs
mvn -P jetty spring-boot:run | tee logs/server.log &
sleep 80
- name: Execute smoke tests
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
- name: Show last server logs
if: always()
run: |
echo "===== Last 200 Lines of Server Log ====="
tail -n 200 logs/server.log || true
- name: Highlight server errors
if: always()
run: |
echo "===== Highlighted Server Errors ====="
if grep 'ERROR' logs/server.log > /dev/null; then
grep 'ERROR' logs/server.log | while read -r line; do
echo "::error::${line}"
done
else
echo "No errors found in server logs."
fi
- name: Upload server logs
if: always()
uses: actions/upload-artifact@v4
with:
name: server-logs
path: logs/server.log

View File

@@ -6,7 +6,7 @@
<properties>
<java.version>17</java.version>
<hapi.fhir.jpa.server.starter.revision>1</hapi.fhir.jpa.server.starter.revision>
<clinical-reasoning.version>3.19.0</clinical-reasoning.version>
<clinical-reasoning.version>3.20.0</clinical-reasoning.version>
</properties>
<!-- one-liner to take you to the cloud with settings form the application.yaml file: -->

View File

@@ -855,7 +855,7 @@ public class AppProperties {
private Boolean database_partition_mode_enabled = false;
private Boolean patient_id_partitioning_mode = false;
private Integer default_partition_id = 0;
private boolean request_tenant_partitioning_mode;
private boolean request_tenant_partitioning_mode = true;
public boolean isRequest_tenant_partitioning_mode() {
return request_tenant_partitioning_mode;

View File

@@ -156,8 +156,8 @@ public class FhirServerConfigCommon {
jpaStorageSettings.setPreExpandValueSets(appProperties.getPre_expand_value_sets());
jpaStorageSettings.setEnableTaskPreExpandValueSets(appProperties.getEnable_task_pre_expand_value_sets());
jpaStorageSettings.setPreExpandValueSetsDefaultCount(appProperties.getPre_expand_value_sets_default_count());
jpaStorageSettings.setPreExpandValueSetsMaxCount(appProperties.getPre_expand_value_sets_max_count());
jpaStorageSettings.setPreExpandValueSetsDefaultCount(appProperties.getPre_expand_value_sets_default_count());
jpaStorageSettings.setMaximumExpansionSize(appProperties.getMaximum_expansion_size());
jpaStorageSettings.setIndexMissingFields(

View File

@@ -3,6 +3,9 @@ server:
# servlet:
# context-path: /example/path
port: 8080
tomcat:
# allow | as a separator in the URL
relaxed-query-chars: "|"
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
management:
@@ -237,6 +240,7 @@ hapi:
# allow_references_across_partitions: false
# partitioning_include_in_search_hashes: false
# conditional_create_duplicate_identifiers_enabled: false
# request_tenant_partitioning_mode: true
cors:
allow_Credentials: true
# 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-