-
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
[Maps] clean features in locked tooltip after re-fetch #48016
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
💚 Build Succeeded |
💔 Build Failed |
💚 Build Succeeded |
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.
Great, thanks!
💚 Build Succeeded |
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.
thx!
|
||
const emsIdField = emsFileLayer._config.fields.find(field => { | ||
return field.type === 'id'; | ||
}); |
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.
thx!
💚 Build Succeeded |
* [Maps] clean features in locked tooltip after re-fetch * fetch geometry from FEATURE_ID_PROPERTY_NAME instead of _id * set FEATURE_ID_PROPERTY_NAME for pew pew source * do not update tooltip state if no features were removed * set FEATURE_ID_PROPERTY_NAME for EMS_file source and kibana_regionmap source * avoid adding lodash to map actions * use if else instead of early return
* [Maps] clean features in locked tooltip after re-fetch * fetch geometry from FEATURE_ID_PROPERTY_NAME instead of _id * set FEATURE_ID_PROPERTY_NAME for pew pew source * do not update tooltip state if no features were removed * set FEATURE_ID_PROPERTY_NAME for EMS_file source and kibana_regionmap source * avoid adding lodash to map actions * use if else instead of early return
Fixes #44116 and #32560
There are 2 bugs
clearTooltipStateForLayer
action was not updated to support multiple features in tooltipState back in 7.3__kbn__feature_id__
changes for each re-refetch even if the underling feature is the same. This makes it impossible to map features from on dataRequest to the next dataRequest.This PR renames
clearTooltipStateForLayer
tocleanTooltipStateForLayer
and updates the logic to support tooltipState with multiple features. The logic is also updated to keep tooltip features for a layer if they still exist in the layer.This PR updates ES documents source, ES grid source, and ES point to point source to provide consistent
__kbn__feature_id__
across re-fetches for features that are the same.