Skip to content

Conversation

jkiddo
Copy link
Collaborator

@jkiddo jkiddo commented Feb 23, 2025

This feature is backwards compatible and introduces the option to load e.g. example packages from IG's based on configuration

@jamesagnew
Copy link
Contributor

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
@jkiddo
Copy link
Collaborator Author

jkiddo commented Feb 24, 2025

Sure ... I can make a PR to the base getting the additionalResourceFolders added the PackageInstallationSpec.

@jkiddo
Copy link
Collaborator Author

jkiddo commented Feb 24, 2025

@jamesagnew whats your take on the refactored version of the PostConstruct I've done here in https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/784/files#diff-0f42a12718125be49d417ad9c402f5f2cecddfb7cb0ecfde364ad09132fa2a99R21 as mentioned in #758

@jkiddo
Copy link
Collaborator Author

jkiddo commented Feb 24, 2025

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

method (I'm not pointing fingers here as I most likely authored a lot of it myself).

@jkiddo jkiddo marked this pull request as ready for review February 25, 2025 07:56
@jkiddo jkiddo requested a review from dotasek February 25, 2025 07:56
@jkiddo
Copy link
Collaborator Author

jkiddo commented Feb 27, 2025

@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
jkiddo added a commit to jkiddo/hapi-fhir that referenced this pull request Mar 14, 2025
@jkiddo
Copy link
Collaborator Author

jkiddo commented Mar 14, 2025

@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.

@jkiddo jkiddo requested a review from Copilot April 29, 2025 07:38
Copilot

This comment was marked as outdated.

tadgh added a commit to hapifhir/hapi-fhir that referenced this pull request May 2, 2025
* 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
@robogary
Copy link

robogary commented May 7, 2025

Formatting check succeeded!

@robogary
Copy link

Formatting check succeeded!

@robogary
Copy link

Formatting check succeeded!

@robogary
Copy link

robogary commented Jun 5, 2025

Formatting check succeeded!

@robogary
Copy link

robogary commented Jun 5, 2025

Formatting check succeeded!

@jkiddo
Copy link
Collaborator Author

jkiddo commented Jun 5, 2025

@dotasek once 8.4 is out the door this should be good to go.

@jkiddo
Copy link
Collaborator Author

jkiddo commented Jul 11, 2025

Which would be after #842

@robogary
Copy link

This Pull Request has failed the formatting check

Please run mvn spotless:apply or mvn clean install -DskipTests to fix the formatting issues.

You can automate this auto-formatting process to execute on the git pre-push hook, by installing pre-commit and then calling pre-commit install --hook-type pre-push. This will cause formatting to run automatically whenever you push.

@robogary
Copy link

Formatting check succeeded!

@jkiddo jkiddo requested a review from Copilot August 25, 2025 14:24
Copy link
Contributor

@Copilot Copilot AI left a 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.

@robogary
Copy link

This Pull Request has failed the formatting check

Please run mvn spotless:apply or mvn clean install -DskipTests to fix the formatting issues.

You can automate this auto-formatting process to execute on the git pre-push hook, by installing pre-commit and then calling pre-commit install --hook-type pre-push. This will cause formatting to run automatically whenever you push.

@jkiddo jkiddo marked this pull request as ready for review August 25, 2025 14:33
@robogary
Copy link

This Pull Request has failed the formatting check

Please run mvn spotless:apply or mvn clean install -DskipTests to fix the formatting issues.

You can automate this auto-formatting process to execute on the git pre-push hook, by installing pre-commit and then calling pre-commit install --hook-type pre-push. This will cause formatting to run automatically whenever you push.

@robogary
Copy link

Formatting check succeeded!

@robogary
Copy link

Formatting check succeeded!

Copy link
Contributor

@Copilot Copilot AI left a 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.

@robogary
Copy link

Formatting check succeeded!

@jkiddo jkiddo requested a review from patrick-werner August 25, 2025 18:50
@jkiddo jkiddo merged commit 8621c0d into hapifhir:master Aug 27, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants