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

Allow multiple elasticsearch hosts #54

Merged
merged 8 commits into from
Dec 12, 2024
Merged

Allow multiple elasticsearch hosts #54

merged 8 commits into from
Dec 12, 2024

Conversation

klesaulnier
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What is the current behavior?
Application can only work with one elastisearch instance

What is the new behavior (if this is a feature change)?
Application can work with multiple elastisearch instance using RestClient

LE SAULNIER Kevin added 3 commits December 6, 2024 11:59
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
Copy link
Contributor

@antoinebhs antoinebhs left a comment

Choose a reason for hiding this comment

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

Code OK

@@ -30,40 +26,10 @@

@Configuration
@EnableElasticsearchRepositories
public class ESConfig extends ElasticsearchConfiguration {
public class ESConfig extends ElasticsearchConfigurationSupport {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice to have this ElasticsearchConfigurationSupport!

@@ -30,40 +26,10 @@

@Configuration
@EnableElasticsearchRepositories
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need @EnableElasticsearchRepositories ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right, I've removed it and made some tests, it's still working without it

LE SAULNIER Kevin and others added 5 commits December 12, 2024 09:21
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
Copy link

sonarcloud bot commented Dec 12, 2024

@klesaulnier klesaulnier merged commit 4de78a9 into main Dec 12, 2024
5 checks passed
@klesaulnier klesaulnier deleted the multiple-es-hosts branch December 12, 2024 12:20
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.

2 participants