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

Remove LegacyESVersion.V_6_6_x constants #1804

Merged
merged 1 commit into from
Dec 30, 2021
Merged

Remove LegacyESVersion.V_6_6_x constants #1804

merged 1 commit into from
Dec 30, 2021

Conversation

adnapibar
Copy link
Contributor

Description

This PR removes the LegacyESVersion.V_6_6_x constants and all their usages.

Issues Resolved

Part of #1674

Check List

  • All tests pass
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Rabi Panda adnapibar@gmail.com

@adnapibar adnapibar requested a review from a team as a code owner December 23, 2021 19:55
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

AbstractShapeGeometryFieldMapper<?, ?> shapeMapper = (context.indexCreatedVersion().before(LegacyESVersion.V_6_6_0))
? legacyShapeBuilder.build(context)
: shapeBuilder.build(context);
AbstractShapeGeometryFieldMapper<?, ?> shapeMapper = shapeBuilder.build(context);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you could completely drop legacyShapeBuilder from this class

@adnapibar adnapibar added non-issue bugs / unexpected behaviors that end up non issues; audit trail simple changes that aren't issues v2.0.0 Version 2.0.0 labels Dec 23, 2021
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 92b6c6b517dc44a2779406a23c0417582f029f6d
Log 1655

Reports 1655

This commit removes all usages of the `LegacyESVersion.V_6_6_x` constants from the codebase.

Signed-off-by: Rabi Panda <adnapibar@gmail.com>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 956d3dd
Log 1714

Reports 1714

@adnapibar adnapibar merged commit 5ccb22f into opensearch-project:main Dec 30, 2021
@adnapibar adnapibar deleted the remove-v6.6.x branch November 15, 2022 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-issue bugs / unexpected behaviors that end up non issues; audit trail simple changes that aren't issues v2.0.0 Version 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants