Skip to content

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Dec 17, 2019

This PR uses data request to gather field formatters so they can be accessed synchronously during data preparation phase. This will be required with text labels since setFeatureState must stay synchronous and field formatters are now needed in that method.

decouples #52957 and #53173

@nreese nreese added chore Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.6.0 labels Dec 17, 2019
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

Thanks! Some suggestions in the comments.

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

+1, but using lambda-notation add noise imho, consider removing

return fieldMeta ? fieldMeta : fieldMetaFromLocalFeatures;
};

_getFieldFormatter = fieldName => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar imho. make this part of the type _getFieldFormatter(fieldName){

@nreese
Copy link
Contributor Author

nreese commented Dec 17, 2019

retest

@nreese
Copy link
Contributor Author

nreese commented Dec 17, 2019

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Dec 18, 2019

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

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

@nreese nreese merged commit 966dd82 into elastic:master Dec 18, 2019
nreese added a commit to nreese/kibana that referenced this pull request Dec 18, 2019
* [Maps] gather field formatters in data request so they can be used sync in vector_style

* review feedback

* hasMatchingMetricField

* review feedback

* fix typo in function name
nreese added a commit that referenced this pull request Dec 18, 2019
* [Maps] gather field formatters in data request so they can be used sync in vector_style

* review feedback

* hasMatchingMetricField

* review feedback

* fix typo in function name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore release_note:skip Skip the PR/issue when compiling release notes Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants