Skip to content

apply field formatter to tag cloud - #14230

Merged
nreese merged 2 commits into
elastic:masterfrom
nreese:tag_cloud
Oct 3, 2017
Merged

nreese merged 2 commits into
elastic:masterfrom
nreese:tag_cloud

Conversation

@nreese

@nreese nreese commented Sep 30, 2017

Copy link
Copy Markdown
Contributor

fixes #12069

Applies field formatter to tag cloud labels

@nreese nreese added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix v6.0.0 v6.1.0 v7.0.0 labels Sep 30, 2017

@ppisljar ppisljar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, just a minor comment about $scope.$apply, if we can get rid of it that would be even better

const aggs = $scope.vis.getAggConfig().getResponseAggs();
const aggConfigResult = new AggConfigResult(aggs[0], false, event, event);
clickHandler({ point: { aggConfigResult: aggConfigResult } });
$scope.$apply();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this really needed ? are you sure it will never run in the middle of digest cycle ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure about never running in the middle of the digest cycle but without it - the filter is not created until you do soemthing else that runs a digest cycle

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what about using the new vis.type.API.click ?

@nreese
nreese merged commit d5ed14f into elastic:master Oct 3, 2017
nreese added a commit to nreese/kibana that referenced this pull request Oct 4, 2017
* apply field formatter to tag cloud

* use unformatted value for filter creation
nreese added a commit to nreese/kibana that referenced this pull request Oct 4, 2017
* apply field formatter to tag cloud

* use unformatted value for filter creation
nreese added a commit that referenced this pull request Oct 4, 2017
* apply field formatter to tag cloud

* use unformatted value for filter creation
nreese added a commit that referenced this pull request Oct 4, 2017
* apply field formatter to tag cloud (#14230)

* apply field formatter to tag cloud

* use unformatted value for filter creation

* add removeFilter for functional tests
@nreese
nreese deleted the tag_cloud branch February 13, 2018 19:33
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
* apply field formatter to tag cloud

* use unformatted value for filter creation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix v6.0.0 v6.1.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tag cloud visualization should use field formatters

3 participants