Skip to content

Saved queries and filters #38564

@Bargs

Description

@Bargs

Saved Searches are Discover specific because they include things like the columns that were selected, which aren't relevant on dashboards or visualizations. We would like to introduce a "saved query" concept that's more limited in scope. We'll be able to load these saved queries anywhere a query is expected: dashboards, filter aggs, etc. These "saved queries" will include the query string and optionally the filters (including their pinned/disabled state) and time filter as well.

Related #2696
Related #13650

EUI ticket for design: elastic/eui#1938

Feature branch: https://github.com/elastic/kibana/tree/saved_filters

Tasks

  • Add saved object type
    • Define what these look like
    • Add section to Saved Object management UI for new type
      • Update Discover to load saved query passed in via URL
      • Use that URL in the getInAppUrl property in the uiExport
  • Update query bar UI to support saving and loading saved queries/filters

Questions

  • What should uiCapabilitiesPath be if we use Discover as our editor? And if we create a separate edit page?
  • Ask Stacey about display and section properties on RefreshInterval type
  • Talk to design team about displaying saved queries that include filters/timefilter in contexts that don’t have those UI components

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions