Zoltán Bedi
5a7916133e
Chore: Remove `sqlQuerybuilderFunctionParameters` feature toggle ( #100809 )
...
* chore: remove `sqlQuerybuilderFunctionParameters` ff
* Update packages/grafana-sql/src/components/visual-query-builder/SelectRow.tsx
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
---------
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2025-02-19 15:38:27 +01:00
Ivana Huckova
58a3e0ae86
Remove @grafana/experimental in @grafana/o11y-ds-frontend and @grafana/sql ( #99501 )
...
* Remove @grafana/experimental in @grafana/o11y-ds-frontend
* Remove @grafana/experimental in @grafana/sql
* Fix mock in test
2025-01-28 10:48:19 +01:00
renovate[bot]
89774f3c8d
Replace usage of `react-test-renderer` and `@testing-library/react-hooks` ( #98152 )
...
* Update dependency @types/react-test-renderer to v19
* replace usage of react-test-renderer
* use renderHook from @testing-library/react in most tests
* update tests to work without @testing-library/react-hooks
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-12-18 11:55:25 +00:00
Jack Westbrook
329a4605fb
SQL Datasources: Make QueryEditor lazy loaded ( #96179 )
...
* feat(grafana-sql): make sqlqueryeditor lazy loaded
* feat(sql-datasources): switch out query editor for lazy query editor
* build(postgresql): put tsconfig jsx prop inside compilerOptions
* chore(sql-queryeditor): move lazy import out of component
2024-11-15 12:28:01 +01:00
Zoltán Bedi
85c696c4ad
SQL: Add macro support in select case ( #88514 )
...
* Feat: timeGroup macro handling in VQB
* Add tests
* Add functions to SQL ds
* Fix lint errors
* Add feature toggle
* Add rendering based on object
* Fix lint
* Fix CI failures
* Fix tests
* Address review comments
* Add docs
* Fix JSX runtime warnings
* Remove docs part that mentions suggest more macros
* Update docs/sources/shared/datasources/sql-query-builder-macros.md
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
* Add smoke test for this feature
* lint
* Add supported macros to influx
* Add setupTests.ts to include in tsconfig.json
* Import jest-dom instead of setupTests.ts
---------
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-11-04 17:13:35 +01:00
Eugene Apollonsky
5871362ccf
Grafana SQL: Fix broken import in NumberInput component ( #92803 )
...
SQL: Fix broken import
2024-09-02 14:34:06 +02:00
Ashley Harrison
78f78753c7
Chore: Migrate `Modal` SCSS styles to emotion ( #91569 )
...
migrate modal scss styles to emotion
2024-08-12 12:55:22 +01:00
Ashley Harrison
47f8717149
React: Use new JSX transform ( #88802 )
...
* update eslint, tsconfig + esbuild to handle new jsx transform
* remove thing that breaks the new jsx transform
* remove react imports
* adjust grafana-icons build
* is this the correct syntax?
* try this
* well this was much easier than expected...
* change grafana-plugin-configs webpack config
* fixes
* fix lockfile
* fix 2 more violations
* use path.resolve instead of require.resolve
* remove react import
* fix react imports
* more fixes
* remove React import
* remove import React from docs
* remove another react import
2024-06-25 12:43:47 +01:00
Ashley Harrison
13d00e09ab
Chore: Migrate some more SCSS to emotion ( #89038 )
...
* migrate section-heading
* move fonts to global styles
* migrate code styles to emotion globals
* migrate spacings styles and leave some in angular
* padding should be 2 here not 1
2024-06-12 14:46:20 +01:00
Zoltán Bedi
a1851b4c0a
SQL: change buttons aria-label to title ( #88744 )
2024-06-07 11:40:11 +02:00
renovate[bot]
de67734871
Update dependency @react-awesome-query-builder/ui to v6.5.2 ( #88630 )
...
* Update dependency @react-awesome-query-builder/ui to v6.5.2
* fix type errors
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-06-04 12:15:16 +03:00
Alex Khomenko
c4aca053e5
DateTimePicker: Return cleared value in onChange ( #88377 )
...
* DateTimePicker: Return cleared value in onChange
* Update story
2024-05-28 17:11:15 +03:00
Ashley Harrison
f1dbe39533
Chore: Improve typings ( #88282 )
...
* remove some type assertions
* some more type assertion fixes
* nicer
* shortcircuit while loop when hitting something that isn't an HTMLElement
2024-05-28 13:20:57 +01:00
timo
935076c349
SQL Query Editor: Fix label-for IDs, associate "Table" label ( #86944 )
...
* SQL Query Editor: Fix label-for IDs, associate "Table" label
* Fix mysql e2e test
---------
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2024-05-09 20:30:33 +02:00
kay delaney
8bb9b06e48
Chore: Rewrite grafana-sql css using object styles ( #87052 )
2024-04-29 22:34:10 +01:00
Zoltán Bedi
a4fe7f39ea
E2E: Rewrite mysql tests to playwright ( #83424 )
...
* E2E: Rewrite mysql tests to playwright
* Fix lint
* Add more selectors and address comments
* Scope locators when locating text
* Don't run it 20 times
* Update new-datasource-variable to assert mysql
2024-03-19 23:07:48 +01:00
Jára Benc
393b12f49f
Sql: Fix an issue with connection limits not updating when jsonData is updated ( #83175 )
2024-02-28 15:24:34 +01:00
Gábor Farkas
d65d2ceb1b
sql: add explanation comment ( #82304 )
2024-02-12 12:42:12 +01:00
Faye Lin
a3f3429290
Variable: Inform users of the error details when Grafana is unable to retrieve the variable values from an SQL data source. ( #82222 )
...
* feat: Inform users of the error details when Grafana is unable to retrieve the variable values from an SQL data source.
* format code
* use getAppEvents
* throw an error when failing to executing the sql query
* optimize code
* prettier
2024-02-12 12:19:22 +01:00
Piotr Jamróz
572c182a81
Unify frontend monitoring ( #80075 )
...
* Unify frontend monitoring
* Add missing mock
* Add missing mock
* Keep source:sandbox
* Create separate logger for plugins/sql package
* chore: rename "logAlertingError" to "logError"
* Use internal Faro logging for debugging instead of redundant browser logging
* Post-merge fix
* Add more docs about debug levels
* Unify logger names
* Update packages/grafana-runtime/src/utils/logging.ts
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
* Update packages/grafana-runtime/src/utils/logging.ts
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
---------
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-02-01 15:08:40 +01:00
Gábor Farkas
29e8a355cb
sql: extract frontend code into separate package ( #81109 )
...
* sql: extract frontend code into separate package
* updated package version
2024-01-26 11:38:29 +01:00