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

Vega and Timelion visualizations losing filter on save #17719

Closed
stacey-gammon opened this issue Apr 16, 2018 · 8 comments
Closed

Vega and Timelion visualizations losing filter on save #17719

stacey-gammon opened this issue Apr 16, 2018 · 8 comments
Labels
Feature:Timelion Timelion app and visualization Feature:Vega Vega visualizations release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@stacey-gammon
Copy link
Contributor

stacey-gammon commented Apr 16, 2018

This is found in v6.3

Seems like it might be specific to the filter I selected. There is an exception in the console but it was from earlier.

filterbugtimelion

cc @elastic/kibana-discovery @elastic/kibana-visualizations

@stacey-gammon stacey-gammon added bug Fixes for quality problems that affect the customer experience blocker :Discovery Feature:Visualizations Generic visualization features (in case no more specific feature label is available) regression triage_needed labels Apr 16, 2018
@stacey-gammon stacey-gammon changed the title Timelion losing filter on save Vega and Timelion visualizations losing filter on save Apr 16, 2018
@stacey-gammon
Copy link
Contributor Author

cc @nyurik - same thing seems to happen with vega. Not sure if it's the same bug or different

vegafilterbug

@lukasolson lukasolson self-assigned this Apr 16, 2018
@lukasolson
Copy link
Member

I'll try to take a look later today

@lukasolson lukasolson removed their assignment Apr 16, 2018
@lukasolson
Copy link
Member

Doesn't appear to be an issue with the filter bar/query bar itself. Seems that for some reason these viz types don't store the query/filters for some reason. @elastic/kibana-visualizations Any ideas?

@ppisljar
Copy link
Member

maybe #17713 will solve this ?

@timroes
Copy link
Contributor

timroes commented Apr 17, 2018

#17713 won't fix that.

That's an issue with those visualizations bypass courier and SearchSource. Both visualization types (and TSVB) have a horrible and buggy way of reading out filters and query (at least if it's Lucene - as mentioned in #17722).

Storing filters and queries is implemented for search source automatically. Any visualization that doesn't use them is required to implement saving filters and queries itself. Since non implemented it, they should not show the filter and query bar in the editor (as TSVB does). That way the user at least doesn't have THAT weird behavior. They still have super weird behavior regarding pinned filters (see #17025).

The short term solution for this will be: fallback to the not ideal solution we have for TSVB and hiding the filter/query bar for Vega and Timelion (will open a PR for that). For actually proper building a solution one of two things would be required:

  • No visualization should bypass SearchSource anymore. Maybe we will even make this a requirement for getting out of experimental mode. That way the whole way Kibana is currently build will still work for that.
  • Quickly find a plan for unify the way global context is passed down to visualize #16641 to pass filters and queries down explicitly and do some more refactoring: if we pass down filters/queries explicitly to the request handlers and we would get rid of that dashboard_context but instead use the explicitly passed filters/queries, we could refactor the editor to always store the filters/queries on the saved object and merge them into the explicitly passed filters/queries, currently that only works with search source. We should really start discussing that very soon, since the issues and talks in just the past few days have showed me again, how broken that is. cc @spalger to be aware that we will need to discuss that very soon :)

@timroes timroes added Feature:Timelion Timelion app and visualization Feature:Vega Vega visualizations labels Apr 17, 2018
@timroes
Copy link
Contributor

timroes commented Apr 17, 2018

I've opened #17735 for review, that solves it the way we have it for TSVB (and actually also had it at least in 5.6 for timelion).

@timroes
Copy link
Contributor

timroes commented Apr 18, 2018

I will remove the blocker label, since we have hidden the filter/query bar again via #17735, but we should still figure out the proper way for storing filters/queries with this via the approaches in #16641

@timroes timroes added release_note:enhancement and removed blocker regression bug Fixes for quality problems that affect the customer experience labels Apr 18, 2018
@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Sep 16, 2018
@timroes timroes removed the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Sep 16, 2018
@stratoula
Copy link
Contributor

Not valid anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Timelion Timelion app and visualization Feature:Vega Vega visualizations release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants