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

Filters from Vega visualization are not applied when these are displayed in dashboard #24923

Closed
clemlesne opened this issue Oct 31, 2018 · 2 comments

Comments

@clemlesne
Copy link

Hello,

The filters applied from Vega visualizations itself are not applied when these one are in a dashboard.

Kibana version: 6.4.0

Elasticsearch version: 6.4.0

Browser version: Version 64.0.3282.119

Browser OS version: Windows 10.0.16299

Original install method (e.g. download page, yum, from source, etc.): download page

Description of the problem including expected versus actual behavior: I want to use custom filters for Vega visualizations. These filters are working well when the visualization is directly displayed in the editor page. But when the visualizations is added in a dashboard, these filters are not applied.

Steps to reproduce:

  1. Create a Vega visualization
  2. Add some filters
  3. Reload the visualization and see the result (it's working here)
  4. Add this visualization in a dashboard
  5. Open console tray from the browser and observe the DSL query : the filters defined previously are missing

Provide logs and/or server output (if relevant): n/a

Visualization config:

{
  $schema: https://vega.github.io/schema/vega/v3.3.1.json
  data: [
    {
      name: data
      url: {
        %context%: true
        %timefield%: @timestamp
        index: log.infra.cmx.pre-*
        body: {
          aggs: {
            filesize_aggs: {
              sum: {
                field: "fileSize"
              }
            }
          }
          size: 0
        }
      }
    }
  ]
  [...]
@timroes
Copy link
Contributor

timroes commented Oct 31, 2018

Vega currently doesn't save filters in contrast to other visualizations, while editing. If you save the visualization you should also see the filters vanishing directly.

Duplicate of #17719

@timroes timroes closed this as completed Oct 31, 2018
@clemlesne
Copy link
Author

Hello, thanks for replying ! 👍

I confirm that my filters, after saving, remains. But my problem is when I include the visualization in a dashboard, these filters, previously added in the visualization, are not taken into consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants