Skip to content

Commit 8e058d9

Browse files
authored
Fix: use ReadAuthSettings to get authSettings (#289)
* Fix: use ReadAuthSettings to get authSettings * Release 2.9.4 * fix spellcheck
1 parent 1a7388f commit 8e058d9

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 2.9.4
6+
7+
- Fix: use ReadAuthSettings to get authSettings in [#289](https://github.com/grafana/timestream-datasource/pull/289)
8+
59
## 2.9.3
610

711
- Upgrade grafana-aws-sdk and other packages [#285](https://github.com/grafana/timestream-datasource/pull/285)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "grafana-timestream-datasource",
3-
"version": "2.9.3",
3+
"version": "2.9.4",
44
"description": "Load data timestream in grafana",
55
"scripts": {
66
"spellcheck": "cspell -c cspell.config.json \"**/*.{ts,tsx,js,go,md,mdx,yml,yaml,json,scss,css}\"",

pkg/timestream/datasource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func NewServerInstance(ctx context.Context, s backend.DataSourceInstanceSettings
7070
backend.Logger.Error("failed to create HTTP client", "error", err.Error())
7171
return nil, err
7272
}
73-
authSettings, _ := awsds.ReadAuthSettingsFromContext(ctx)
73+
authSettings := awsds.ReadAuthSettings(ctx)
7474
sess, err := sessions.GetSessionWithAuthSettings(awsds.GetSessionConfig{
7575
Settings: settings.AWSDatasourceSettings,
7676
HTTPClient: httpClient,

pkg/timestream/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func QueryResultToDataFrame(res *timestreamquery.QueryOutput, format models.Form
9696
if !cellParsingError {
9797
notices = append(notices, data.Notice{
9898
Severity: data.NoticeSeverityError,
99-
Text: fmt.Sprintf("Error parsing: row:%d, colum:%d", i, builder.columnIdx),
99+
Text: fmt.Sprintf("Error parsing: row:%d, column:%d", i, builder.columnIdx),
100100
})
101101
}
102102
cellParsingError = true

0 commit comments

Comments
 (0)