From c66617916b75ce6883d732c7d884057af1a76d03 Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Fri, 8 Mar 2024 14:44:00 -0800 Subject: [PATCH] Enable annotations query editor `annotations` field needs to be set in the datasource constructor in order for annotation query editor to configure itself properly. See step 2 in docs: https://grafana.com/developers/plugin-tools/create-a-plugin/extend-a-plugin/enable-for-annotations --- src/datasource/base.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/datasource/base.ts b/src/datasource/base.ts index 719b66c..4832ce8 100644 --- a/src/datasource/base.ts +++ b/src/datasource/base.ts @@ -70,6 +70,7 @@ export class BaseQuickwitDataSource this.logLevelField = settingsData.logLevelField || ''; this.dataLinks = settingsData.dataLinks || []; this.languageProvider = new ElasticsearchLanguageProvider(this); + this.annotations = {}; } query(request: DataQueryRequest): Observable {