Commit Graph

23196 Commits

Author SHA1 Message Date
Juan Cabanas
af42f31fe6 ShareDrawer: Update documentation link buttons (#93339) 2024-09-18 11:53:02 +01:00
wt
f7232b997c Dashboards: Fix typo in PublicDashboardNotAvailable component (#93418) 2024-09-18 12:56:08 +03:00
Alexander Akhmetov
e59ea00518 Alerting: Add TLS, QoS and retain options to the MQTT receiver (#92331) 2024-09-17 21:11:16 +02:00
Yuri Tseretyan
0f788d8d83 Alerting: Support for renaming receivers (#93349)
* update RenameReceiverInNotificationSettings in DbStore to check for provisioning

* implement renaming in receiver service and provisioning

* do not patch route when stitching

* fix bug in stitching because it returned new name but the old one was expected

* update receiver service to always return result converted from storage model this makes sure that UID and version are consistent with GET\LIST operations

* use provided metadata.name for UID of domain model because rename changes UID and request fails

* remove rename guard

* update UI to not disable receiver name when k8s api enabled

* create should calculate uid from name because new receiver does not have UID yet.
2024-09-17 19:07:31 +03:00
linoman
fb0d3b944a SSO LDAP: Fix search base dns parsing (#93179)
* Fix parse of

* Add i18n files

* Add default value

* Replace input field with multiselect

* rename delete form function

* Use Controller for MultiSelect
2024-09-17 17:52:53 +02:00
Oscar Kilhed
4d50cb2b7b Scenes: Ensure scenes dashboards interpolate variables in sql queries the same as old arch (#93270)
Ensure scenes dashboards interpolate variables in sql queries the same as old arch
2024-09-17 13:33:06 +01:00
Gilles De Mey
70b5bd609c Alerting: Update rules empty state CTA (#93276) 2024-09-13 18:21:17 +03:00
Victor Marin
a214fbd7cf Fix panels in rows stuck in loading (#93168)
* Fix panels in rows stuck in loading

* fix

* fix + tests

* force reperform in case All value is selected and actual options change

* bump scenes so tests pass

* redo yarn.lock

* redo yarn.lock
2024-09-13 17:51:12 +03:00
Josh Hunt
9fbd05773a Chore: Clean up old API methods in manage-dashboards/actions (#93329)
Chore: Deprecate createFolder() function, and remove other unused functions
2024-09-13 17:11:41 +03:00
Juan Cabanas
c56870e511 ShareDrawer: Test coverage (#93111) 2024-09-13 11:01:21 -03:00
Tom Ratcliffe
f9796f05fe Alerting: Fix sending secure settings when using k8s API (#93320) 2024-09-13 15:01:05 +03:00
Sonia Aguilar
d28e76e93b Alerting: Show a warning when contact point has not receivers in it (#93318)
Show a warning when contact point has not receivers in it
2024-09-13 14:40:52 +03:00
Sonia Aguilar
8a743b2e2f Alerting: Fix reseting secure fields (#93278)
fix reseting secure fields
2024-09-13 13:33:26 +02:00
renovate[bot]
dc2a777edb Update dependency @types/jest to v29.5.13 2024-09-13 10:27:38 +00:00
Sonia Aguilar
be4798096a Alerting: Fix incorrect warning for OnCall integration (#93085)
Remove warning when geting oncall metadata

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-09-13 11:59:00 +02:00
Ashley Harrison
161d452841 Chore: Type improvements (#93267)
* some type fixes + ignore graveyard folder

* few more fixes

* remove comment

* ignore global styles

* few more type fixes
2024-09-13 09:50:55 +01:00
Piotr Jamróz
3514504240 Tracing: Remove redundant types (#91835)
* Display event name of a span

* Clean up

* Retrigger the build

* Show colon only when there are fields to display

* Rollback

* Use event name when exporting to OTLP

* Allow filtering spans by event name

* Remove redundant types

* Remove redundant TraceLog

* Update betterer report
2024-09-13 10:05:37 +02:00
Erik Sundell
8c702d4a6b Plugin extensions: Make sure core features use new hooks (#92723)
* use new extensions APIs across grafana core

* setup setPluginLinksHook

* fix tests

* fix mock

* fix more broken tests

* use plugin components hook

* remove unused func

* fix tests

* remove unused import
2024-09-13 09:23:18 +02:00
Ashley Harrison
0a976f831c Breadcrumbs: Tweak padding so they remain equally spaced (#93284)
tweak breadcrumb padding so it's equally spaced
2024-09-12 19:24:52 +03:00
Drew Slobodnjak
e6f359f90b Transformations: Binary operation on all numbers (#92172)
* Transformations: Binary operation on all numbers

* Handle replaceFields option

* Change left clear out to string

* Handle time field

* Fix filtering

* Update new field names to remove double space

* Add tests

* Add BinaryValue interface and update editor

* Fix initial behavior

* Rollback rendering standards

* Add ctx interpolate

* Fix fixed value variable

* Add function to convert old binary value type

* Update tests for new structures

* Add bullet for all number field option

* baldm0mma/run content build script

* Disable alias control for type matching
2024-09-12 08:50:23 -07:00
Alexa V
22fe575925 Dashboard Scene: Fix issue for Dashboard Datasource and library panel (#93220) 2024-09-12 16:49:22 +02:00
colin-stuart
04d9fa04a7 Auth: Prevent scheduled token rotation jobs with large delay from rolling back to 1 ms (#93242)
Auth: prevent scheduled token rotation jobs with large delay from rolling back to 1 ms
2024-09-12 09:21:30 -04:00
Tom Ratcliffe
03c48844dd Chore: Remove MSW worker from source control and rely on installation instead (#93268) 2024-09-12 16:03:50 +03:00
Will Browne
3f8d127410 Plugins: Ensure only updateable plugins can be updated via the UI (#93205)
* only updateable plugins can be updated via the UI

* add missing state

* Apply levi brains

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* apply same style throughout

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2024-09-12 13:51:50 +01:00
Jack Westbrook
29243658ce Performance: Code split login page (#92704)
feat(frontend): lazy load login page
2024-09-12 14:01:08 +02:00
Bogdan Matei
2a2813b577 Scopes: Reload dashboards when on scopes change (#92804) 2024-09-12 13:58:45 +02:00
grafana-pr-automation[bot]
ce7533eb3b I18n: Download translations from Crowdin (#93211)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-12 13:20:22 +03:00
linoman
785240d51c SSO LDAP: Add LDAP to providers list (#93120)
* Add LDAP to providers list

* fix bug when there are no group mappings
2024-09-12 10:31:24 +02:00
Ieva
700636b3b9 RBAC: Hide the root level dashboard creation button from users who can't create dashboards on root level (#92942)
hide the root level dashboard creation button from users who can't create dashboards on the root level
2024-09-11 16:40:08 +01:00
Brendan O'Handley
d41ee6bbc3 Explore metrics: Fix long metrics and labels in landing page (#92443)
* word wrap long metric names

* trunctate long labels

* use css for filters
2024-09-11 08:17:41 -05:00
Ashley Harrison
766e256c5c Chore: Update mockServiceWorker version (#93223)
update version
2024-09-11 16:06:04 +03:00
Gilles De Mey
90ee52e8d9 Alerting: New search UI – Part 1 (#91620) 2024-09-11 14:29:26 +03:00
Hugo Kiyodi Oshiro
ecd1a6e421 Plugins: Fix plugins count in update all plugins button (#93126)
* Plugins: Fix plugins count in update all plugins button

* Plugins: Fix new updates filter

* Plugins: Update tests
2024-09-11 12:12:06 +02:00
Laura Fernández
902c658c9a POC: Refresh footer on SaveDashboardAsForm when title and folder data change by the user (#92330) 2024-09-11 11:51:48 +02:00
Yulia Shanyrova
f88571c2e7 Plugins: Plugin details right panel UI improvements (#93171)
* UI improvements WIP

* change links appearance and layout for plugin details right panel

* Changed external links back

* Update public/app/features/plugins/admin/components/PluginDetailsRightPanel.tsx

Co-authored-by: David Harris <david.harris@grafana.com>

* Update public/locales/en-US/grafana.json

Co-authored-by: David Harris <david.harris@grafana.com>

* fix report abuse to report concern

---------

Co-authored-by: David Harris <david.harris@grafana.com>
2024-09-11 11:44:16 +02:00
grafana-pr-automation[bot]
91c3e3478a I18n: Download translations from Crowdin (#93185)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-11 09:32:21 +01:00
Ashley Harrison
79a86b9e6a Chore: Improve typings (#93180)
* fix some any's/type assertions

* fix some more any/type assertions
2024-09-11 09:30:33 +01:00
Alex Khomenko
25ebb5b76f Users/teams: Update to be compatible with react router 6 (#93163)
* UserCreatePage: Make compatible with react router 6

* ServiceAccountPage.test: Make compatible with react router 6

* Update TeamPages
2024-09-11 10:02:11 +03:00
Yuri Tseretyan
cb372d3fa8 Alerting: Support secrets in contact points nested fields (#92035)
Back-end:
* update alerting module
* update GetSecretKeysForContactPointType to extract secret fields from nested options
* Update RemoveSecretsForContactPoint to support complex settings
* update PostableGrafanaReceiverToEmbeddedContactPoint to support nested secrets
* update Integration to support nested settings in models.Integration
* make sigv4 fields optional

Front-end:
* add UI support for encrypted subform fields
* allow emptying nested secure fields
* Omit non touched secure fields in POST payload when saving a contact point
* Use SecretInput from grafana-ui instead of the new EncryptedInput
* use produce from immer
* rename mapClone
* rename sliceClone
* Don't use produce from immer as we need to delete the fileds afterwards

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
Co-authored-by: Matt Jacobson <matthew.jacobson@grafana.com>
2024-09-10 22:26:23 -04:00
Juan Cabanas
78ce9b8f39 ShareDrawer: Remove URL param in share externally cancel (#93191) 2024-09-10 17:48:45 -03:00
Juan Cabanas
afe457306a ShareDrawer: Change alert texts (#93184) 2024-09-10 17:11:54 -03:00
Oscar Kilhed
acbd50c7d6 GrafanaUI: Add select all toggle to selectbox (#92483)
* Add select all toggle
2024-09-10 20:33:17 +02:00
Gilles De Mey
c8dc4d93d4 Alerting: Rename list view section titles (#93182) 2024-09-10 19:31:11 +03:00
linoman
56f361198c SSO LDAP: Adjust button behavior (#93173)
* Extract getSettings behaviour

* Replace string values format

* Reload settings

* Add new option to discad settings

* update i18n files

* run frontend linter
2024-09-10 18:06:40 +03:00
Adela Almasan
f64b121ddb Canvas: Allow API calls to grafana origin (#91822)
* allow post URL
* check for config
* allow relative paths
* add allowed internal pattern; add checks for method
* update defaults.ini
* add custom header
* update config comment
* use globbing, switch to older middleware - deprecated call
* add codeowner
* update to use current api, add test
* update fall through logic

* Update pkg/middleware/validate_action_url.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Update pkg/middleware/validate_action_url.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* add more tests

* Update pkg/middleware/validate_action_url_test.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* fix request headers

* add additional tests for all verbs

* fix request headers++

* throw error when method is unknown

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Brian Gann <bkgann@gmail.com>
Co-authored-by: Brian Gann <briangann@users.noreply.github.com>
Co-authored-by: Dan Cech <dcech@grafana.com>
2024-09-10 10:45:27 -04:00
Tobias Skarhed
096105fed6 New Select: Try it out with some core components (#92826)
* Export Combobox and add portalling

* Use floatingui fixed strategy and fix z-index

* Check non null

* Make value string type only

* Try with fiscal year setting

* Use combobox for WeekStartPicker

* Improve screen reader handling

* Fix faulty import

* Fix type issue

* Fix failing tests and export unstable

* Rename option and remove export

* Use comboboxMockSetup function

* Add support for number type

* menuClosed styles to emotion
2024-09-10 17:28:00 +03:00
Jack Westbrook
e3fd9f9e58 Fix: Resolution of css for plugins using loadPluginCSS (#93128)
* fix(plugins): resolve loadPluginCss urls for filesystem and cdn hosted plugins

* fix(plugins): should a registry lookup fail in getLoadPluginCssUrl fallback to relative path

* refactor(plugins): rename var to id for legibility

* test(plugins): add some extra test cases for getLoadPluginCssUrl function
2024-09-10 14:35:21 +02:00
Laura Fernández
1701dc85e7 A11y: Focus outline is not fully visible in several areas of the application (#93030) 2024-09-10 13:50:12 +02:00
grafana-pr-automation[bot]
3278ab543b I18n: Download translations from Crowdin (#92834)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-10 11:22:44 +01:00
Ashley Harrison
442bb1d35f Internationalization: make i18nKey required in grafana-ui as well (#93154)
make i18nKey required in grafana-ui as well
2024-09-10 12:20:30 +03:00