Chore: Remove legacydata package (#88790)

* Chore: Remove legacydata package

* remove unused dependency

* sdk v0.234.0
This commit is contained in:
Marcus Efraimsson
2024-06-05 22:31:06 +02:00
committed by GitHub
parent 08276bd8e7
commit 2403665998
23 changed files with 40 additions and 698 deletions
+2 -2
View File
@@ -4,13 +4,13 @@ import (
"fmt"
"strings"
"github.com/grafana/grafana-plugin-sdk-go/backend/gtime"
"github.com/grafana/grafana-plugin-sdk-go/data/utils/jsoniter"
data "github.com/grafana/grafana-plugin-sdk-go/experimental/apis/data/v0alpha1"
"github.com/grafana/grafana/pkg/expr/classic"
"github.com/grafana/grafana/pkg/expr/mathexp"
"github.com/grafana/grafana/pkg/services/featuremgmt"
"github.com/grafana/grafana/pkg/tsdb/legacydata"
)
// Once we are comfortable with the parsing logic, this struct will
@@ -101,7 +101,7 @@ func (h *ExpressionQueryReader) ReadQuery(
referenceVar, err = getReferenceVar(q.Expression, common.RefID)
}
if err == nil {
tr := legacydata.NewDataTimeRange(common.TimeRange.From, common.TimeRange.To)
tr := gtime.NewTimeRange(common.TimeRange.From, common.TimeRange.To)
eq.Properties = q
eq.Command, err = NewResampleCommand(common.RefID,
q.Window,