PublicDashboards: Remove unsupported datasource warning for cloudwatch (#79403)

This commit is contained in:
Juan Cabanas
2023-12-13 09:18:29 -03:00
committed by GitHub
parent a221ebf7cc
commit a18cba0ced
4 changed files with 10 additions and 7 deletions

View File

@@ -13,9 +13,8 @@ import (
var grafanaDatasources = []string{expr.DatasourceType, "datasource"}
// there are some datasources that have backend flag as true but don't call /ds/query endpoint
var unsupportedDataSourcesMap = map[string]bool{
"cloudwatch": true,
}
// through DataSourceWithBackend class
var unsupportedDataSourcesMap = map[string]bool{}
type listPluginResponse struct {
Items []struct {

View File

@@ -26,7 +26,7 @@ func main() {
tsTemplate := template.Must(template.New("").Parse(tsDatasourcesTemplate))
// Generate supported datasources for Typescript
tsFile, err := os.Create("./../../../public/app/features/dashboard/components/ShareModal/SharePublicDashboard/SupportedPubdashDatasources.ts")
tsFile, err := os.Create("./../../../../../public/app/features/dashboard/components/ShareModal/SharePublicDashboard/SupportedPubdashDatasources.ts")
if err != nil {
fmt.Println(err)
}