Skip to content

Commit

Permalink
Prepare for 1.1.0 and quick fix for required changes
Browse files Browse the repository at this point in the history
  • Loading branch information
retrodaredevil committed Apr 11, 2024
1 parent 0e2b15b commit 4bda7d0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 1.1.0

New Features
* Added "Advanced Variables JSON" to define a variables JSON object that has interpolation performed on the JSON string itself, rather than strings within the JSON
* This is added functionality and is not meant to replace or change the existing functionality. Using the variables configuration from the GraphiQL editor and advanced variables JSON at the same time is supported.

Stability
* Resources are properly closed
* Panics are no longer used and better logging is done in the backend
* Unnecessary `console.log()` calls moved to existing `console.error()` calls


## 1.0.1

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wild-graphql-datasource",
"version": "1.0.1",
"version": "1.1.0",
"description": "Grafana data source to interpret GraphQL query results as timeseries data",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/queryvariables/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func ParseVariables(query backend.DataQuery, rawVariables interface{}) (map[stri
err := json.Unmarshal([]byte(typedRawVariables), &variables)
if err != nil {
noErrors = false
log.DefaultLogger.Error(fmt.Sprintf("Got error while parsing these variables: %s! Error:", typedRawVariables), err)
log.DefaultLogger.Error("Got error while parsing variables!", "typedRawVariables", typedRawVariables, "err", err)

// continue executing query without interpolated variables
// TODO consider if we want a flag in the options to prevent the query from continuing further in the case of an error
Expand Down

0 comments on commit 4bda7d0

Please sign in to comment.