Skip to content

Commit 76c73f9

Browse files
authored
Prepare release 2.3.2 (#702)
1 parent f3e32b4 commit 76c73f9

File tree

8 files changed

+375
-282
lines changed

8 files changed

+375
-282
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
scopes: ${{ github.event.inputs.environment == 'cloud (recommended)' && 'grafana_cloud' || github.event.inputs.environment == 'on-prem (for emergencies fix to On Prem customers)' && 'universal' }}
4242
go-version: '1.24'
4343
golangci-lint-version: '2.1.6'
44+
run-playwright-with-skip-grafana-dev-image: true
4445
playwright-secrets: |
4546
ACCESS_KEY=e2e:accessKey
4647
SECRET_KEY=e2e:secretKey

.github/workflows/push.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
with:
1919
plugin-version-suffix: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}
2020
golangci-lint-version: '2.1.6'
21+
run-playwright-with-skip-grafana-dev-image: true
2122
playwright-secrets: |
2223
ACCESS_KEY=e2e:accessKey
2324
SECRET_KEY=e2e:secretKey

CHANGELOG.md

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

3+
## 2.3.2
4+
5+
- Bump github.com/grafana/grafana-plugin-sdk-go from 0.282.0 to 0.283.0 in [#706](https://github.com/grafana/redshift-datasource/pull/706)
6+
- Bump the aws-sdk-go-v2 group with 3 updates in [#705](https://github.com/grafana/redshift-datasource/pull/705)
7+
- Bump github.com/grafana/grafana-plugin-sdk-go from 0.281.0 to 0.282.0 in [#701](https://github.com/grafana/redshift-datasource/pull/701)
8+
- Bump the aws-sdk-go-v2 group with 4 updates in [#700](https://github.com/grafana/redshift-datasource/pull/700)
9+
- Bump the aws-sdk-go-v2 group with 5 updates in [#698](https://github.com/grafana/redshift-datasource/pull/698)
10+
- Bump the aws-sdk-go-v2 group with 5 updates in [#697](https://github.com/grafana/redshift-datasource/pull/697)
11+
- Publish to every environment on Cloud and Add On-Prem promotion in [#694](https://github.com/grafana/redshift-datasource/pull/694)
12+
- Bump @typescript-eslint/parser from 8.44.1 to 8.46.1 in [#693](https://github.com/grafana/redshift-datasource/pull/693)
13+
- Bump the npm-patch-dev-dependencies group with 3 updates in [#691](https://github.com/grafana/redshift-datasource/pull/691)
14+
- Bump the aws-sdk-go-v2 group with 5 updates in [#690](https://github.com/grafana/redshift-datasource/pull/690)
15+
- Bump actions/setup-node from 4 to 6 in [#668](https://github.com/grafana/redshift-datasource/pull/668)
16+
- Bump actions/checkout from 4 to 5 in [#571](https://github.com/grafana/redshift-datasource/pull/571)
17+
- Bump @eslint/js from 9.36.0 to 9.37.0 in [#689](https://github.com/grafana/redshift-datasource/pull/689)
18+
- Bump the aws-sdk-go-v2 group with 2 updates in [#688](https://github.com/grafana/redshift-datasource/pull/688)
19+
- Bump eslint from 9.36.0 to 9.37.0 in [#687](https://github.com/grafana/redshift-datasource/pull/687)
20+
- Bump @types/node from 22.18.11 to 22.18.12 in the npm-patch-dev-dependencies group in [#686](https://github.com/grafana/redshift-datasource/pull/686)
21+
- Bump @grafana/aws-sdk from 0.7.2 to 0.8.2 in [#684](https://github.com/grafana/redshift-datasource/pull/684)
22+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftserverless from 1.31.9 to 1.31.10 in the aws-sdk-go-v2 group in [#683](https://github.com/grafana/redshift-datasource/pull/683)
23+
- Bump the npm-patch-dev-dependencies group with 3 updates in [#682](https://github.com/grafana/redshift-datasource/pull/682)
24+
- Bump github.com/grafana/grafana-aws-sdk from 1.3.0 to 1.3.1 in [#681](https://github.com/grafana/redshift-datasource/pull/681)
25+
- Bump the aws-sdk-go-v2 group with 5 updates in [#680](https://github.com/grafana/redshift-datasource/pull/680)
26+
- Bump the grafana-dependencies group with 4 updates in [#679](https://github.com/grafana/redshift-datasource/pull/679)
27+
- Bump golang.org/x/net from 0.45.0 to 0.46.0 in [#678](https://github.com/grafana/redshift-datasource/pull/678)
28+
- Bump @grafana/plugin-e2e from 2.1.14 to 2.2.3 in [#671](https://github.com/grafana/redshift-datasource/pull/671)
29+
- Bump golang.org/x/net from 0.44.0 to 0.45.0 in [#669](https://github.com/grafana/redshift-datasource/pull/669)
30+
- Bump github.com/grafana/grafana-plugin-sdk-go from 0.280.0 to 0.281.0 in [#670](https://github.com/grafana/redshift-datasource/pull/670)
31+
- Bump @types/node from 22.18.9 to 22.18.10 in the npm-patch-dev-dependencies group in [#666](https://github.com/grafana/redshift-datasource/pull/666)
32+
- Bump @types/node from 22.18.8 to 22.18.9 in the npm-patch-dev-dependencies group in [#665](https://github.com/grafana/redshift-datasource/pull/665)
33+
- Bump @testing-library/jest-dom from 6.9.0 to 6.9.1 in the npm-patch-dev-dependencies group in [#664](https://github.com/grafana/redshift-datasource/pull/664)
34+
- Bump @testing-library/jest-dom from 6.6.4 to 6.9.0 in [#662](https://github.com/grafana/redshift-datasource/pull/662)
35+
- Bump jest from 30.1.3 to 30.2.0 in [#660](https://github.com/grafana/redshift-datasource/pull/660)
36+
- Bump github.com/aws/aws-sdk-go-v2/service/redshift from 1.58.4 to 1.59.0 in the aws-sdk-go-v2 group in [#659](https://github.com/grafana/redshift-datasource/pull/659)
37+
- Bump typescript from 5.9.2 to 5.9.3 in the npm-patch-dev-dependencies group in [#658](https://github.com/grafana/redshift-datasource/pull/658)
38+
- Bump typescript from 5.8.3 to 5.9.2 in [#656](https://github.com/grafana/redshift-datasource/pull/656)
39+
- Update gitignore for yarn files in [#655](https://github.com/grafana/redshift-datasource/pull/655)
40+
- Bump the npm-patch-dev-dependencies group with 2 updates in [#654](https://github.com/grafana/redshift-datasource/pull/654)
41+
- Bump the npm-patch-dev-dependencies group with 4 updates in [#652](https://github.com/grafana/redshift-datasource/pull/652)
42+
- Upgrade yarn to v4.10.3 in [#647](https://github.com/grafana/redshift-datasource/pull/647)
43+
- Chore: Move docs to docs/sources to enable publishing to website in [#648](https://github.com/grafana/redshift-datasource/pull/648)
44+
- Bump github.com/grafana/grafana-aws-sdk from 1.2.0 to 1.3.0 in [#651](https://github.com/grafana/redshift-datasource/pull/651)
45+
- Bump the aws-sdk-go-v2 group with 4 updates in [#650](https://github.com/grafana/redshift-datasource/pull/650)
46+
- Bump github.com/grafana/grafana-plugin-sdk-go from 0.279.0 to 0.280.0 in [#649](https://github.com/grafana/redshift-datasource/pull/649)
47+
- CD: Publish Github release directly, skipping draft step in [#646](https://github.com/grafana/redshift-datasource/pull/646)
48+
- Bump the aws-sdk-go-v2 group with 5 updates in [#645](https://github.com/grafana/redshift-datasource/pull/645)
49+
- Bump @grafana/plugin-e2e from 2.1.13 to 2.1.14 in the npm-patch-dev-dependencies group in [#643](https://github.com/grafana/redshift-datasource/pull/643)
50+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftserverless from 1.31.5 to 1.31.6 in the aws-sdk-go-v2 group in [#642](https://github.com/grafana/redshift-datasource/pull/642)
51+
- Bump @typescript-eslint/parser from 8.38.0 to 8.43.0 in [#641](https://github.com/grafana/redshift-datasource/pull/641)
52+
- Update workflows and templates in [#623](https://github.com/grafana/redshift-datasource/pull/623)
53+
- Bump @types/node from 22.18.5 to 22.18.6 in the npm-patch-dev-dependencies group in [#640](https://github.com/grafana/redshift-datasource/pull/640)
54+
- Bump @types/node from 22.18.4 to 22.18.5 in the npm-patch-dev-dependencies group in [#639](https://github.com/grafana/redshift-datasource/pull/639)
55+
- Bump the npm-patch-dev-dependencies group with 8 updates in [#638](https://github.com/grafana/redshift-datasource/pull/638)
56+
- Update dependabot groups in [#622](https://github.com/grafana/redshift-datasource/pull/622)
57+
- Bump golang.org/x/net from 0.43.0 to 0.44.0 in [#637](https://github.com/grafana/redshift-datasource/pull/637)
58+
- Bump eslint from 9.34.0 to 9.35.0 in [#633](https://github.com/grafana/redshift-datasource/pull/633)
59+
- Bump @types/node from 22.17.2 to 22.18.1 in [#632](https://github.com/grafana/redshift-datasource/pull/632)
60+
- Bump jest from 30.0.5 to 30.1.3 in [#631](https://github.com/grafana/redshift-datasource/pull/631)
61+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftserverless from 1.31.4 to 1.31.5 in [#630](https://github.com/grafana/redshift-datasource/pull/630)
62+
- Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1.39.3 to 1.39.4 in [#629](https://github.com/grafana/redshift-datasource/pull/629)
63+
- Bump dotenv from 17.2.1 to 17.2.2 in [#628](https://github.com/grafana/redshift-datasource/pull/628)
64+
- Bump jest-environment-jsdom from 30.0.5 to 30.1.2 in [#627](https://github.com/grafana/redshift-datasource/pull/627)
65+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftserverless from 1.31.3 to 1.31.4 in [#626](https://github.com/grafana/redshift-datasource/pull/626)
66+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftdata from 1.37.3 to 1.37.4 in [#625](https://github.com/grafana/redshift-datasource/pull/625)
67+
- Bump github.com/aws/aws-sdk-go-v2/service/redshift from 1.58.2 to 1.58.3 in [#624](https://github.com/grafana/redshift-datasource/pull/624)
68+
- Bump eslint from 9.32.0 to 9.34.0 in [#604](https://github.com/grafana/redshift-datasource/pull/604)
69+
- Bump sass from 1.89.2 to 1.92.0 in [#621](https://github.com/grafana/redshift-datasource/pull/621)
70+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftserverless from 1.31.2 to 1.31.3 in [#620](https://github.com/grafana/redshift-datasource/pull/620)
71+
- Bump github.com/aws/aws-sdk-go-v2/service/redshift from 1.58.1 to 1.58.2 in [#619](https://github.com/grafana/redshift-datasource/pull/619)
72+
- Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1.39.2 to 1.39.3 in [#618](https://github.com/grafana/redshift-datasource/pull/618)
73+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftdata from 1.37.2 to 1.37.3 in [#617](https://github.com/grafana/redshift-datasource/pull/617)
74+
- Bump github.com/aws/aws-sdk-go-v2/service/redshift from 1.58.0 to 1.58.1 in [#616](https://github.com/grafana/redshift-datasource/pull/616)
75+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftserverless from 1.31.1 to 1.31.2 in [#615](https://github.com/grafana/redshift-datasource/pull/615)
76+
- Bump github.com/aws/aws-sdk-go-v2/service/redshift from 1.57.2 to 1.58.0 in [#614](https://github.com/grafana/redshift-datasource/pull/614)
77+
- Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1.39.1 to 1.39.2 in [#613](https://github.com/grafana/redshift-datasource/pull/613)
78+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftdata from 1.37.0 to 1.37.2 in [#605](https://github.com/grafana/redshift-datasource/pull/605)
79+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftserverless from 1.30.2 to 1.31.1 in [#610](https://github.com/grafana/redshift-datasource/pull/610)
80+
- Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1.38.2 to 1.39.1 in [#609](https://github.com/grafana/redshift-datasource/pull/609)
81+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftdata from 1.36.2 to 1.37.0 in [#603](https://github.com/grafana/redshift-datasource/pull/603)
82+
- Bump github.com/grafana/grafana-aws-sdk from 1.1.1 to 1.2.0 in [#600](https://github.com/grafana/redshift-datasource/pull/600)
83+
- Bump github.com/aws/aws-sdk-go-v2 from 1.38.1 to 1.38.3 in [#602](https://github.com/grafana/redshift-datasource/pull/602)
84+
- Bump github.com/stretchr/testify from 1.11.0 to 1.11.1 in [#599](https://github.com/grafana/redshift-datasource/pull/599)
85+
- Bump @grafana/plugin-ui from 0.10.9 to 0.10.10 in [#595](https://github.com/grafana/redshift-datasource/pull/595)
86+
- Bump lefthook from 1.12.2 to 1.12.3 in [#596](https://github.com/grafana/redshift-datasource/pull/596)
87+
- Bump @eslint/js from 9.32.0 to 9.33.0 in [#594](https://github.com/grafana/redshift-datasource/pull/594)
88+
- Bump github.com/grafana/grafana-plugin-sdk-go from 0.278.0 to 0.279.0 in [#592](https://github.com/grafana/redshift-datasource/pull/592)
89+
- Bump github.com/stretchr/testify from 1.10.0 to 1.11.0 in [#593](https://github.com/grafana/redshift-datasource/pull/593)
90+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftserverless from 1.30.0 to 1.30.2 in [#591](https://github.com/grafana/redshift-datasource/pull/591)
91+
- Bump @types/node from 22.17.0 to 22.17.2 in [#578](https://github.com/grafana/redshift-datasource/pull/578)
92+
- Bump webpack from 5.100.2 to 5.101.2 in [#590](https://github.com/grafana/redshift-datasource/pull/590)
93+
- Bump github.com/aws/aws-sdk-go-v2/service/redshift from 1.57.0 to 1.57.2 in [#589](https://github.com/grafana/redshift-datasource/pull/589)
94+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftdata from 1.36.1 to 1.36.2 in [#588](https://github.com/grafana/redshift-datasource/pull/588)
95+
- Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1.38.0 to 1.38.2 in [#587](https://github.com/grafana/redshift-datasource/pull/587)
96+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftserverless from 1.29.0 to 1.30.0 in [#582](https://github.com/grafana/redshift-datasource/pull/582)
97+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftdata from 1.36.0 to 1.36.1 in [#584](https://github.com/grafana/redshift-datasource/pull/584)
98+
- Bump github.com/aws/aws-sdk-go-v2/service/redshift from 1.55.1 to 1.57.0 in [#580](https://github.com/grafana/redshift-datasource/pull/580)
99+
- Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1.37.0 to 1.38.0 in [#581](https://github.com/grafana/redshift-datasource/pull/581)
100+
- Bump golang.org/x/net from 0.42.0 to 0.43.0 in [#577](https://github.com/grafana/redshift-datasource/pull/577)
101+
- Bump github.com/aws/aws-sdk-go-v2/service/redshiftdata from 1.34.1 to 1.36.0 in [#579](https://github.com/grafana/redshift-datasource/pull/579)
102+
- Bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1.36.1 to 1.37.0 in [#575](https://github.com/grafana/redshift-datasource/pull/575)
103+
3104
## 2.3.1
4105

5106
- Bump @eslint/js from 9.31.0 to 9.32.0 by @dependabot[bot] in https://github.com/grafana/redshift-datasource/pull/553

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "grafana-redshift-datasource",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"description": "Use Amazon Redshift in Grafana",
55
"scripts": {
66
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
@@ -22,11 +22,11 @@
2222
"dependencies": {
2323
"@emotion/css": "11.13.5",
2424
"@grafana/async-query-data": "0.4.2",
25-
"@grafana/data": "^12.2.1",
25+
"@grafana/data": "12.3.0",
2626
"@grafana/plugin-ui": "^0.10.10",
27-
"@grafana/runtime": "^12.2.1",
28-
"@grafana/schema": "^12.2.1",
29-
"@grafana/ui": "^12.2.1",
27+
"@grafana/runtime": "12.3.0",
28+
"@grafana/schema": "12.3.0",
29+
"@grafana/ui": "12.3.0",
3030
"react": "18.3.1",
3131
"react-dom": "18.3.1",
3232
"react-router-dom": "^6.22.0",
@@ -44,7 +44,7 @@
4444
"@grafana/tsconfig": "^2.0.1",
4545
"@playwright/test": "1.54.2",
4646
"@stylistic/eslint-plugin-ts": "^4.4.1",
47-
"@swc/core": "^1.13.21",
47+
"@swc/core": "^1.14.0",
4848
"@swc/helpers": "^0.5.17",
4949
"@swc/jest": "^0.2.39",
5050
"@testing-library/jest-dom": "6.9.1",

tests/annotationQueryEditor.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ test('should successfully create an annotation', async ({ annotationEditPage, gr
99
await page.keyboard.insertText('SELECT * FROM public.events');
1010
await expect(annotationEditPage.runQuery()).toBeOK();
1111
if (gte(grafanaVersion, '11.0.0')) {
12-
await expect(annotationEditPage).toHaveAlert('success', { hasText: '8 events (from 4 fields)' });
12+
await expect(annotationEditPage).toHaveAlert('success', { hasText: '8 events (from 4 fields)', timeout: 15_000 });
1313
}
1414
});

tests/queryEditor.spec.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { test, expect } from '@grafana/plugin-e2e';
22

3-
test('should return data when a valid query is successfully run', async ({ page, panelEditPage, selectors }) => {
3+
test('should provide autosuggestions', async ({ page, panelEditPage, selectors }) => {
4+
test.slow();
45
await panelEditPage.datasource.set('AWS Redshift E2E');
56
await panelEditPage.timeRange.set({ from: '2008-01-01 19:00:00', to: '2008-01-02 19:00:00' });
67
await panelEditPage.setVisualization('Table');
@@ -18,27 +19,34 @@ test('should return data when a valid query is successfully run', async ({ page,
1819
await page.keyboard.press('Enter');
1920
await expect(editor.getByLabel('FROM')).toBeVisible();
2021
await page.keyboard.press('Enter');
21-
await expect(editor.getByLabel('catalog_history')).toBeVisible();
22+
await expect(editor.getByLabel('catalog_history')).toBeVisible({ timeout: 15_000 });
2223
await page.keyboard.press('p');
2324
await page.keyboard.press('u');
24-
await expect(editor.getByLabel('public')).toBeVisible();
25+
await expect(editor.getByLabel('public')).toBeVisible({ timeout: 15_000 });
2526
await page.keyboard.press('Enter');
26-
await expect(editor.getByLabel('average_temperature')).toBeVisible();
27+
await expect(editor.getByLabel('average_temperature')).toBeVisible({ timeout: 15_000 });
2728
await page.keyboard.press('Enter');
2829
await expect(editor.getByLabel('GROUP BY')).toBeVisible();
2930
await page.keyboard.press('Enter');
30-
await expect(editor.getByLabel('berlin')).toBeVisible();
31+
await expect(editor.getByLabel('berlin')).toBeVisible({ timeout: 15_000 });
3132
await page.keyboard.press('Enter');
3233
await expect(editor).toContainText('SELECT * FROM public.average_temperature GROUP BY berlin');
34+
});
3335

34-
// Clear the query and perform a query that uses the `$__timeFilter` macro
36+
test('should return data when a valid query is successfully run', async ({ page, panelEditPage, selectors }) => {
37+
await panelEditPage.datasource.set('AWS Redshift E2E');
38+
await panelEditPage.timeRange.set({ from: '2008-01-01 19:00:00', to: '2008-01-02 19:00:00' });
39+
await panelEditPage.setVisualization('Table');
40+
41+
await page.waitForFunction(() => window.monaco);
42+
const editor = panelEditPage.getByGrafanaSelector(selectors.components.CodeEditor.container);
3543
await editor.click();
3644
await page.keyboard.press('ControlOrMeta+A');
3745
await page.keyboard.insertText(
3846
`select saletime as time, commission as commission from sales where $__timeFilter(time)`
3947
);
4048
await expect(panelEditPage.refreshPanel()).toBeOK();
41-
await expect(panelEditPage.panel.fieldNames).toHaveText(['time', 'commission']);
49+
await expect(panelEditPage.panel.fieldNames).toHaveText(['time', 'commission'], { timeout: 15_000 });
4250
await expect(panelEditPage.panel.data).toContainText([
4351
/\d{4}(-\d{2}){2} \d{2}(:\d{2}){2}/ /* matches this pattern '2008-01-01 19:12:50' */,
4452
/^\d*(\.\d+)?$/ /* matches integers and decimals */,

tests/variableQueryEditor.spec.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,8 @@ test('should successfully create a variable', async ({ variableEditPage, page, s
99
const queryDataRequest = variableEditPage.waitForQueryDataRequest();
1010
await variableEditPage.runQuery();
1111
await queryDataRequest;
12-
await expect(variableEditPage).toDisplayPreviews([
13-
'Classical',
14-
'Jazz',
15-
'MLB',
16-
'MLS',
17-
'Musicals',
18-
'NBA',
19-
'NFL',
20-
'NHL',
21-
'Opera',
22-
'Plays',
23-
'Pop',
24-
]);
12+
await expect(variableEditPage).toDisplayPreviews(
13+
['Classical', 'Jazz', 'MLB', 'MLS', 'Musicals', 'NBA', 'NFL', 'NHL', 'Opera', 'Plays', 'Pop'],
14+
{ timeout: 15_000 }
15+
);
2516
});

0 commit comments

Comments
 (0)