Commit Graph

23181 Commits

Author SHA1 Message Date
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
Levente Balogh
831493278f
UI Extensions: Share the registries using a React context (#92014)
* feat: add a context for the extension registries

* feat: add a provider for registries to `AppWrapper`

* feat(extensions): add a read-only registry version

* feat: share the registry for exposed components using the context

* fix: tests

* feat: share the registry for added components using the context

* feat: share the addedLinks registry using react context

* use read-only registry versions
2024-09-10 10:42:07 +02:00
Juan Cabanas
644a315667
ShareDrawer: Improvements (#93107) 2024-09-09 19:32:45 -03:00
renovate[bot]
1e6735706d Update dependency @types/node to v20.16.5 2024-09-09 19:39:19 +00:00
Ashley Harrison
a6e2962319 update mock to work with react-virtual 2024-09-09 19:19:30 +03:00
Andreas Christou
11c1af0c5f
AzureMonitor: Remove Basic Logs retention warning (#92870)
Remove retention warning
2024-09-09 16:15:55 +01:00
linoman
904b0a9ee6
SSO LDAP: Fix documentation render (#93041)
* Fix documentation link render

* Add i18n changes
2024-09-09 16:32:23 +02:00
Adela Almasan
af48d3db1e
Canvas: Add actions support (#90677)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-09-09 09:11:55 -05:00
Oscar Kilhed
c0df15dcde
InfluxDB: Fix variable interpolation in influx db (#92988)
Fix variable interpolation in influx db
2024-09-09 15:35:30 +02:00
Ashley Harrison
58907a8464
i18n: Add test to check languages match a canonical locale (#93105)
add test to check languages match a canonical locale
2024-09-09 14:25:49 +01:00
Alex Khomenko
7e4500c7c9
Dashboards: Update tests to be compatible with react router 6 (#93080)
* Dashboards: Update tests to be compatible with react router 6

* Update VersionsSettings.test

* Update DashboardGrid.test

* Update TimeSrv.test

* Remove redundant mock

* Update PublicDashboardListTable.test

* Update PlaylistEditPage.test

* Revert TimeSrv changes
2024-09-09 16:03:57 +03:00
Tom Ratcliffe
ef486133c2
Alerting: Make query wrapper match up datasource UIDs if necessary (#93057) 2024-09-09 14:01:46 +01:00
Polidoro-root
3fde6bd730
I18n: Add constants value tests to avoid typos (#93070) 2024-09-09 15:49:47 +03:00
Andrej Ocenas
5e2ac24890
Sidecar: Add split view and basic APIs for extensions (#91648)
* Add split view and basic APIs to extensions

* Add comments

* Update public/app/AppWrapper.tsx

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

* Moved the .grafana-app element and deduplicate some code

* Remove the provider variants of usePluginLinks/Components

* Change buildPluginSectionNav

* Update comment

* Use eventBus

* Remove non existent exports

* refactor: use a sidecar service to encapsulate the state

* Don't wrap single app in split wrapper

* Use hook splitter

* Remove inline styles

* Type the style props from useSplitter

* Move the overflow style changes to appWrapper

* Deduplicate some common top level providers

* Move modals

* Move routes wrappers to it's own file

* Use better css and add comments

* Remove query rows app extension point

* Fix test

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2024-09-09 14:45:05 +02:00
Ieva
ba9f1da28e
Data sources: Hide the datasource redirection banner for users who can't interact with data sources (#92886)
* hide the datasource redirection banner for users who can't list data sources

* readding explore evaluation

* add a test
2024-09-09 14:50:09 +03:00
ismail simsek
5ecc927f08
Explore Metrics: Skip DataTrailsHistory tests (#93096)
* Fix tests

* Skip tests

* revert the change
2024-09-09 14:10:36 +03:00