Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update grafanasdk to latest changes in upstream #14

Merged
merged 8 commits into from
Sep 5, 2023
Merged

Conversation

wurbanski
Copy link

No description provided.

colega and others added 8 commits September 4, 2023 16:06
Instead of getting an error like:

unmarshal board: json: cannot unmarshal object into Go struct field Target.targets.group of type []struct { Type string "json:\"type,omitempty\""; Params []string "json:\"params,omitempty\"" } for 000000312 AWS Cloudwatch Browser

It will now mention the panel:

unmarshal board: json: cannot unmarshal object into Go struct field Target.targets.group of type []struct { Type string "json:\"type,omitempty\""; Params []string "json:\"params,omitempty\"" } (panel "Metric" of type "graph") for 000000312 AWS Cloudwatch Browser

Signed-off-by: Oleg Zaytsev <[email protected]>
In recent versions of Grafana the datasource can be either a string or a
map with entries for type and uid. Support both of these cases by using
an interface which will allow backwards compatiblity.
Threshold value is defined as a number in Grafana (and also min and max):

http://github.com/grafana/grafana/blob/dd2a952c29db6d190dacdd6c06dd748f7912db9e/packages/grafana-data/src/types/thresholds.ts#L2-L2

I was tempted to use a json.Number for this, but apparently the
convention is to just use floats, so I went for that.

Signed-off-by: Oleg Zaytsev <[email protected]>
* user password

* add password integration test

* password not return bug
Copy link
Member

@embik embik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@wurbanski wurbanski merged commit 0dd5f00 into master Sep 5, 2023
@wurbanski wurbanski deleted the 2023-update branch September 5, 2023 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants