Default Filters Configuration for Query Builder #1552
kakao-phil-lsp
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
In multi-tenant environments, users often need to apply the same filters (e.g.,
tenant_id,env) to every query. Currently, this requires manually adding filters each time, which is repetitive and error-prone.Proposed Solution
Add a Default Filters section in datasource settings. Filters configured here would automatically populate in the query builder when creating new queries.
Example YAML provisioning:
Behavior:
Use Case
Multi-tenant platform where each team should only query their own data:
tenant_id = 'team-a'as default filterWe have a working implementation and would be happy to contribute a PR if there's interest.
Beta Was this translation helpful? Give feedback.
All reactions