-
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
Feat/extra resource loading from npm #784
Conversation
This functionality would probably make sense to just roll into the base PackageInstallationSpec. I'd rather not have this project implementing novel features not actually found in the base project, that's hard for support. |
# Conflicts: # src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
…dition Added try-load of HAPI optimized dialect
Sure ... I can make a PR to the base getting the |
@jamesagnew whats your take on the refactored version of the |
and btw - the same thing I did on https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/784/files#diff-cca286d85a1c14aea8b529430ecd47aa4a803b53f4c7816deb7d602bd2af3268R11 can be done for a loooooong range of interceptor logic currently handled in the already way-too-big hapi-fhir-jpaserver-starter/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java Line 262 in 792f520
|
@jamesagnew I'll move the additional sources logic once its been merged in here - acceptable for you? Then we can merge this into #785 and remove it from the starter as soon as it can be resolved from a snapshot in core. |
# Conflicts: # src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
# Conflicts: # src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
@jamesagnew / @dotasek - I've isolated the feature set now into hapifhir/hapi-fhir#6802. Let me know if thats the feature set you had in mind, before I start writing tests and all. |
* Added reusable feature set from hapifhir/hapi-fhir-jpaserver-starter#784 * Added a few sanity tests * Update hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallationSpec.java Co-authored-by: tadgh <[email protected]> * Addressed most comments * Reduced package size and added exception * Added changelog --------- Co-authored-by: tadgh <[email protected]>
# Conflicts: # src/main/resources/application.yaml
Formatting check succeeded! |
Formatting check succeeded! |
Formatting check succeeded! |
…iesProvider.java Co-authored-by: Copilot <[email protected]>
# Conflicts: # pom.xml
Formatting check succeeded! |
Formatting check succeeded! |
@dotasek once 8.4 is out the door this should be good to go. |
Which would be after #842 |
# Conflicts: # src/main/resources/application.yaml
This Pull Request has failed the formatting check Please run You can automate this auto-formatting process to execute on the git pre-push hook, by installing pre-commit and then calling |
Formatting check succeeded! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for loading additional resources (e.g., example packages) from Implementation Guides based on configuration, extending the existing IG installation functionality while maintaining backwards compatibility.
- Introduces
ExtendedPackageInstallationSpec
class to support additional resource folder configuration - Updates package installation logic to process additional resources from specified folders
- Refactors partition mode configuration to use constructor injection and conditional bean creation
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
src/main/java/ca/uhn/fhir/jpa/starter/ig/ExtendedPackageInstallationSpec.java | New class extending PackageInstallationSpec with additionalResourceFolders property |
src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java | Updated package installer to handle additional resources and changed type references |
src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java | Modified to use ExtendedPackageInstallationSpec and added new property |
src/main/java/ca/uhn/fhir/jpa/starter/common/PartitionModeConfigurer.java | Refactored to use constructor injection and conditional bean creation |
src/main/java/ca/uhn/fhir/jpa/starter/common/OnPartitionModeEnabled.java | New condition class for partition mode enablement |
src/main/resources/application.yaml | Updated example configuration with additional resource folder example |
pom.xml | Updated HAPI FHIR version and revision number |
Dockerfile | Updated OpenTelemetry Java agent version |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
src/main/java/ca/uhn/fhir/jpa/starter/ig/ExtendedPackageInstallationSpec.java
Outdated
Show resolved
Hide resolved
…lationSpec.java Co-authored-by: Copilot <[email protected]>
This Pull Request has failed the formatting check Please run You can automate this auto-formatting process to execute on the git pre-push hook, by installing pre-commit and then calling |
This Pull Request has failed the formatting check Please run You can automate this auto-formatting process to execute on the git pre-push hook, by installing pre-commit and then calling |
Formatting check succeeded! |
Formatting check succeeded! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Formatting check succeeded! |
This feature is backwards compatible and introduces the option to load e.g. example packages from IG's based on configuration