grafana/pkg/services/queryhistory
Ivana Huckova 4661c9ca47
Query history: Cleanup (#48303)
* Query history: Clean up stale history after 14 days

* Add unstarring sleanup

* Add wraapping

* Update sql for mysql database

* Update

* Remove fmt.Print

* Refactor and simplify solution

* Update pkg/services/queryhistory/database.go

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>

* Adjust SQL to limit number of deleted queries

* Add limit enforcmenet to cleanup

* Change limit

* Update

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2022-05-03 14:49:58 +02:00
..
api.go Query history: Add from and to parameters (#48212) 2022-04-29 09:55:33 +02:00
database.go Query history: Cleanup (#48303) 2022-05-03 14:49:58 +02:00
models.go Query history: Add from and to parameters (#48212) 2022-04-29 09:55:33 +02:00
queryhistory_create_test.go Query history: Add search functionality (#45932) 2022-03-07 12:28:04 +01:00
queryhistory_delete_stale_test.go Query history: Cleanup (#48303) 2022-05-03 14:49:58 +02:00
queryhistory_delete_test.go Query history: Add search functionality (#45932) 2022-03-07 12:28:04 +01:00
queryhistory_enforce_limit_test.go Query history: Cleanup (#48303) 2022-05-03 14:49:58 +02:00
queryhistory_migrate_test.go Query history: Add migration endpoint (#47551) 2022-04-14 09:33:41 +02:00
queryhistory_patch_test.go Query history: Add search functionality (#45932) 2022-03-07 12:28:04 +01:00
queryhistory_search_test.go Query history: Add from and to parameters (#48212) 2022-04-29 09:55:33 +02:00
queryhistory_star_test.go Query history: Add search functionality (#45932) 2022-03-07 12:28:04 +01:00
queryhistory_test.go Query history: Search in comments (#46761) 2022-04-08 09:35:34 +02:00
queryhistory_unstar_test.go Query history: Add search functionality (#45932) 2022-03-07 12:28:04 +01:00
queryhistory.go Query history: Cleanup (#48303) 2022-05-03 14:49:58 +02:00
writers.go Query history: Add from and to parameters (#48212) 2022-04-29 09:55:33 +02:00