Skip to content

Commit c666179

Browse files
committed
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
1 parent 2843709 commit c666179

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/datasource/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export class BaseQuickwitDataSource
7070
this.logLevelField = settingsData.logLevelField || '';
7171
this.dataLinks = settingsData.dataLinks || [];
7272
this.languageProvider = new ElasticsearchLanguageProvider(this);
73+
this.annotations = {};
7374
}
7475

7576
query(request: DataQueryRequest<ElasticsearchQuery>): Observable<DataQueryResponse> {

0 commit comments

Comments
 (0)