kapua icon indicating copy to clipboard operation
kapua copied to clipboard

✨ [ES] - Code refactorings: cleaning old code and improving readability

Open Agnul97 opened this issue 3 months ago • 1 comments

Main refactorings:

  1. Safer multi-threading inizialitation of elasticSearchClient inside RestElasticsearchClientProvider
  2. Removed no more useful code inside RestElasticsearchClientProvider (regarding a useless internalElasticsearchRestClient that was actually never used) and removed a not used logic to re-connect such client if missing
  3. Renamed RestElasticsearchClient into RestElasticsearchClientWrapper
  4. deleted no more needed abstraction AbstractElasticsearchClient (the only client now used is the REST one and probably will be this also in the future)

Agnul97 avatar Oct 10 '25 13:10 Agnul97

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

:x: Patch coverage is 0% with 35 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ch/client/rest/RestElasticsearchClientWrapper.java 0.00% 16 Missing :warning:
...h/client/rest/RestElasticsearchClientProvider.java 0.00% 11 Missing :warning:
.../elasticsearch/client/ElasticsearchRepository.java 0.00% 4 Missing :warning:
.../kapua/service/datastore/steps/DatastoreSteps.java 0.00% 4 Missing :warning:

:loudspeaker: Thoughts on this report? Let us know!

codecov-commenter avatar Oct 10 '25 14:10 codecov-commenter