mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
[getTagKeys] Ensure we're not using suggestions when no scopes are present (#97353)
* Ensure we're not using suggestions when no scopes are present * Simplify scopes check Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com> --------- Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
This commit is contained in:
parent
b7066aa7dc
commit
016351c7ed
@ -620,7 +620,7 @@ export class PrometheusDatasource
|
||||
// it is used in metric_find_query.ts
|
||||
// and in Tempo here grafana/public/app/plugins/datasource/tempo/QueryEditor/ServiceGraphSection.tsx
|
||||
async getTagKeys(options: DataSourceGetTagKeysOptions<PromQuery>): Promise<MetricFindValue[]> {
|
||||
if (config.featureToggles.promQLScope && !!options) {
|
||||
if (config.featureToggles.promQLScope && (options?.scopes?.length ?? 0) > 0) {
|
||||
const suggestions = await this.languageProvider.fetchSuggestions(
|
||||
options.timeRange,
|
||||
options.queries,
|
||||
|
Loading…
Reference in New Issue
Block a user