PublicDashboards: Allow hidden queries execution (#64858)

This commit is contained in:
Ezequiel Victorero
2023-03-16 15:39:17 -03:00
committed by GitHub
parent 54dd8943ca
commit 8f0a9729f0
10 changed files with 125 additions and 91 deletions
@@ -104,7 +104,7 @@ func callAPI(server *web.Mux, method, path string, body io.Reader, t *testing.T)
// helper to query.Service
// allows us to stub the cache and plugin clients
func buildQueryDataService(t *testing.T, cs datasources.CacheService, fpc *fakePluginClient, store db.DB) *query.Service {
func buildQueryDataService(t *testing.T, cs datasources.CacheService, fpc *fakePluginClient, store db.DB) *query.ServiceImpl {
// build database if we need one
if store == nil {
store = db.InitTestDB(t)