Skip to content

Commit dd247de

Browse files
authored
Merge pull request #125 from scalyr/dset-4485
DSET-4485: Adding configs to DataSet Grafana Cloud returns TypeError
2 parents ac19d3e + 5647b2a commit dd247de

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3.1.3
4+
5+
- Bugfix around scalyrUrl assignment (Issue #124)
6+
37
## 3.1.2
48

59
- Cross-team query support.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentinelone-dataset-datasource",
3-
"version": "3.1.2",
3+
"version": "3.1.3",
44
"description": "Scalyr Observability Platform",
55
"scripts": {
66
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",

pkg/plugin/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func NewDataSetClient(dataSetUrl string, apiKey string) DataSetClient {
5757
}
5858

5959
func (d *dataSetClient) newRequest(method, url string, body io.Reader) (*http.Request, error) {
60-
const VERSION = "3.1.2"
60+
const VERSION = "3.1.3"
6161

6262
if err := d.rateLimiter.Wait(context.Background()); err != nil {
6363
log.DefaultLogger.Error("error applying rate limiter", "err", err)

src/ConfigEditor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export class ConfigEditor extends PureComponent<Props, State> {
4949
render() {
5050
const { options } = this.props;
5151
const { jsonData, secureJsonFields } = options;
52-
jsonData.scalyrUrl = jsonData.scalyrUrl || 'https://app.scalyr.com/';
5352
const secureJsonData = (options.secureJsonData || {}) as MySecureJsonData;
5453

5554
return (
@@ -76,7 +75,7 @@ export class ConfigEditor extends PureComponent<Props, State> {
7675
labelWidth={8}
7776
inputWidth={20}
7877
onChange={this.onURLChange}
79-
value={jsonData.scalyrUrl}
78+
value={jsonData.scalyrUrl || 'https://app.scalyr.com/'}
8079
placeholder="Scalyr server URL"
8180
/>
8281
</div>

src/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"path": "img/DatasetConfig.png"
4444
}
4545
],
46-
"version": "3.1.2",
47-
"updated": "2023-03-31"
46+
"version": "3.1.3",
47+
"updated": "2023-09-12"
4848
},
4949
"dependencies": {
5050
"grafanaDependency": ">=8.2.0",

0 commit comments

Comments
 (0)