mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:02:12 +08:00
LibraryElements: Creates usage stats for panels and variables (#34476)
* LibraryPanels: Adds usage collection * Refactor: renames Panel and Variable consts * Chore: initialize stats * Refactor: moves library element migrations to migration namespace
This commit is contained in:
@ -24,6 +24,8 @@ func TestStatsDataAccess(t *testing.T) {
|
||||
assert.Equal(t, 0, query.Result.Editors)
|
||||
assert.Equal(t, 0, query.Result.Viewers)
|
||||
assert.Equal(t, 3, query.Result.Admins)
|
||||
assert.Equal(t, int64(0), query.Result.LibraryPanels)
|
||||
assert.Equal(t, int64(0), query.Result.LibraryVariables)
|
||||
})
|
||||
|
||||
t.Run("Get system user count stats should not results in error", func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user