Skip to content

Commit

Permalink
fix timeseries type
Browse files Browse the repository at this point in the history
  • Loading branch information
yesoreyeram committed Jul 16, 2024
1 parent 3e1b042 commit 9f610b8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions lib/go/jsonframer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @grafana/infinity-jsonframer

## 1.1.3

- fixed timeseries single series type

## 1.1.2

- added timeseries multi type
Expand Down
2 changes: 1 addition & 1 deletion lib/go/jsonframer/jsonframer.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func getFrameFromResponseString(responseString string, options FramerOptions) (f
frame.Meta = &data.FrameMeta{}
}
if options.FrameFormat == FrameFormatTimeSeries {
frame.Meta.Type = data.FrameTypeTimeSeriesLong
frame.Meta.Type = data.FrameTypeTimeSeriesWide
frame.Meta.TypeVersion = data.FrameTypeVersion{0, 1}
}
if options.FrameFormat == FrameFormatNumeric {
Expand Down
2 changes: 1 addition & 1 deletion lib/go/jsonframer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@grafana/infinity-jsonframer",
"private": true,
"version": "1.1.2",
"version": "1.1.3",
"scripts": {
"tidy": "go mod tidy",
"test:backend": "go test -v ./..."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "type": "timeseries-long",
// "type": "timeseries-wide",
// "typeVersion": [
// 0,
// 1
Expand Down Expand Up @@ -29,7 +29,7 @@
{
"schema": {
"meta": {
"type": "timeseries-long",
"type": "timeseries-wide",
"typeVersion": [
0,
1
Expand Down

0 comments on commit 9f610b8

Please sign in to comment.