-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migration to Java21 and Neo4j 5.19.0 (#1313)
Details: Changes in this pull request introduce support for java21 and neo4j 5.19.0. Deployment changes: Some changes to the circleci configuration, jitpack, and github actions workflow were needed. Jitpack by default runs builds with an older version of java but this can be addressed with the addition of a `jitpack.yml`. Circleci config also needed an update to allow circlular references during the app runtime. This is okay for now but perhaps can be addressed in the future. App configuration: The SMILE app configuration is mostly the same. There is now an added bean in the app configuration that explicitly sets the session factory for the neo4j driver. Model layer: The model layer changes include updates to the annotations classes used. Persistence layer: Appart from updating relevant annotations used for the persistence layer, some queries were cleaned up, removed, and/or improved to consolidate additional calls that were populating child edges and nodes. Example, we were using 2 calls to (1) fetch SampleMetadata nodes and (2) fetch the related SampleStatus nodes for the SampleMetadata nodes. This is now accomplished with one single query. Service layer: For the most part the service layer has remained the same. Some cleanup and refactoring were done to remove unused methods and/or methods that were made redundant due to the improved/consolidated queries modified in the persistence layer. Test layer: This layer required the most work as in addition to updating java and the testcontainers for supporting a newer neo4j instance, we also migrated the test framework to junit-jupiter. One of the major changes in the test classes is the use of @SpringBootTest annotations instead of using the @DataNeo4jTest annotation. There's also additional @TestConfiguration settings that needed to be introduced to support the updated test framework and components. Web layer: Some relatively minor changes introduced here to migrate away from swagger by springfox to swagger by open api. Reference documentation: https://springdoc.org/#migrating-from-springfox Signed-off-by: Angelica Ochoa <[email protected]> Update docker file for java21 (#1317) Signed-off-by: Angelica Ochoa <[email protected]> Fix for correcting CMO patient IDs (#1319) Fix for optional matching on sample status Signed-off-by: Angelica Ochoa <[email protected]> Fix end date formatter (#1320) Signed-off-by: Angelica Ochoa <[email protected]>
- Loading branch information
Showing
50 changed files
with
855 additions
and
677 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM maven:3.6.1-jdk-11-slim | ||
FROM maven:3.8.8 | ||
RUN mkdir /smile-server | ||
ADD . /smile-server | ||
WORKDIR /smile-server | ||
RUN mvn clean install -DskipTests | ||
|
||
FROM openjdk:11-slim | ||
FROM openjdk:21 | ||
COPY --from=0 /smile-server/server/target/smile_server.jar /smile-server/smile_server.jar | ||
ENTRYPOINT ["java"] |
This file contains 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,9 @@ | ||
jdk: | ||
- openjdk21 | ||
|
||
before_install: | ||
- sdk install maven 3.8.8 | ||
- sdk use maven 3.8.8 | ||
- sdk install java 21.0.2-open | ||
- sdk use java 21.0.2-open | ||
- sdk update |
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.