mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
81c45bfe44
* Split subquery when cleaning annotations * update comment * Raise batch size, now that we pay attention to it * Iterate in batches * Separate cancellable batch implementation to allow for multi-statement callbacks, add overload for single-statement use * Use split-out utility in outer batching loop so it respects context cancellation * guard against empty queries * Use SQL parameters * Use same approach for tags * drop unused function * Work around parameter limit on sqlite for large batches * Bulk insert test data in DB * Refactor test to customise test data creation * Add test for catching SQLITE_MAX_VARIABLE_NUMBER limit * Turn annotation cleanup test to integration tests * lint --------- Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> |
||
---|---|---|
.. | ||
accesscontrol | ||
annotationsimpl | ||
annotationstest | ||
testutil | ||
annotations_repository_mock.go | ||
annotations.go | ||
models.go |