Skip to content

Remove compatibility helpers for Elasticsearch to Opensearch - #3693

Merged
koetsier merged 9 commits into
mainfrom
remove_compat
Sep 21, 2026
Merged

koetsier merged 9 commits into
mainfrom
remove_compat

Conversation

@koetsier

@koetsier koetsier commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Previously, we introduced the ElasticsearchClient class to ensure our code
is compatible with both Elasticsearch version 6.8 and Opensearch

Having completed the upgrade to Opensearch, we can remove this
compatibility code.

We Do not need compatibility with Elasticsearch 6.x anymore
We Do not need compatibility with Elasticsearch 6.x anymore
We Do not need compatibility with Elasticsearch 6.x anymore
We Do not need compatibility with Elasticsearch 6.x anymore
We Do not need compatibility with Elasticsearch 6.x anymore
We Do not need compatibility with Elasticsearch 6.x anymore
We Do not need compatibility with Elasticsearch 6.x anymore
@koetsier
koetsier marked this pull request as ready for review September 21, 2026 09:32
This class provided compatibility between Elasticsearch and OpenSearch by
normalising the representation of the total number of documents returned.
Now that we have upgraded to OpenSearch, it is no longer needed.

Update the tests to reflect the removal.
@koetsier koetsier changed the title Remove compatibility helpers for Elasticsearch 6.8 to 7.10 Remove compatibility helpers for Elasticsearch to Opensearch Sep 21, 2026
As we have removed the compatibility classes, we can remove this.
module ElasticsearchClient
class << self
def delete(id:, index_name:, client: Services.elasticsearch)
client.delete(compatible_params(index: index_name, id: id))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we also be deleting compatible_params on line 35 in this commit?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh you're deleting the whole file in 7c4cacd. All good 👍

@stringiest stringiest left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! 🧹

@hannako hannako left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@koetsier
koetsier merged commit 085aae4 into main Sep 21, 2026
7 checks passed
@koetsier
koetsier deleted the remove_compat branch September 21, 2026 14:11
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.

3 participants