Skip to content

Do not re-fetch table metada on adding a new filter #415

@mshustov

Description

@mshustov

What happened:
Whenever I add an ad-hoc filter for a panel, the plugin makes a request SELECT name, type, table FROM system.columns, which adds a few sec. delay.

What you expected to happen:
Do not fetch definitions again, if the plugin already has the necessary data.

How to reproduce it (as minimally and precisely as possible):

  1. Crete a panel
  2. add an ad-hoc filter variable
  3. add a filter
  4. add another filter

Screenshots
2023-06-04_14-45-28

Environment:

  • Grafana version: main branch
  • Plugin version: v3.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Feature Requests

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions