quickwit-oss / quickwit-datasource

Quickwit data source for Grafana
GNU Affero General Public License v3.0
39 stars 9 forks source link

Revert default search limit to 100 and make it configurable #114

Closed ddelemeny closed 3 months ago

ddelemeny commented 3 months ago

The possible pagination issues mentioned in #97 should be thoroughly tested.

ddelemeny commented 3 months ago

Quick and dirty solution would be to create a new datasource parameter to be changed in the config editor, but that would pollute the options with UI defaults (which are persisted in panel defs and whatnot), it's not made for that.

Better approach would be to create a config store for persistent UI settings, it's more involved but won't bloat the datasource definition.

ddelemeny commented 3 months ago

Defaults are currently static, implemented deep within the QueryEditor. src/components/QueryEditor/MetricAggregationEditor/utils.ts:metricAggregationConfig

This needs to be refactored.