Skip to content

Conversation

jkiddo
Copy link
Collaborator

@jkiddo jkiddo commented Sep 7, 2025

Rewiring the use of elastic search to follow usual Spring Boot way of doing it

@robogary
Copy link

robogary commented Sep 7, 2025

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

robogary commented Sep 7, 2025

Formatting check succeeded!

@robogary
Copy link

robogary commented Sep 7, 2025

Formatting check succeeded!

@robogary
Copy link

robogary commented Sep 7, 2025

Formatting check succeeded!

@robogary
Copy link

robogary commented Sep 7, 2025

Formatting check succeeded!

@robogary
Copy link

robogary commented Sep 7, 2025

Formatting check succeeded!

@robogary
Copy link

robogary commented Sep 8, 2025

Formatting check succeeded!

@jkiddo
Copy link
Collaborator Author

jkiddo commented Sep 8, 2025

Relates to hapifhir/hapi-fhir#7242

@jkiddo jkiddo requested a review from Copilot September 8, 2025 06:50
Copilot

This comment was marked as outdated.

@robogary
Copy link

robogary commented Sep 8, 2025

Formatting check succeeded!

@robogary
Copy link

robogary commented Sep 8, 2025

Formatting check succeeded!

@jkiddo jkiddo requested a review from Copilot September 8, 2025 12:17
Copilot

This comment was marked as outdated.

@robogary
Copy link

robogary commented Sep 8, 2025

Formatting check succeeded!

@jkiddo jkiddo requested a review from Copilot September 8, 2025 13:35
Copilot

This comment was marked as outdated.

@jkiddo jkiddo marked this pull request as ready for review September 8, 2025 15:02
@robogary
Copy link

robogary commented Sep 8, 2025

Formatting check succeeded!

@robogary
Copy link

robogary commented Sep 9, 2025

Formatting check succeeded!

@robogary
Copy link

robogary commented Sep 9, 2025

Formatting check succeeded!

@jkiddo jkiddo requested a review from Copilot September 9, 2025 07:55
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 rewires Elasticsearch configuration to follow Spring Boot's standard approach for Elasticsearch integration. The changes replace custom Elasticsearch configuration with Spring Boot's auto-configuration and update related components.

Key changes:

  • Replace custom Elasticsearch configuration with Spring Boot's standard approach
  • Migrate from custom condition classes to @ConditionalOnProperty annotations
  • Update Elasticsearch service implementation to use Spring Boot's ElasticsearchClient

Reviewed Changes

Copilot reviewed 37 out of 37 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/test/resources/application-test.yaml Remove extensive configuration, simplifying test setup
Multiple test files Add Hibernate search backend configuration for local testing
src/main/resources/application.yaml Restructure Hibernate and Elasticsearch configuration to use Spring Boot patterns
EnvironmentHelper.java Remove custom Hibernate properties configuration logic
Multiple config classes Replace custom condition classes with @ConditionalOnProperty annotations
ElasticsearchBootSvcImpl.java New Elasticsearch service implementation using Spring Boot's client
Application.java Enable Spring Boot's Elasticsearch auto-configuration
pom.xml Move Elasticsearch dependencies from test to main scope

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


@ExtendWith(SpringExtension.class)
@Testcontainers
@Disabled
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this intended to be left disabled? :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes - its marginally better that having this:

MartinBernstorff added a commit to MartinBernstorff/hapi-fhir-jpaserver-starter that referenced this pull request Sep 15, 2025
The workflow succeeds giving a green check-mark next to the commit id. Perhaps writing a comment each time is redundant?

E.g.: hapifhir#856
jkiddo pushed a commit that referenced this pull request Sep 16, 2025
* ci: remove success message from formatting check

The workflow succeeds giving a green check-mark next to the commit id. Perhaps writing a comment each time is redundant?

E.g.: #856

* Update spotless check workflow to handle failures

Modify condition for PR comment action to run only on failure.
@jkiddo jkiddo requested a review from Copilot September 22, 2025 15:27
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

Copilot reviewed 39 out of 39 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

public void mcpTests() throws JsonProcessingException {

var fhirContext = FhirContext.forR4();

Copy link
Preview

Copilot AI Sep 22, 2025

Choose a reason for hiding this comment

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

The endpoint change from '/mcp/message' to '/mcp/messages' should be documented in the test or PR description to clarify whether this is an intentional API change or a correction to match the new MCP configuration.

Suggested change
// The endpoint '/mcp/messages' is used here instead of '/mcp/message' to match the current MCP configuration.
// This is an intentional change reflecting the updated API endpoint.

Copilot uses AI. Check for mistakes.

@jkiddo jkiddo merged commit 9576cfa into hapifhir:master Sep 22, 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