Skip to content

Centralize BoundingBox logic to a dedicated class #50253

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

Merged
merged 6 commits into from
Dec 23, 2019

Conversation

talevy
Copy link
Contributor

@talevy talevy commented Dec 16, 2019

Both geo_bounding_box query and geo_bounds aggregation have
a very similar definition of a "bounding box". A lot of this
logic (serialization, xcontent-parsing, etc) can be centralized
instead of having separated efforts to do the same things

relates to #50002 where yet another bounds context is to be
introduced in the geo*_grid aggregations.

Both geo_bounding_box query and geo_bounds aggregation have
a very similar definition of a "bounding box". A lot of this
logic (serialization, xcontent-parsing, etc) can be centralized
instead of having separated efforts to do the same things
@talevy talevy added the :Analytics/Geo Indexing, search aggregations of geo points and shapes label Dec 16, 2019
@talevy talevy requested review from imotov and nknize December 16, 2019 22:26
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Geo)

@talevy
Copy link
Contributor Author

talevy commented Dec 17, 2019

run elasticsearch-ci/1

@itsmed
Copy link

itsmed commented Dec 17, 2019

aborted build for the upgrade, jenkins test this please

@talevy
Copy link
Contributor Author

talevy commented Dec 18, 2019

run elasticsearch-ci/default-distro

Copy link
Contributor

@nknize nknize left a comment

Choose a reason for hiding this comment

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

Nice! I like the cleanup of GeoBoundingBoxQueryBuilder. For posterity I'll note this also relates to the old old old issue: #10617

@talevy
Copy link
Contributor Author

talevy commented Dec 18, 2019

thanks for the review Nick, I've renamed the class!

@talevy talevy requested a review from nknize December 18, 2019 17:46
@talevy
Copy link
Contributor Author

talevy commented Dec 18, 2019

@elasticmachine update branch

Copy link
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

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

LGTM

@talevy talevy merged commit 769650e into elastic:master Dec 23, 2019
@talevy talevy deleted the reuse-bounding-box branch December 23, 2019 18:07
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
Both geo_bounding_box query and geo_bounds aggregation have
a very similar definition of a "bounding box". A lot of this
logic (serialization, xcontent-parsing, etc) can be centralized
instead of having separated efforts to do the same things
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >refactoring v7.6.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants