-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Feat/extra resource loading from npm #784
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
Merged
jkiddo
merged 27 commits into
hapifhir:master
from
jkiddo:feat/extra-resource-loading-from-npm
Aug 27, 2025
Merged
Changes from 22 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
130b6ba
Logic to do the basics
jkiddo 926cc95
Added configurable folders
jkiddo 2e294d8
Scoped additional resources to - pr. IG
jkiddo 36202d8
Updated telemetry version
jkiddo 4b509a8
Changed to set
jkiddo 578ee8b
Merge branch 'hapi-master' into feat/extra-resource-loading-from-npm
jkiddo e6b4866
Changed PostConstruct to Component and introduced use of PartitionCon…
jkiddo 8fafde9
Satisfying spotless
jkiddo dea6fc6
Reverted to default config
jkiddo 224b2bd
Merge branch 'hapi-master' into feat/extra-resource-loading-from-npm
jkiddo bad73a5
Apply spotless
jkiddo 99e76ae
Merge branch 'master' into feat/extra-resource-loading-from-npm
jkiddo 5e81861
Merge branch 'hapifhir:master' into feat/extra-resource-loading-from-npm
jkiddo 3206140
Merge branch 'hapi-master' into feat/extra-resource-loading-from-npm
jkiddo ba8b38e
Merge branch 'hapifhir:master' into feat/extra-resource-loading-from-npm
jkiddo b2e4d61
Use core-provided feature
jkiddo c9d2aaf
Update src/main/java/ca/uhn/fhir/jpa/starter/util/JpaHibernatePropert…
jkiddo 3149a6a
Merge branch 'master' into feat/extra-resource-loading-from-npm
jkiddo 0e75261
Reverting dialect change - fit for a potential other PR
jkiddo 8f5c657
Merge branch 'master' into feat/extra-resource-loading-from-npm
jkiddo 5766fee
no message
jkiddo 66575b4
Formatting
jkiddo 4a69b63
Update src/main/java/ca/uhn/fhir/jpa/starter/ig/ExtendedPackageInstal…
jkiddo 10ef2b0
Bad AI ... bad bad AI ...
jkiddo d43edb1
Formatting
jkiddo 38847e9
bump of feature revision flag
jkiddo 5593452
Merge branch 'hapifhir:master' into feat/extra-resource-loading-from-npm
jkiddo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/ca/uhn/fhir/jpa/starter/common/OnPartitionModeEnabled.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package ca.uhn.fhir.jpa.starter.common; | ||
|
||
import ca.uhn.fhir.jpa.starter.AppProperties; | ||
import org.springframework.boot.context.properties.bind.Binder; | ||
import org.springframework.context.annotation.Condition; | ||
import org.springframework.context.annotation.ConditionContext; | ||
import org.springframework.core.type.AnnotatedTypeMetadata; | ||
|
||
public class OnPartitionModeEnabled implements Condition { | ||
@Override | ||
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { | ||
var appProperties = Binder.get(context.getEnvironment()) | ||
.bind("hapi.fhir", AppProperties.class) | ||
.orElse(null); | ||
if (appProperties == null) return false; | ||
return appProperties.getPartitioning() != null; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/ca/uhn/fhir/jpa/starter/ig/ExtendedPackageInstallationSpec.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package ca.uhn.fhir.jpa.starter.ig; | ||
|
||
import ca.uhn.fhir.jpa.packages.PackageInstallationSpec; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
import java.util.Set; | ||
|
||
public class ExtendedPackageInstallationSpec extends PackageInstallationSpec { | ||
|
||
public Set<String> getAdditionalResourceFolders() { | ||
return additionalResourceFolders; | ||
} | ||
|
||
public void setAdditionalResourceFolders(Set<String> additionalResourceFolders) { | ||
this.additionalResourceFolders = additionalResourceFolders; | ||
} | ||
|
||
@Schema( | ||
description = | ||
"If resources are being installed individually, this is list provides the resource types to install. By default, all conformance resources will be installed.") | ||
@JsonProperty("additionalResourceFolders") | ||
private Set<String> additionalResourceFolders; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.