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

Support for older Elasticsearch servers? #37

Open
jpage-godaddy opened this issue Mar 31, 2022 · 2 comments
Open

Support for older Elasticsearch servers? #37

jpage-godaddy opened this issue Mar 31, 2022 · 2 comments

Comments

@jpage-godaddy
Copy link
Contributor

jpage-godaddy commented Mar 31, 2022

According to the this compatibility chart, @elastic/elasticsearch@8 which the recent mocha-elk-reporter release uses is only compatible with Elasticsearch servers on version 8. Sadly, our company has a dependency on a version 7 server.

Supposedly older @elastic/elasticsearch packages are forward-compatible with newer servers, so in theory if we used an older elasticsearch library it would enable us to support older servers. Any thoughts on whether we should downgrade that package?

We could also technically support multiple versions simulaneously by installing multiple client library versions, but that of course would have the downside of bloating an install.

@mpahuja
Copy link
Owner

mpahuja commented Mar 31, 2022

Downgrading to an older version seems to be right balance to give us best of both worlds. Should we try publishing a beta version with that version pinned and see if that works?

@mpahuja
Copy link
Owner

mpahuja commented Mar 31, 2022

just published this version with that change: mocha-elk-reporter@3.0.0-beta1 @jpage-godaddy try it out. PR is also up with the change

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

No branches or pull requests

2 participants