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

[Maps] Set filterByMapBounds to default constant if no arg passed #55068

Merged

Conversation

kindsun
Copy link
Contributor

@kindsun kindsun commented Jan 16, 2020

Fixes/removes this error when adding an ES Search Source by setting filterByMapBounds to its default constant if no arg is passed to the component:

image

@kindsun kindsun added bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.6.0 labels Jan 16, 2020
@kindsun kindsun requested a review from a team as a code owner January 16, 2020 16:38
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@kindsun kindsun added the release_note:skip Skip the PR/issue when compiling release notes label Jan 16, 2020
Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

this component is actually broken as https://github.com/elastic/kibana/blob/master/x-pack/legacy/plugins/maps/public/layers/sources/es_search_source/es_search_source.js#L57 never passes filterByMapBounds to the component, so its value is never updated in props.

The EuiSwitch checked property should be coming from this.state.filterByMapBounds instead of this.props.filterByMapBounds

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

lgtm

@kindsun
Copy link
Contributor Author

kindsun commented Feb 4, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kindsun kindsun merged commit 4c8049f into elastic:master Feb 4, 2020
kindsun pushed a commit to kindsun/kibana that referenced this pull request Feb 4, 2020
…astic#55068)

* Set filterByMapBounds to default constant if no arg passed

* toggle accidentally refers to props instead of state for filterByBounds. update to state

* Review feedback. Remove extra filterByMapBounds

Co-authored-by: Elastic Machine <[email protected]>
kindsun pushed a commit to kindsun/kibana that referenced this pull request Feb 4, 2020
…astic#55068)

* Set filterByMapBounds to default constant if no arg passed

* toggle accidentally refers to props instead of state for filterByBounds. update to state

* Review feedback. Remove extra filterByMapBounds

Co-authored-by: Elastic Machine <[email protected]>
kindsun pushed a commit that referenced this pull request Feb 4, 2020
…5068) (#56768)

* Set filterByMapBounds to default constant if no arg passed

* toggle accidentally refers to props instead of state for filterByBounds. update to state

* Review feedback. Remove extra filterByMapBounds

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
kindsun pushed a commit that referenced this pull request Feb 5, 2020
…5068) (#56767)

* Set filterByMapBounds to default constant if no arg passed

* toggle accidentally refers to props instead of state for filterByBounds. update to state

* Review feedback. Remove extra filterByMapBounds

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:skip Skip the PR/issue when compiling release notes v7.6.1 v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants