Skip to content

Commit

Permalink
Enable annotations query editor
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
wjordan committed Mar 8, 2024
1 parent 2843709 commit c666179
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datasource/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ElasticsearchQuery>): Observable<DataQueryResponse> {
Expand Down

0 comments on commit c666179

Please sign in to comment.