From a939dfadf21e8028d3a7c6465f1eb3da750f0d21 Mon Sep 17 00:00:00 2001 From: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:34:05 +0200 Subject: [PATCH] Improve check on Tempo version (#74547) --- public/app/plugins/datasource/tempo/datasource.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/public/app/plugins/datasource/tempo/datasource.ts b/public/app/plugins/datasource/tempo/datasource.ts index 32d5668fa4b..81b8bb6e321 100644 --- a/public/app/plugins/datasource/tempo/datasource.ts +++ b/public/app/plugins/datasource/tempo/datasource.ts @@ -228,16 +228,8 @@ export class TempoDatasource extends DataSourceWithBackend-`, possibly with a `-WIP` suffix (e.g., `main-12bdeff-WIP`). - // Thus, if the version is in the form `-`, assume that we are on the most updated - // Tempo version and thus any feature should be considered enabled - if (/^.*-[a-zA-Z0-9_]+(-WIP)?$/.test(actualVersion)) { - return true; - } - - console.error(`Cannot compare ${actualVersion} and ${featuresToTempoVersion[featureName]}`); - return false; + // We assume we are on a development and recent branch, thus we enable all features + return true; } }