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

ES 8.x upgrade #917

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

ES 8.x upgrade #917

wants to merge 3 commits into from

Conversation

konalegi
Copy link
Contributor

Replace this text with a summary of the changes in your PR.
The more detailed you are, the better.


Before submitting the PR make sure the following are checked:

  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the changelog if the new code introduces user-observable changes. See changelog entry format for details.

spec.add_dependency 'activesupport', '>= 5.2' # Remove with major version bump, 8.x
spec.add_dependency 'elasticsearch', '>= 7.12.0', '< 7.14.0'
spec.add_dependency 'activesupport', '>= 6.1'
spec.add_dependency 'elasticsearch', '>= 8.11', '< 9.0'

Choose a reason for hiding this comment

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

Is the plan here to do a major version bump of Chewy as well? So the chewy 7.x series will continue to get any bugfixes for ES7 gems, and the chewy 8.x series will support the ES8.x gems?

Copy link
Contributor Author

@konalegi konalegi Dec 16, 2023

Choose a reason for hiding this comment

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

Is the plan here to do a major version bump of Chewy as well?

Yes, since the major version of the Chewy, is equal to major version of the ES.

So the chewy 7.x series will continue to get any bugfixes for ES7 gems, and the chewy 8.x series will support the ES8.x gems?

This my plan, but since I have never done this before, cannot say for sure, how hard it will be to support both versions at the same time.

Choose a reason for hiding this comment

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

Hopefully it shouldn't be too much work to keep the 7.x branch up to date with changes in the Elasticsearch Ruby client. The last minor release is 7.17 and we're not planning to release any new minors or add any new features for the moment, just addressing bugs or security issues, so patch releases only.

'type' => 'mapper_parsing_exception',
'reason' => 'object mapping for [object] tried to parse field [object] as object, but found a concrete value'
'type' => 'document_parsing_exception',
'reason' => '[1:27] object mapping for [object] tried to parse field [object] as object, but found a concrete value'

Choose a reason for hiding this comment

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

Are these numeric prefixes ([1:27] in this example) new error-code constants from the ES client gem ... or contingent on the spec data setup here, or something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't know this yet, I've just made all specs passing, to see how many things do we break by upgrading to ES 8.x

Copy link

Choose a reason for hiding this comment

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

When can we expect for this to be considered for release?

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.

None yet

4 participants