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

Make ip field parsing easier to read #76363

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Aug 11, 2021

This makes the IP parsing code in IpFieldMapper a little easier to
read by removing the string/object juggling. It also pulls the value
parsing bit out into a very sensible and readable method. As a bonus,
this method is reusable and we do plan to reuse it.

@nik9000 nik9000 added >non-issue :Search Foundations/Mapping Index mappings, including merging and defining field types v8.0.0 v7.15.0 labels Aug 11, 2021
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Aug 11, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

This makes the IP parsing code in `IpFieldMapper` a little easier to
read by removing the string/object juggling. It also pulls the value
parsing bit out into a very sensible and readable method. As a bonus,
this method is reusable and we *do* plan to reuse it.
Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM, much tidier.

@nik9000 nik9000 added auto-backport Automatically create backport pull requests when merged auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Aug 11, 2021
@elasticsearchmachine elasticsearchmachine merged commit 72ba4cd into elastic:master Aug 11, 2021
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
backport --pr 76363

nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Aug 11, 2021
This makes the IP parsing code in `IpFieldMapper` a little easier to
read by removing the string/object juggling. It also pulls the value
parsing bit out into a very sensible and readable method. As a bonus,
this method is reusable and we *do* plan to reuse it.
@nik9000
Copy link
Member Author

nik9000 commented Aug 11, 2021

broken_heart Backport failed

I've done it myself.

elasticsearchmachine pushed a commit that referenced this pull request Aug 11, 2021
This makes the IP parsing code in `IpFieldMapper` a little easier to
read by removing the string/object juggling. It also pulls the value
parsing bit out into a very sensible and readable method. As a bonus,
this method is reusable and we *do* plan to reuse it.
@nik9000
Copy link
Member Author

nik9000 commented Aug 11, 2021

Backported in #76369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >non-issue :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team v7.15.0 v8.0.0-alpha2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants