Skip to content

Commit

Permalink
#754 add application.yaml setting for conditional_create_duplicate_id…
Browse files Browse the repository at this point in the history
…entifiers_enabled (#755)

Co-authored-by: Eric Secules <[email protected]>
  • Loading branch information
esecules and Eric Secules authored Nov 9, 2024
1 parent 02e4de7 commit 5df8e03
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ public static class Partitioning {

private Boolean partitioning_include_in_search_hashes = false;
private Boolean allow_references_across_partitions = false;
private Boolean conditional_create_duplicate_identifiers_enabled = false;

public Boolean getPartitioning_include_in_search_hashes() {
return partitioning_include_in_search_hashes;
Expand All @@ -808,6 +809,14 @@ public Boolean getAllow_references_across_partitions() {
public void setAllow_references_across_partitions(Boolean allow_references_across_partitions) {
this.allow_references_across_partitions = allow_references_across_partitions;
}

public Boolean getConditional_create_duplicate_identifiers_enabled() {
return conditional_create_duplicate_identifiers_enabled;
}

public void setConditional_create_duplicate_identifiers_enabled(Boolean conditional_create_duplicate_identifiers_enabled) {
this.conditional_create_duplicate_identifiers_enabled = conditional_create_duplicate_identifiers_enabled;
}
}

public static class Subscription {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ public PartitionSettings partitionSettings(AppProperties appProperties) {
} else {
retVal.setAllowReferencesAcrossPartitions(CrossPartitionReferenceMode.NOT_ALLOWED);
}
retVal.setConditionalCreateDuplicateIdentifiersEnabled(
appProperties.getPartitioning().getConditional_create_duplicate_identifiers_enabled());
}

return retVal;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ hapi:
# partitioning:
# allow_references_across_partitions: false
# partitioning_include_in_search_hashes: false
# conditional_create_duplicate_identifiers_enabled: false
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-
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/cds.application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ hapi:
# partitioning:
# allow_references_across_partitions: false
# partitioning_include_in_search_hashes: false
# conditional_create_duplicate_identifiers_enabled: false
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-
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ hapi:
# partitioning:
# allow_references_across_partitions: false
# partitioning_include_in_search_hashes: false
# partitioning_include_in_search_hashes
#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-
Expand Down

0 comments on commit 5df8e03

Please sign in to comment.