Erik Sundell
29d4f6a217
Datasource: Change query filtering ( #84656 )
...
* call filterQuery from queryrunner
* test query hide filtering
* fix more broken tests
* lint errrors
* remove redundant filterQuery call
* skip filter in variable queries
* fix broken cypress test
* change tooltip text
* fix translations
* fix comments
* do not execute query is targets are empty
* add more tests
* remove unsued import
* update translations
* revert id change
* change header text
* update comment for hide prop
* rename hide query prop
* change tooltip and introduce different toggle state text
* update tests
* update comment and regenerate types
* run extract again
* fix broken e2e test
* track event
* fix build issues
* revert changes in wire file
2024-03-21 13:39:39 +01:00
Jack Westbrook
3c359376e1
Grafana/Runtime: Remove SystemJS export ( #84561 )
...
* feat(systemjs): move systemjs to grafana core and stop exporting from runtime
* feat(plugins): move systemjs to own file, update imports
* chore(plugins): call systemjs directly from window as ref can be undefined
* chore(plugins): make sure systemjs is imported before its shared dependencies
* chore(systemjs): move dependency to root package.json
2024-03-21 09:22:35 +01:00
renovate[bot]
d0935fe44c
Update dependency @testing-library/react to v14.2.2
2024-03-20 12:31:21 +00:00
Andreas Christou
6bb7ab261a
AzureMonitor: User authentication support ( #81918 )
...
* Stub out frontend user auth
* Stub out backend user auth
* Add context
* Reorganise files
* Refactor app registration form
* Alert for user auth service principal credentials
* AzureMonitor: Add flag for enabling/disabling fallback credentials for current user authentication (#82332 )
* Rename field
* Add fallback setting
* Update tests and mock
* Remove duplicate setting line
* Update name of property
* Update frontend settings
* Update docs and default config files
* Update azure-sdk
* Fix lint
* Update test
* Bump dependency
* Update configuration
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* Docs review
* AzureMonitor: User authentication frontend updates (#83107 )
* Rename field
* Add fallback setting
* Update tests and mock
* Remove duplicate setting line
* Update name of property
* Update frontend settings
* Update docs and default config files
* Add alerts to query editor
- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests
* Add separate FallbackCredentials component
- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic
* Alert when fallback credentials disabled
* Update condition
* Update azure-sdk
* Fix lint
* Update test
* Remove unneeded conditions
* Set auth type correctly
* Legacy cloud options
* Fix client secret
* Remove accidental import
* Bump dependency
* Add tests
* Don't use VerticalGroup component
* Remove unused import
* Fix lint
* Appropriately set oAuthPassThru and disableGrafanaCache properties
* Clear azureCredentials on authType change
* Correctly retrieve secret
* Fix bug in authTypeOptions
* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
* Update public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
* Add documentation links
* Fix broken link
---------
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
* AzureMonitor: Update docs for current user authentication (#83440 )
* Rename field
* Add fallback setting
* Update tests and mock
* Remove duplicate setting line
* Update name of property
* Update frontend settings
* Update docs and default config files
* Add alerts to query editor
- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests
* Add separate FallbackCredentials component
- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic
* Alert when fallback credentials disabled
* Update condition
* Update azure-sdk
* Fix lint
* Update test
* Remove unneeded conditions
* Set auth type correctly
* Legacy cloud options
* Fix client secret
* Remove accidental import
* Bump dependency
* Add tests
* Don't use VerticalGroup component
* Remove unused import
* Update docs
* Fix lint
* Appropriately set oAuthPassThru and disableGrafanaCache properties
* Clear azureCredentials on authType change
* Correctly retrieve secret
* Feedback
* Spelling
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
---------
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
* Docs review
* Update docs with additional configuration information
* Fix to appropriately hide the query editor
* Typo
* Update isCredentialsComplete
* Update test
---------
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2024-03-19 16:32:24 +00:00
renovate[bot]
5b1b280798
Update dependency @types/react to v18.2.67
2024-03-19 16:21:08 +00:00
renovate[bot]
31bbd49459
Update dependency @rollup/plugin-terser to v0.4.4 ( #84550 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 10:37:33 +00:00
Levente Balogh
155e38edfe
Plugin Extensions: Add prop types to component extensions ( #84295 )
...
* feat: make it possible to specify prop types for component extensions
* Update packages/grafana-runtime/src/services/pluginExtensions/getPluginExtensions.ts
* chore: adapted test case
* chore: update betterer
* feat: update types for configureComponentExtension()
* fix: remove type specifics for `configureExtensionComponent`
* Update betterer config
---------
Co-authored-by: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com>
Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>
2024-03-18 15:14:51 +02:00
Josh Hunt
ed3bdf5502
I18n: Expose current UI language in @grafana/runtime config ( #84457 )
...
* I18n: Expose current UI language in Grafana config
* fix
2024-03-18 11:00:43 +00:00
Torkel Ödegaard
4dcbf4e5bb
Select: Fixes virtualized select showing empty space above selected value ( #84544 )
...
* Select: Virtualized select bug replication
* Update with fix
* remove story
* Pin version
* Update
* Update
2024-03-15 16:00:58 +01:00
Jack Westbrook
0acb400248
Chore: Remove unused rollup plugin dependencies ( #84492 )
...
* chore(runtime): remove unused rollup-plugin-terser dependency
* chore(packages): remove more unused rollup plugins
2024-03-15 12:02:27 +01:00
renovate[bot]
05f737b712
Update dependency @types/react to v18.2.66
2024-03-15 09:02:47 +00:00
renovate[bot]
6d19894a7d
Replace dependency rollup-plugin-terser with @rollup/plugin-terser 0.1.0 ( #84487 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 16:01:58 +00:00
Gilles De Mey
8765c48389
Alerting: Remove legacy alerting ( #83671 )
...
Removes legacy alerting, so long and thanks for all the fish! 🐟
---------
Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
Co-authored-by: Sonia Aguilar <soniaAguilarPeiron@users.noreply.github.com>
Co-authored-by: Armand Grillet <armandgrillet@users.noreply.github.com>
Co-authored-by: William Wernert <rwwiv@users.noreply.github.com>
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-03-14 15:36:35 +01:00
renovate[bot]
d6acb474cf
Update dependency @types/react-dom to v18.2.22
2024-03-13 12:47:58 +00:00
renovate[bot]
46a35775ae
Update dependency @types/lodash to v4.17.0 ( #84299 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 17:13:14 +02:00
Sergey Kostrukov
fe1ed0a9e1
Azure: Add list of clouds in frontend AzureSettings ( #84039 )
...
Add list of supported clouds in AzureSettings
2024-03-12 13:49:30 +00:00
renovate[bot]
a883df633e
Update dependency @types/react to v18.2.65
2024-03-12 11:30:56 +00:00
renovate[bot]
3449a43ff2
Update react monorepo
2024-03-11 16:24:00 +00:00
Josh Hunt
1ab8857e48
E2C: Add cloud migration is_target server config option ( #83419 )
2024-03-11 14:29:44 +02:00
Gilles De Mey
f5dab6b5a5
Alerting: Refactor analytics to use pushMeasurements ( #83850 )
2024-03-07 16:41:38 +01:00
Adela Almasan
429ef9559c
FeatureToggles: Allow changing prod env safe feature toggles via URL ( #84034 )
2024-03-07 08:49:37 -06:00
Misi
75b020c19d
Cfg: Add a setting to configure if the local file system is available ( #83616 )
...
* Introduce environment.local_filesystem_available
* Only show TLS client cert, client key, client ca when local_filesystem_available is true
* Rename LocalFSAvailable to LocalFileSystemAvailable
2024-03-01 10:39:50 +01:00
Ashley Harrison
fc29182f16
Chore: Remove React 17 peer deps ( #83524 )
...
remove react 17 peer dep
2024-02-27 16:34:00 +00:00
renovate[bot]
801107892b
Update dependency @types/react to v18.2.60
2024-02-27 10:22:14 +00:00
renovate[bot]
0848e7dd69
Update dependency @types/react to v18.2.59
2024-02-26 21:01:35 +00:00
Khushi Jain
d02de5ddb9
Image Rendering: Add settings for default width, height and scale ( #82040 )
...
* Add Image width & height
* ability to change default width, height and scale
* default ini
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/setting/setting.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/setting/setting.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Added docs, changed frontend
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/api/dtos/frontend_settings.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/api/frontendsettings.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update pkg/api/render.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* add query float 64
* Update packages/grafana-runtime/src/config.ts
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update public/app/features/dashboard/components/ShareModal/utils.ts
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* spacing
* fix tests
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
---------
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-02-26 13:27:34 +01:00
Laura Fernández
f6fa248ac1
ReturnToPrevious: Add guidelines to returnToPrevious
hook ( #83219 )
2024-02-26 12:08:00 +01:00
Jack Westbrook
15d83960ec
Chore: Align usage of tsconfig in yarn workspaces to 1.3.0-rc1 ( #83160 )
...
chore(tsconfig): align all usage in workspaces to 1.3.0-rc1
2024-02-22 15:30:20 +01:00
Jack Westbrook
0dcdfc261b
Monaco Editor: Load via ESM ( #78261 )
...
* chore(monaco): bump monaco-editor to latest version
* feat(codeeditor): use esm to load monaco editor
* revert(monaco): put back previous version
* feat(monaco): setup MonacoEnvironment when bootstrapping app
* feat(monaco): load monaco languages from registry as workers
* feat(webpack): clean up warnings, remove need to copy monaco into lib
* fix(plugins): wip - remove amd loader workaround in systemjs hooks
* chore(azure): clean up so QueryField passes typecheck
* test(jest): update config to fix failing tests due to missing monaco-editor
* test(jest): update config to work with monaco-editor and kusto
* test(jest): prevent message eventlistener in nodeGraph/layout.worker tripping up monaco tests
* test(plugins): wip - remove amd related tests from systemjs hooks
* test(alerting): prefer clearAllMocks to prevent monaco editor failing due to missing matchMedia
* test(parca): fix failing test due to undefined backendSrv
* chore: move monacoEnv to app/core
* test: increase testing-lib timeout to 2secs, fix parca test to assert dom element
* feat(plugins): share kusto via systemjs
* test(e2e): increase timeout for checking monaco editor in exemplars spec
* test(e2e): assert monaco has loaded by checking the spinner is gone and window.monaco exists
* test(e2e): check for monaco editor textarea
* test(e2e): check monaco editor is loaded before assertions
* test(e2e): add waitForMonacoToLoad util to reduce duplication
* test(e2e): fix failing mysql spec
* chore(jest): add comment to setupTests explaining need to incresae default timeout
* chore(nodegraph): improve comment in layout.worker.utils to better explain the need for file
2024-02-22 12:31:40 +01:00
Torkel Ödegaard
64e0a4282e
DataQuery: Track panel plugin id not type ( #83091 )
2024-02-21 09:38:42 +01:00
grafana-delivery-bot[bot]
8f3d49687e
Release: Bump version to 11.0.0-pre ( #83119 )
...
"Release: Updated versions in package to 11.0.0-pre"
Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-02-20 19:02:36 +00:00
Ieva
4d53385d5f
RBAC: allow listing permissions on the root folder ( #82184 )
...
* allow returning AC metadata for the root folder
* add a test
* share the reserved root folder UID with frontend
2024-02-15 16:13:14 +00:00
renovate[bot]
e612b9b46b
Update dependency @types/react-dom to v18.2.19
2024-02-08 16:26:58 +00:00
renovate[bot]
1771010450
Update dependency @types/react to v18.2.55
2024-02-06 10:06:27 +00:00
renovate[bot]
d17a77f4a2
Update dependency @types/react to v18.2.53 ( #81879 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 12:36:43 +00:00
Laura Fernández
42cd4266b4
ReturnToPrevious: make href
optional ( #81691 )
2024-02-02 13:14:58 +01:00
renovate[bot]
8d980fef71
Update dependency @types/react to v18.2.51
2024-02-02 10:31:11 +00:00
renovate[bot]
315d3a7a72
Update dependency @types/jest to v29.5.12
2024-02-02 00:27:44 +00:00
renovate[bot]
e6a4992f37
Update dependency @testing-library/react to v14.2.1
2024-02-01 23:37:30 +00: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
renovate[bot]
12d08d5e7d
Update dependency @testing-library/react to v14.2.0 ( #81612 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 01:00:51 +00:00
Laura Fernández
8ee7b1e00c
ReturnToPrevious : Add logic to show the new component in AppChrome
behind the new toggle ( #81035 )
2024-01-30 13:34:59 +01:00
Dominik Prokop
f77c831e3f
Data query: Allow logging panel plugin id when executing queries ( #81164 )
...
* Data query: Allo logging panel plugin id when executing queries
* Update tracing header middleware
* Test fix
* Add panelPluginType to query analytics
* Cleanup
2024-01-30 00:06:31 -08:00
Torkel Ödegaard
e08700c1b5
Dashboard: New EmbeddedDashboard runtime component ( #78916 )
...
* Embedding dashboards exploratino
* Update
* Update
* Added e2e test
* Update
* initial state, and onStateChange, only explore panel menu action and other fixes and tests
* fix e2e spec
* Fix url
* fixing test
2024-01-25 07:32:07 +01:00
renovate[bot]
7dd89134dc
Update dependency typescript to v5.3.3 ( #81096 )
...
* Update dependency typescript to v5.3.3
* update ApiKeysPage
* fix remaining conflict in lockfile
* update sdk
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-24 15:33:54 +00:00
renovate[bot]
5c7d97cbe0
Update react monorepo ( #80736 )
...
* Update react monorepo
* type fixes
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-22 10:02:57 +00:00
renovate[bot]
6eb51f6367
Update dependency @testing-library/react to v14.1.2 ( #80802 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 13:40:41 +00:00
Marco Schaefer
fe70a3cf60
Upgrade Faro to v1.3.6 ( #80552 )
2024-01-18 11:38:30 +01:00
renovate[bot]
dd7259b77e
Update dependency tslib to v2.6.2
2024-01-17 13:41:12 +00:00
renovate[bot]
472f450333
Update dependency systemjs to v6.14.3
2024-01-17 11:39:29 +00:00