Skip to content
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

Docs of hapi-fhir-testpage-overlay not loading properly due to local conformance statement issue #12

Merged
merged 9 commits into from
Mar 19, 2019

Conversation

jjcosare
Copy link
Contributor

  • fixed issue on local conformance statement not loading properly

@seanmcilvenna
Copy link
Collaborator

seanmcilvenna commented Feb 20, 2019

Why do you say it's not loading propertly? I run it as an "Application" using the ExampleServerDstu3IT class as the startup/main class within IntelliJ with the default settings without a prob... Are you running this via Jetty? or via Tomcat?

- removed .keep_hapi-fhir-jpaserver-starter file as its not needed anymore
@jjcosare
Copy link
Contributor Author

Why do you say it's not loading propertly? I run it as an "Application" using the ExampleServerDstu3IT class as the startup/main class within IntelliJ with the default settings without a prob... Are you running this via Jetty? or via Tomcat?

Running it via jetty based on docs mvn jetty:run and it doesn't load the hapi-fhir-testpage-overlay based on default settings... Upon checking more closely on ExampleServerDstu3IT, it doesn't have the same contextPath set based on the project's jetty plugin pom.xml so we end up having different results... Updating the contextPath of ExampleServerDstu3IT to "/hapi-fhir-jpaserver" will reveal the issue for us

…fuseToFetchThirdPartyUrls

- updated fhir version to R4 and used mysql as datasource with docs updated
- transferred jetty plugin to be viewable on intellij
- disabled oss snapshots
- replaced corsFilter based on new hapi docs
# Conflicts:
#	src/main/java/ca/uhn/fhir/jpa/starter/JpaRestfulServer.java
#	src/main/resources/hapi.properties
#	src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java
# Conflicts:
#	src/main/java/ca/uhn/fhir/jpa/starter/JpaRestfulServer.java
#	src/main/resources/hapi.properties
#	src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java
// Define your CORS configuration. This is an example
// showing a typical setup. You should customize this
// to your specific needs
CorsConfiguration config = new CorsConfiguration();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd probably make sense for this to be exposed in the HapiProperties file as a config item (maybe with the allowed origins being modifiable?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be great.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, have updated it to be configurable based on your suggestion. Also removed the unused lib on pom.xml and cors configuration on web.xml.

datasource.url=jdbc:derby:directory:target/jpaserver_derby_files;create=true
datasource.username=
datasource.password=
datasource.driver=com.mysql.cj.jdbc.Driver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather leave the default configuration using Derby since that will work for anyone regardless of what other software they have installed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, have reverted back to derby and instead added some updates on readme regarding mysql usage.

…s:https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/12/files/6858c0d799ade820ab3d26b303a907cb0d6caec8#r266027967

- reverted mysql as default and used derby based on change request https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/12/files/6858c0d799ade820ab3d26b303a907cb0d6caec8#r266028296 and updated readme to include specifics on configuring mysql
- defaulted to jetty configs on hapi.properties so that this starter app will outright work without changing any configs with mvn jetty:run
- updated subscription configs as it doesn't match already active subscription on subsequent runs using mysql as db
- updated project based path resolution and removed unused file .keep_hapi-fhir-jpaserver-starter
… from "/hapi-fhir-jpaserver" to "/" and hapi.properties configs on server_address and server.base works out of the box with jetty

- replicated testWebsocketSubscription test from ExampleServerR4IT into ExampleServerDstu3IT
- added favicon based on smiley on hapi logo
@jamesagnew
Copy link
Contributor

Looks great! Merging now.

@jamesagnew jamesagnew closed this Mar 19, 2019
@jamesagnew jamesagnew reopened this Mar 19, 2019
@jamesagnew jamesagnew merged commit 17bce10 into hapifhir:master Mar 19, 2019
simonvadee referenced this pull request in arkhn/hapi-fhir Feb 24, 2022
[permissions] search narrowing interceptor uses only active Practitio…
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.

None yet

4 participants