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

[Visualizations] Each visType returns its supported triggers #70177

Merged
merged 6 commits into from
Jul 2, 2020

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Jun 29, 2020

Summary

Fixes #61601. We add a callback on each vis type in which it returns which triggers it supports in order to avoid having hardcoded on the embeddable the vis types.

Tested on Chrome and Safari.

Checklist

Delete any items that are not applicable to this PR.

@stratoula stratoula added release_note:skip Skip the PR/issue when compiling release notes Feature:Drilldowns Embeddable panel Drilldowns Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Jun 29, 2020
case 'pie':
case 'table':
case 'tagcloud':
return [VIS_EVENT_TO_TRIGGER.filter];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here we only have supportedTriggers only for filter and not for brush. On each of the above visTypes I have also added brush where I think that it is supported. Not 100% sure though

@stratoula stratoula self-assigned this Jun 29, 2020
@stratoula stratoula marked this pull request as ready for review June 29, 2020 14:18
@stratoula stratoula requested a review from a team June 29, 2020 14:18
@stratoula stratoula requested a review from a team as a code owner June 29, 2020 14:18
Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

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

code LGTM

@stratoula stratoula requested a review from timroes June 30, 2020 06:24
@stratoula
Copy link
Contributor Author

@elasticmachine merge upstream

@stratoula
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@stratoula
Copy link
Contributor Author

@timroes are you ok with this ?

@timroes
Copy link
Contributor

timroes commented Jul 1, 2020

If you'd mind shortening the PR title to something that fits into it before merging (since it will also become the commit message of the squashed commit), I am fine with it :-)

@stratoula stratoula changed the title Refactor hardcoded supportedTriggers function with a callback functio… Enables each visType to return its supported triggers Jul 2, 2020
@stratoula
Copy link
Contributor Author

Of course my dear @timroes, I hope this is better :)

@stratoula stratoula changed the title Enables each visType to return its supported triggers [Visualizations] Each visType returns its supported triggers Jul 2, 2020
Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Code LGTM

@stratoula stratoula merged commit f86afd4 into elastic:master Jul 2, 2020
stratoula added a commit to stratoula/kibana that referenced this pull request Jul 2, 2020
…#70177)

* Refactor hardcoded supportedTriggers function with a callback function of visType

* use typescript to check if function exists

* Remove brush event from heatmap

Co-authored-by: Elastic Machine <[email protected]>
stratoula added a commit that referenced this pull request Jul 2, 2020
…#70561)

* Refactor hardcoded supportedTriggers function with a callback function of visType

* use typescript to check if function exists

* Remove brush event from heatmap

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

Co-authored-by: Elastic Machine <[email protected]>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 2, 2020
* master: (46 commits)
  [Visualize] Add missing advanced settings and custom label for pipeline aggs (elastic#69688)
  Use dynamic: false for config saved object mappings (elastic#70436)
  [Ingest Pipelines] Error messages (elastic#70167)
  [APM] Show transaction rate per minute on Observability Overview page (elastic#70336)
  Filter out error when calculating a label (elastic#69934)
  [Visualizations] Each visType returns its supported triggers (elastic#70177)
  [Telemetry] Report data shippers (elastic#64935)
  Reduce SavedObjects mappings for Application Usage (elastic#70475)
  [Lens] fix dimension label performance issues (elastic#69978)
  Skip failing endgame tests (elastic#70548)
  [SIEM] Reenabling Cypress tests (elastic#70397)
  [SIEM][Security Solution][Endpoint] Endpoint Artifact Manifest Management + Artifact Download and Distribution (elastic#67707)
  [Security] Adds field mapping support to rule creation (elastic#70288)
  SECURITY-ENDPOINT: add fields for events to metadata document (elastic#70491)
  Fixed assertion in hybrid index pattern test to iterate through indices (elastic#70130)
  [SIEM][Exceptions] - Exception builder component (elastic#67013)
  [Ingest Manager] Rename data sources to package configs (elastic#70259)
  skip suites blocking es snapshot promomotion (elastic#70532)
  [Metrics UI] Fix asynchronicity and error handling in Snapshot API (elastic#70503)
  fix export response (elastic#70473)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Drilldowns Embeddable panel Drilldowns Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:skip Skip the PR/issue when compiling release notes v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visualize embeddable has hardcoded supportTriggers
6 participants