DataSource: Support updating configs using UID (#107486)

This commit is contained in:
Ryan McKinley
2025-07-03 10:18:19 -07:00
committed by GitHub
parent a59ec345c2
commit 20f30462ad
10 changed files with 115 additions and 33 deletions
@@ -457,7 +457,7 @@ type spyStore struct {
func (s *spyStore) GetDataSource(ctx context.Context, query *datasources.GetDataSourceQuery) (*datasources.DataSource, error) {
for _, v := range s.items {
if query.Name == v.Name && query.OrgID == v.OrgID {
if query.Name == v.Name && query.OrgID == v.OrgID { // nolint:staticcheck
return v, nil
}
}