-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
fix filter drawing and feature drawing broken in 8.2 #129642
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! thanks for the fix!
tested in chrome and code review.
💚 Build SucceededMetrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
* fix filter drawing and freature drawing broken in 8.2 * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * tslint * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit c920640)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* fix filter drawing and freature drawing broken in 8.2 * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * tslint * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit c920640) Co-authored-by: Nathan Reese <[email protected]>
Fixes #129632
#113144 added the below redux selector
This causes problems with react component re-render checking.
map.settings.customIcons.map
always returns a new array instance so react re-render instance checking will always trigger as updated props.This exposed an existing bug in
draw_control.tsx
. Logic incomponentDidUpdate
set draw control mode to SIMPLE_SELECT when it should not have been. The redux selector bug causedcomponentDidUpdate
to fire on all redux state changes (redux state is updated on mouse move to set the current mouse coordinates).The fix:
draw_control.tsx
is updated to better guard the setting of draw control mode to SIMPLE_SELECTmap.settings.customIcons
instead ofmap.settings.customIcons.map
.