Karl Persson
7386f8652c
RBAC: Improve performance of dashboard filter query ( #56813 )
...
* RBAC: Move UserRolesFilter to domain package
* Dashboard Permissions: Rewrite rbac filter to check access in sql
* RBAC: Add break when wildcard is found
* RBAC: Add tests for dashboard filter
* RBAC: Update tests
* RBAC: Cover more test cases
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2022-10-25 11:14:27 +02:00
Kristin Laemmert
05709ce411
chore: remove sqlstore & mockstore dependencies from (most) packages ( #57087 )
...
* chore: add alias for InitTestDB and Session
Adds an alias for the sqlstore InitTestDB and Session, and updates tests using these to reduce dependencies on the sqlstore.Store.
* next pass of removing sqlstore imports
* last little bit
* remove mockstore where possible
2022-10-19 09:02:15 -04:00
Kristin Laemmert
c61b5e85b4
chore: replace sqlstore.Store with db.DB ( #57010 )
...
* chore: replace sqlstore.SQLStore with db.DB
* more post-sqlstore.SQLStore cleanup
2022-10-14 15:33:06 -04:00
Sofia Papagiannaki
8b77ee2734
SQLStore: Ensure that sessions are always closed ( #55864 )
...
* SQLStore: Ensure that sessions are always closed
Delete `NewSession()` in favour of `WithDbSession()`
* Add WithDbSessionForceNewSession to the interface
* Apply suggestions from code review
2022-09-29 15:55:47 +03:00
ying-jeanne
2472777ce2
Chore: implement sqlx into tag service ( #55908 )
...
* add sqlx store to tag service
* add sqlx into tag service
* fix test
* change to camal cases
* change in xorm camal case
2022-09-28 08:23:40 -04:00
Sofia Papagiannaki
d0e7765c6a
Annotation: Optionally allow storing longer annotation tags ( #54754 )
...
* Annotation: Optionally allow longer annotation tags
* Do not accept configuration lower than today's default (500)
* Apply suggestion from code review
2022-09-23 06:04:41 -04:00
Sofia Papagiannaki
2f14575dd3
Chore: Move annotations cleanup to the annotations service ( #55618 )
2022-09-22 15:27:48 +03:00
ying-jeanne
7b4cea8151
Chore: StoreSplit tag service ( #55453 )
...
* move tag service outside
* fix dashboard
* fix test
* lint
* fix linter
* remove spew
2022-09-21 08:04:01 -04:00
Sofia Papagiannaki
754eea20b3
Chore: SQL store split for annotations ( #55089 )
...
* Chore: SQL store split for annotations
* Apply suggestion from code review
2022-09-19 10:54:37 +03:00