Commit Graph

7756 Commits

Author SHA1 Message Date
Giuseppe Guerra
0db65d229e
Plugins: Add Subresource Integrity checks (#93024)
* Plugins: Pass hashes for SRI to frontend

* Add SRI hashes to frontendsettings DTOs

* Add docstring

* TestSriHashes

* Fix typo

* Changed SriHashes to ModuleHash

* update loader_test compareOpts

* update ModuleHash error message

* Add TestModuleHash/no_module.js

* Add omitEmpty to moduleHash

* Add ModuleHash to api/plugins/${pluginId}/settings

* moved ModuleHash field

* feat(plugins): add moduleHash to bootData and plugin types

* feat(plugins): if moduleHash is available apply it to systemjs importmap

* Calculate ModuleHash for CDN provisioned plugins

* Add ModuleHash tests for TestCalculate

* adjust test case name

* removed .envrc

* Fix signature verification failing for internal plugins

* fix tests

* Add pluginsFilesystemSriChecks feature togglemk

* renamed FilesystemSriChecksEnabled

* refactor(plugin_loader): prefer extending type declaration over ts-error

* added a couple more tests

* Removed unused features

* Removed unused argument from signature.DefaultCalculator call

* Removed unused argument from bootstrap.DefaultConstructFunc

* Moved ModuleHash to pluginassets service

* update docstring

* lint

* Removed cdn dependency from manifest.Signature

* add tests

* fix extra parameters in tests

* "fix" tests

* removed outdated test

* removed unused cdn dependency in signature.DefaultCalculator

* reduce diff

* Cache returned values

* Add support for deeply nested plugins (more than 1 hierarchy level)

* simplify cache usage

* refactor TestService_ModuleHash_Cache

* removed unused testdata

* re-generate feature toggles

* use version for module hash cache

* Renamed feature toggle to pluginsSriChecks and use it for both cdn and filesystem

* Removed app/types/system-integrity.d.ts

* re-generate feature toggles

* re-generate feature toggles

* feat(plugins): put systemjs integrity hash behind feature flag

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2024-10-04 14:55:09 +02:00
Ihor Yeromin
9801b92c3d
Table: Fix table cell text jumping on hover (#93913)
fix(table): table cell text jumping on hover
2024-10-04 13:20:15 +02:00
Levente Balogh
6096f46774
Plugin Extensions: Require meta-data to be defined in plugin.json during development mode (#93429)
* feat: add extensions to the backend plugin model

* feat: update the frontend plugin types

* feat(pluginContext): return a `null` if there is no context found

This will be necessary to understand if a certain hook is running inside a plugin context or not.

* feat: add utility functions for checking extension configs

* tests: fix failing tests due to the type updates

* feat(AddedComponentsRegistry): validate plugin meta-info

* feat(AddedLinksRegistry): validate  meta-info

* feat(ExposedComponentsRegistry): validate meta-info

* feat(usePluginComponent): add meta-info validation

* feat(usePluginComponents): add meta-info validation

* feat(usePluginLinks): add meta-info validation

* fix: only validate meta-info in registries if dev mode is enabled

* tests: add unit tests for the restrictions functionality

* tests: fix Go tests

* fix(tests): revert accidental changes

* fix: run goimports

* fix: api tests

* add nested app so that meta data can bested e2e tested

* refactor(types): extract the ExtensionInfo into a separate type

* refactor(extensions/utils): use Array.prototype.some() instead of .find()

* refactor(usePluginLinks): update warning message

* feat(usePluginExtensions()): validate plugin meta-info

* Wip

* fix(e2e): E2E tests for extensions

* fix(extensions): allow multiple "/" slashes in the extension point id

* fix(extensions/validators): stop validating the plugin id pattern

---------

Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
2024-10-04 08:41:26 +02:00
Arati R.
a42caa7a61
K8s/Folders: Fix tests for creating folders (#94192)
* Add feature toggle grafanaAPIServerTestingWithExperimentalAPIs
* Customise registration of FolderAPIBuilder for tests and fix tests
2024-10-03 12:11:40 +02:00
Tobias Skarhed
e48d166c3e
New Select: width auto sets width based on content (#93800)
* Add inline prop for AutoSizeInput

* Rename to autoSize

* Use conditional props and width auto

* remove variable

* Remove 100% max width
2024-10-03 11:45:22 +03:00
Bogdan Matei
a87df0528b
Prometheus: Interpolate vars in adhoc filters request (#94087)
* Interpolate vars in adhoc filters request

* interpolate variables on BE

---------

Co-authored-by: Kyle Brandt <kyle@grafana.com>
2024-10-01 18:33:06 +03:00
kay delaney
1b82595251
UI/AutoSizeInput: Fixes issue where controlledValue being null caused crash (#94078) 2024-10-01 16:02:26 +01:00
Kyle Brandt
2a73b89374
Prometheus: Add resource for suggestions that include scopes/adhoc filters (#94001)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
2024-10-01 07:17:59 -04:00
renovate[bot]
8338e92a70
Update dependency sass-loader to v16 (#94006)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 10:30:32 +01:00
ismail simsek
f8fd45892d
Chore: Fix legend changing when using incremental querying (#93529)
* rename variables

* fix setting legend

* yarn prettier:write

* only update displayNameFromDS
2024-10-01 10:58:08 +02:00
owensmallwood
6a3eb276ef
Grafana Indexing PoC: Adds feature flag and gRPC endpoint (#93356)
* adds Filter gRPC and make protobuf

* adds route for querying the filter gRPC

* wires up Filter gRPC call

* [WIP] index from start

* renames gRPC endpoint to "Search"

* adds /apis/search route into k8s routes. Hacky for now.

* updates readme - wrong casing

* adds feature toggle for unified storage search

* hides US search behind feature flag. Clean up print statements.

* removes indexer - will be added in another PR

* Search: Add API Builder

* adds required method

* implementing UpdateAPIGroupInfo (WIP)

* adds groupversion

* commenting out for now

* remove unneeded code from experimenting and update register.go to match interface required

* namespaces search route

---------

Co-authored-by: leonorfmartins <leonorfmartins@gmail.com>
Co-authored-by: Todd Treece <todd.treece@grafana.com>
2024-09-30 13:46:14 -06:00
Joao Silva
a45662bf2d
Revert "Restore Dashboards: Add e2e tests (again) (#93214)" (#94003) 2024-09-30 14:26:16 +01:00
Joao Silva
42f1fcaf2c
Restore Dashboards: Add e2e tests (again) (#93214) 2024-09-30 10:44:15 +01:00
Tom Ratcliffe
af82dfa95d
Alerting/Chore: Fix TimeRangeInput not working across multiple months (#93622) 2024-09-30 10:26:07 +01:00
jackyin
e23ba32722
Transformations: Fix crash in Config from query results (#93427) 2024-09-28 09:04:40 -05:00
Adela Almasan
47b51326cc
VizTooltip: Update datalinks styling (#93950) 2024-09-28 05:33:10 +01:00
Adela Almasan
f9f85131a9
FieldConfig: Add support for Actions (#92874)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-09-27 23:12:37 -05:00
Leon Sorokin
165ca3b4e8
Chore: uPlot v1.6.31 (#93952) 2024-09-27 23:11:05 -05:00
Ihor Yeromin
d5e35c4b78
Legend: Render legend threshold colors (#92838)
* feat(barchart): render legend threshold and value mapping colors

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-09-27 17:02:03 +02:00
renovate[bot]
0401fa1652
Update dependency @faker-js/faker to v9 (#93917)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-27 15:35:15 +01:00
renovate[bot]
0e4c90dd87
Update emotion monorepo (#93914)
* Update emotion monorepo

* add @emotion/serialize package + update unit test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-09-27 15:16:12 +01:00
xiyu95
ce8c42ab35
chore: enforce the validationMessageHorizontalOverflow for InlineField (#93858)
chore: enforce the validationMessageHorizontalOverflow prop for inlineField
2024-09-27 07:01:18 -07:00
Konrad Lalik
db42af20ca
Alerting: Prometheus primary mode for the alert list page (#92975)
* Lazy loading of mimir groups

* Refactor rule statuses

* Use prometheus endpoint to populate namespace and group dropdowns

* Add a feature toggle

* Use lazy loading ruler rules if the feature toggle enabled

* Remove unnecessary props form dynamic table

* Remove query from hash calculation

* Conditionally load ns and group autocompletions from Prom or Ruler APIs

* Fix prometheus dto labels property type

* Add a new suggestions hook which provides autocomplete options for the alert rule form

* Improve delete status handling

* Add waiting for Prometheus endpoint consistency after update submission

* Get rule definition from ruler or prometheus endpoint in useCombinedRule

* Add Prometheus consistency check. Fix view page redirects

* Remove rules reload after rule creation, remove statuses from Prom primary mode

* Add waiting for Prometheus consistency on delete rule action

* Add groups list rendering improvements

* Add memo to useAbilities

* Fix GMA consistency check, fix GMA statuses

* defer filered rules rendering

* Update failing tests

* Update locales

* Add rule-id tests

* Remove unused action

* update loading styles

* Fix unrelated test

* Add a new object for reading alerting feature toggles, address minor review issues

* Improve consistency check

* update i18n

* Improve rule form redirects

* Refactor feature toggle handling

* Update docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update public/app/features/alerting/unified/components/rule-viewer/RuleViewer.tsx

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Fix prettier issues

* Fix i18n

* Fix the feature toggle description

* Fix rule updates, fix ruler-based suggestions, wait for deletion for GMA rules

* Fix rename

* Remove unused code, improve copy

* Update i18n

* Fix url redirect when serving from subpath

---------

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-09-27 14:27:16 +02:00
Jack Westbrook
012d62782c
Fix: Prevent import errors caused by Rollup 4 (#93903)
fix(packages): prevent import errors by injecting exports.esmodule and check for default prop
2024-09-27 12:18:52 +01:00
renovate[bot]
08dab3f816
Update dependency eslint-plugin-react to v7.37.0 (#93891)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-27 10:48:11 +01:00
Jack Westbrook
f22bee8ca2
Build: Migrate packages to rollup v4 (#93731)
* chore(packages): bump rollup and rollup plugins to latest

* chore(packages): fix rollup node-externals plugin imports

* chore(packages): update build/bundle scripts to pass configPlugin arg to rollup

* feat(packages): migrate rollup configs to be esm compliant

* feat(packages): build using es2018 target and use same tsconfig and tsc for rollup
2024-09-27 11:00:13 +02:00
renovate[bot]
efe8739864 Update dependency @types/node to v20.16.9 2024-09-26 14:55:59 +00:00
renovate[bot]
ad960827cc Update dependency @types/jquery to v3.5.31 2024-09-26 14:33:05 +00:00
Hugo Kiyodi Oshiro
be8c8baf6f
ConfirmModal: Allow button disable to be externally managed (#93446) 2024-09-26 15:56:25 +02:00
renovate[bot]
eee53810c0 Update dependency @grafana/faro-web-sdk to v1.10.1 2024-09-26 13:31:09 +00:00
linoman
e2816ee51a
RolePickerDrawer: Add feature toggle (#93752)
Add feature toggle
2024-09-26 14:51:38 +02:00
Edvard Falkskär
20a66343bd
SparklineCell: Improve text alignment factor (#93539) 2024-09-26 14:41:03 +03:00
kay delaney
6c8f24adc9
Dashboards: Fix issue with percentage difference formatting (#93389)
* Dashboards: Fix issue with percentage difference formatting

---------

Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
2024-09-26 11:15:51 +01:00
Sonia Aguilar
536edee7bf
Alerting: Query and expressions section simplification (#93022)
* Add mode switch in Query section

* Implement simple query mode : WIP

* fix logic switching mode

* move guard and get methodd to another folder

* Add more requiremts for being transformable from advanced to not advanced mode

* fix usig mode when it's not a grafana managed alert

* Show warning when switching to not advanced and its not possible to convert

* Add feature toggle alertingQueryAndExpressionsStepMode

* fix test

* add translations

* address PR feedback

* Use form context for sharing simplfied mode used, save in local storage and use the new fields in the api

* add check to valid reducer and threshold when switching to simplified mode

* Use only one expression list

* fix test

* move existing rule check outside storeInLocalStorageValues

* add id in InlineSwitch to handle onClick on label

* fix

* Fix default values when editing existing rule

* Update dto fields for the api request

* fix snapshot

* Fix recording rules to not show switch mode

* remove unnecessary Boolean conversion

* fix areQueriesTransformableToSimpleCondition

* update text

* pr review nit

* pr review part2
2024-09-26 08:33:14 +02:00
Adela Almasan
c36f7aa92b
VizTooltip: Improved sizing (#93762)
Co-authored-by: Staton Hysell <staton.hysell@grafana.com>
2024-09-25 20:47:03 -05:00
Jeff Levin
a21a232a8e
Revert read replica POC (#93551)
* Revert "chore: add replDB to team service (#91799)"

This reverts commit c6ae2d7999.

* Revert "experiment: use read replica for Get and Find Dashboards (#91706)"

This reverts commit 54177ca619.

* Revert "QuotaService: refactor to use ReplDB for Get queries (#91333)"

This reverts commit 299c142f6a.

* Revert "refactor replCfg to look more like plugins/plugin config (#91142)"

This reverts commit ac0b4bb34d.

* Revert "chore (replstore): fix registration with multiple sql drivers, again (#90990)"

This reverts commit daedb358dd.

* Revert "Chore (sqlstore): add validation and testing for repl config (#90683)"

This reverts commit af19f039b6.

* Revert "ReplStore: Add support for round robin load balancing between multiple read replicas (#90530)"

This reverts commit 27b52b1507.

* Revert "DashboardStore: Use ReplDB and get dashboard quotas from the ReadReplica (#90235)"

This reverts commit 8a6107cd35.

* Revert "accesscontrol service read replica (#89963)"

This reverts commit 77a4869fca.

* Revert "Fix: add mapping for the new mysqlRepl driver (#89551)"

This reverts commit ab5a079bcc.

* Revert "fix: sql instrumentation dual registration error (#89508)"

This reverts commit d988f5c3b0.

* Revert "Experimental Feature Toggle: databaseReadReplica (#89232)"

This reverts commit 50244ed4a1.
2024-09-25 15:21:39 -08:00
Serena
c822feff9e
Home: add setup guide tab under home tab (#92947)
* feat: add setup guide in home tab

* chore: add feature toggle for setup guide

* chore: add feature toggle for sub menu

* chore: run pretier

* chore: run i18n

* chore: run generated files again

* chore: update description

* chore: update comment to trigger test flow

* chore: trigger test

* chore: fix styling
2024-09-25 18:20:04 +01:00
renovate[bot]
2c98767d17
Update dependency webpack to v5.95.0 [SECURITY] (#93751)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-25 16:19:58 +01:00
renovate[bot]
5880579be8
Update dependency sass to v1.79.3 (#93741)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-25 17:30:12 +03:00
Tobias Skarhed
1f7457c02c
New Select: Extract floating ui setup into hook (#93387)
* New Select: Extratc floating ui setup into hook

* Remove unused exports

* Rename exported floatStyles

* Set maxHeight instead of using js to find it

* Extarct into seperate file
2024-09-25 16:27:17 +02:00
renovate[bot]
5cd9ef562d
Update dependency react-loading-skeleton to v3.5.0 (#93740)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-25 16:41:18 +03:00
ismail simsek
5472478ee8
Prometheus: Fix e2e selector by using "data-test-id" instead of "id" (#93736)
* use data-test-id instead of id

* don't skip
2024-09-25 15:29:19 +02:00
Ashley Harrison
8e5459791b
SingleTopNav: Initial changes (#93694)
initial changes for single top nav
2024-09-25 14:27:30 +03:00
Josh Hunt
d2d1de39a7
GrafanaUI: Make Drawer extend to full height (#93725) 2024-09-25 12:05:20 +01:00
renovate[bot]
a0de3ef867 Update dependency @types/node to v20.16.7 2024-09-25 10:46:05 +00:00
Adela Almasan
2b94a82baa
AngularMigration: Migrate series Graph to BarGauge (#92609) 2024-09-25 00:42:59 +03:00
ismail simsek
18f8f38418
Prometheus: Fix query interval string interpolation in query cache (#93678)
fix query interval string interpolation in query cache
2024-09-24 18:03:16 +02:00
Torkel Ödegaard
ae5a7a53a9
TimePicker: Support strings in ISO formats (#93479)
* TimePicker: Support strings in ISO formats

* changed fix and added test
2024-09-24 17:00:15 +02:00
renovate[bot]
db697a3e23
Update dependency @rollup/plugin-node-resolve to v15.3.0 (#93677)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-24 15:43:03 +01:00
Kristina
002f872ce1
Correlations: Allow correlations to target URLs (#92442)
* Pass one

* Fix linter and add new betterer problem (sorry)

* fix swagger

* Add type to tests and update single correlations sql

* Fix provisioning test and other function that needs a type

* Add errors around query/external typing and add tests

* increment number of correlations tested as we added one for testing v1 type placement

* try merging back the swagger that is in main

* try again?

* Style form a little

* Update public/app/features/logs/components/logParser.ts

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* fix bad commit, simplify logic

* Demonstrating type difficulties

* Fix distributed union changes

* Additional type changes

* Update types in form

* Fix swagger

* Add comment around the assertion and explicit typing

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-09-24 09:38:17 -05:00
renovate[bot]
b04799dab9 Update dependency @types/node to v20.16.6 2024-09-24 12:58:22 +00:00
Ashley Harrison
a54308138f
Navigation: Remove bodyScrolling toggle and make it default (#93652)
* remove bodyScrolling toggle and make it default

* fix e2e tests
2024-09-24 13:23:18 +01:00
Torkel Ödegaard
f04e032cf1
FieldOverrides: Clear displayName caching after applying field overrides (#93651)
* FieldOverrides: Clear displayName caching after applying field overrides

* Remove old comment
2024-09-24 13:51:02 +02:00
renovate[bot]
5193318c56 Update dependency @types/lodash to v4.17.9 2024-09-24 11:47:46 +00:00
renovate[bot]
314f770a71
Update Yarn to v4.5.0 (#93626)
* Update Yarn to v4.5.0

* commit new version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-09-24 14:03:04 +03:00
renovate[bot]
fa25b10bf8
Update dependency @floating-ui/react to v0.26.24 (#93580)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-24 09:58:58 +01:00
Torkel Ödegaard
6c63aec586
Calendar/TimePickers: By default use the system/user start of week (#93464)
Calendar: Should automatically use user or system start of week
2024-09-24 08:19:55 +02:00
renovate[bot]
ff37d477fd Update dependency react-select to v5.8.1 2024-09-23 17:15:58 +00:00
renovate[bot]
eee7270b07 Update dependency rc-tooltip to v6.2.1 2024-09-23 19:19:24 +03:00
Adela Almasan
d630e9bcb3
Chore: Update Action interface (#93248)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-09-23 10:41:05 -05:00
renovate[bot]
026748a5ab Update dependency rc-slider to v11.1.6 2024-09-23 18:38:45 +03:00
renovate[bot]
1a13e7fd95 Update dependency @types/systemjs to v6.15.1 2024-09-23 14:11:17 +00:00
Andres Martinez Gotor
a45167a595
Remove backgroundPluginInstaller feature flag (#93540) 2024-09-23 15:49:18 +02:00
renovate[bot]
07f11e9222 Update dependency @rollup/plugin-node-resolve to v15.2.4 2024-09-23 13:37:26 +00:00
Galen Kistler
26b039bb81
Prometheus: Incremental query cache keep extra datapoint before new 'from' (#93186)
* fix: keep extra datapoint before new 'from' when evicting datapoints in incremental query cache

* remove redundant comments

* Update todo

* move prometheus specific code in a new function

* add unit test

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-09-23 14:45:31 +02:00
renovate[bot]
08b2805d07
Update dependency esbuild to v0.24.0 (#87650)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 12:27:38 +01:00
Misi
b369341868
Chore: Add feature toggle for session storage redirect handling (#93575)
Add feature toggle for session storage redirect handling
2024-09-23 12:31:23 +03:00
Ezequiel Victorero
e22540b763
PublicDashboards: Fix import email sharing api (#93480) 2024-09-20 17:00:02 +01:00
renovate[bot]
bb69afed7c
Update dependency @grafana/faro-web-sdk to v1.10.0 (#93347)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-20 11:32:47 +01:00
Ryan McKinley
f21a5987a2
Plugins: Expose datasources as apiservers feature toggle (#93250) 2024-09-19 11:28:27 +03:00
Ashley Harrison
73eff837e8
Select: Fix last option in an option group to be selectable (#93457)
don't completely overwrite innerProps
2024-09-19 09:05:23 +01:00
DaRK AnGeL
224e96effa
Chore: Add ILS (Israeli New Shekels) currency to value formatter (#93390)
add ILS to Currency
2024-09-19 08:05:28 +02:00
kay delaney
98a4d2858a
Dashboards: Fix 'days' unit pluralization (#93326) 2024-09-18 10:00:42 +01:00
Misi
41cd0f5180
Auth: Add improvedExternalSessionHandling feature toggle (#93385)
Add improvedExternalSessionHandling feature toggle
2024-09-17 13:54:39 +03:00
Juan Cabanas
c56870e511
ShareDrawer: Test coverage (#93111) 2024-09-13 11:01:21 -03:00
renovate[bot]
dc2a777edb Update dependency @types/jest to v29.5.13 2024-09-13 10:27:38 +00:00
renovate[bot]
1783b47545
Update dependency eslint-plugin-react to v7.36.1 (#93255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-13 10:46:49 +01: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
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
Ashley Harrison
dceba35a55
Portal: Fix positioning when bodyScrolling is disabled (#93277)
fix portal when bodyScrolling is disabled
2024-09-12 16:24:36 +01:00
renovate[bot]
b5dd8a5e89
Update dependency sass to v1.78.0 (#93237)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 17:25:03 +01:00
Leon Sorokin
77eefcbc4c
XYChart: Avoid tick collisions on x-axis (#93195) 2024-09-11 08:10:30 -05:00
Gilles De Mey
90ee52e8d9
Alerting: New search UI – Part 1 (#91620) 2024-09-11 14:29:26 +03:00
Leon Sorokin
e9901acfb4
TimeSeries: Increase y-axis tick density for small-height panels (#93188) 2024-09-10 15:20:24 -05:00
Oscar Kilhed
acbd50c7d6
GrafanaUI: Add select all toggle to selectbox (#92483)
* Add select all toggle
2024-09-10 20:33:17 +02:00
Joao Silva
15bf1348ab
GrafanaUI: Show focus on selected date of the date picker (#93181) 2024-09-10 16:51:53 +01: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
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
Arati R.
b12a29a1da
K8s: Implement partial folders api with k8s client (#93089)
* Add kubernetes folder feature toggle
* Add kubernetes routes for getting and creating a folder
* Add documentation for interacting with k8s folders
2024-09-10 11:22:08 +02: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
Leon Sorokin
f650a17030
Transformations: Fix inner join by field for zero-length frames (#93144) 2024-09-09 21:22:03 -05:00
renovate[bot]
baa0f073d8 Update dependency eslint-plugin-jest to v28.8.3 2024-09-09 20:08:40 +00:00
renovate[bot]
1e6735706d Update dependency @types/node to v20.16.5 2024-09-09 19:39:19 +00:00
Leon Sorokin
53e59b27cd
FieldColor: Prefer displayName for hashing (#93062)
* FieldColor: Prefer displayName for hashing
2024-09-09 17:58:22 +00:00
Aaron Godin
6ded6a8872
feat: Add feature toggle for groupAttributeSync (#93116) 2024-09-09 10:29:43 -05:00
Joao Silva
94068977f5
GrafanaUI: Improve Switch cursor focus on screen readers (#93100) 2024-09-09 16:06:05 +01: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
Kyle Brandt
b89f3f8115
Ad-Hoc Filters & Scopes: don't remap one-of to regex in frontend (#92995)
* send "one-of" and "not-one-of" directly to datasource (instead of changing them to regex)
* Added to Ad-hoc and and Scope Filters: The "values" prop ([]string) and the "one-of" and "not-one-"of" operators. "values" is used with one-of and not-one-of. 
* adds prometheus support for the above 


---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Todd Treece <todd.treece@grafana.com>
2024-09-09 16:56:43 +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
Alex Khomenko
adf1402ff8
Grafana/ui: Update Link component to react router 6 (#92976)
* Grafana/ui: Update Link component to react router 6

* Add compat package to grafana/ui
2024-09-09 13:54:43 +03:00
Will Browne
2c47d246fc
Plugins: Introduce LoadingStrategy for frontend loading logic (#92392)
* do it all

* feat(plugins): move loadingStrategy to ds pluginMeta and add to plugin settings endpoint

* support child plugins and update tests

* use relative path for nested plugins

* feat(plugins): support nested plugins in the plugin loader cache by extracting pluginId from path

* feat(grafana-data): add plugin loading strategy to plugin meta and export

* feat(plugins): pass down loadingStrategy to fe plugin loader

* refactor(plugins): make PluginLoadingStrategy an enum

* feat(plugins): add the loading strategy to the fe plugin loader cache

* feat(plugins): load fe plugin js assets as script tags based on be loadingStrategy

* add more tests

* feat(plugins): add loading strategy to plugin preloader

* feat(plugins): make loadingStrategy a maybe and provide fetch fallback

* test(alerting): update config.apps mocks to include loadingStrategy

* fix format

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2024-09-09 10:38:35 +01:00
Leon Sorokin
fc4b3a2b03
Prometheus: Retain time field's interval with Table formatted queries (#93065) 2024-09-08 13:18:58 -05:00
Russ
c71aae8c5c
Icons: update Asserts menu icon (#92888)
Chore: update Asserts menu icon
2024-09-06 10:08:30 -08:00
Lucy Chen
2218841aa6
SharePanel: Add icons to panel options Share and More (#92622)
* add icon

* update icons

* add svg

* update legend

* remove new svg

* try again

* remove again

* add legend icons

* make review changes
2024-09-06 12:25:35 -05:00
Josh Hunt
cad56df002
Make Combobox Storybook story public, with indev disclaimer (#93042) 2024-09-06 17:56:03 +03:00
Joao Silva
20f7e11987
Restore Dashboards: Revert e2e tests (#93026) 2024-09-06 11:18:49 +01:00
Ivan Ortega Alba
35ba8fbad1
AutoSizeInput: Allow to be controlled by value (#92997) 2024-09-05 20:50:40 +03:00
Claudiu Dragalina-Paraipan
d5ebaa0ef9
[authn] adding appPlatformAccessTokens featureflag (#92991)
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-09-05 19:18:44 +03:00
Ashley Harrison
6b6355e418
Chore: migrate _grid SCSS styles to emotion globals (#92986)
migrate _grid styles to emotion globals
2024-09-05 16:39:12 +01:00
Ashley Harrison
82fe497b9d
Chore: remove adhocFilterOneOf toggle (#92979)
remove adhocFilterOneOf toggle
2024-09-05 15:49:24 +03:00
renovate[bot]
de5bbd2539
Update dependency rc-cascader to v3.28.1 (#92931)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-05 10:53:59 +01:00
Ashley Harrison
d14a551ee8
Chore: Migrate _reboot SCSS styles to emotion globals (#92934)
migrate reboot styles to emotion globals
2024-09-04 16:27:07 +01:00
Joao Silva
b20017cf8c
Restore Dashboards: Add e2e tests (#92514) 2024-09-04 15:47:15 +01:00
Brendan O'Handley
4bf350cc62
Prometheus: Variable query editor, display selected label when using query type of label values (#92513)
display label, add test
2024-09-04 08:11:17 -05:00
renovate[bot]
c17d1a3a4c
Update dependency rc-slider to v11 (#92921)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 12:57:31 +01:00
renovate[bot]
58d9bc2cad
Update dependency react-calendar to v5 (#92922)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 12:55:14 +01:00
renovate[bot]
b404dabc55
Update dependency rimraf to v6 (#92923)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 12:40:52 +01:00
renovate[bot]
468c1fcb9c
Update dependency glob to v11 (#92920)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 14:03:38 +03:00
renovate[bot]
d9dc7cba50
Update dependency eslint-plugin-jsx-a11y to v6.10.0 (#92917)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 11:48:21 +01:00
renovate[bot]
9c837407bf Update dependency eslint-plugin-react to v7.35.2 2024-09-04 09:57:10 +00:00
renovate[bot]
7933cbd204 Update dependency @types/node to v20.16.4 2024-09-04 09:25:17 +00:00
Kyle Cunningham
437472811e
Table: Fix nested table overlap when table is sorted (#92716) 2024-09-03 15:27:14 -05:00
renovate[bot]
3acb43cf2e
Update dependency @types/systemjs to v6.15.0 (#92876)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 16:15:55 +01:00
renovate[bot]
cb9c7de0ff Update dependency eslint-plugin-react to v7.35.1 2024-09-03 13:57:20 +00:00
renovate[bot]
6244c2be2c Update dependency eslint-plugin-jest to v28.8.2 2024-09-03 13:33:28 +00:00
Ashley Harrison
f34f5b80b4
Chore: Migrate _widths SCSS to global emotion styles (#92863)
* migrate widths to global styles

* only calculate width once per loop
2024-09-03 16:04:21 +03:00
renovate[bot]
9d974f7560
Update dependency @swc/helpers to v0.5.13 (#92858)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 13:44:51 +01:00
Ashley Harrison
d9385d8a76 add missing await 2024-09-03 14:02:27 +03:00
Piotr Jamróz
d7d22bbbb8
TraceView: Display event names of a span (#91382)
* 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

* Show duration as a key/value pair

* Update betterer report (we do not translate panels that are planned to be externalized)

* Fix tests after changing how duration is rendered

* Handle long names

* Test handling long names

* Make parenthesis gray

* Fix a test

* Fix linting

* Fix tests

* Update label
2024-09-03 11:18:50 +02:00
renovate[bot]
1395cd89da Update dependency @types/node to v20.16.3 2024-09-02 13:05:54 +00:00
Tobias Skarhed
220215c9ca
New Select: Create custom value (#92652)
* Display custom value in option list

* Ignore create new value when there is an exact match

* Support displaying custom value

* Add i18n string

* Update failing test
2024-09-02 14:42:42 +02: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
Dzmitry Skachkou
f0d100d17a
ValueFormats: Fix formatting of 'clock' unit when duration is more than 100 hours (#92656) 2024-09-02 13:50:54 +02:00
renovate[bot]
cf541b8869
Update dependency tslib to v2.7.0 (#92744)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-02 10:00:07 +01:00
Piotr Jamróz
3b7021dabc
FieldConfig: Add missing "min/max" FieldConfigProperty option (#92596)
Add missing FieldConfigProperty standard option
2024-08-30 17:16:22 +02:00
Adela Almasan
91cbaa4afe
Table: Fix JSON formatting (#92715) 2024-08-30 17:51:51 +03:00
Sergej-Vlasov
00ae49a61a
FeatureToggle - new filters UI feature toggle (#92189)
* add newFiltersUI experimental feature toggle

* adjust Ad hoc filter varibale layout property based on feature toggle

* restore file

* bump to latest scenes
2024-08-30 15:48:13 +03:00
Ashley Harrison
a59474cf13
Chore: Migrate _forms styles to emotion globals (#92690)
migrate _forms styles to emotion globals
2024-08-30 13:04:31 +01:00
renovate[bot]
a0e237dacf Update dependency eslint-plugin-jest to v28.8.1 2024-08-30 10:05:24 +00:00
Ashley Harrison
c16cc488c9
AdHocFilters: Add support for new isOneOf multi value operator (#91837)
* handle oneOf operator in prometheus

* use new supportsMultiValueOperators

* remap oneOf to regex in prometheus datasource

* Remap one of operators for scope filters

* use plugin.json property instead of feature toggle

* optional chaining

* fix unit tests

* use getInstanceSettings

* update to latest scenes

* fix unit tests

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-08-30 11:03:44 +01:00
Erik Sundell
db0cc24f2b
Plugin extensions: Introduce new registry for added links (#92343)
* add added component registry

* fix broken test

* add tests for usePluginComponents hook

* readd expose components

* add type assertion exceptions to betterer results

* use new addedComponent registry in legacy endpoints

* remove unused code

* cleanup

* revert test code

* remove commented code

* initial commit

* refactor sync method and hook

* fix tests

* subscribe to the correct registry

* remove old registry

* cleanup types

* add use usePluginLinks hook

* add more tests

* fix import order

* fix typo

* fix and temporarly skip failing tests

* wip

* add hook tests

* add more tests

* remove old hook

* fix versioning

* add version to all extension point ids

* remove cleanup

* remove unused imports

* revert touched file

* fix test

* test: remove hook creation

* catch init error

* send error to faro

* fix broken hook

* comment out call hook initialization

* use the right import ofr isString

* remove unused import

* remove registryState type

* pr feedback

* Update public/app/features/plugins/extensions/validators.test.tsx

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

* Update public/app/features/plugins/extensions/validators.test.tsx

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

* remove no longer relevant comment

* fix broken tests

* Fixed test to verify that the memotization works properly.

* simplify hooks

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2024-08-30 10:09:01 +02:00
Ashley Harrison
d2ee4d1005
RadioButtonGroup: Ensure background colour displays properly (#92665)
add background colour to RadioButtonGroup
2024-08-29 15:16:04 +01:00
Sven Grossmann
15a4ff992b
Explore Logs: Add feature flags (#92670) 2024-08-29 15:55:59 +02:00
Victor Marin
6ddb96ada2
Add extra width to menu to accomodate checkbox (#92600)
* Add extra width to menu to accomodate checkbox

* modify value
2024-08-29 15:28:00 +03:00
Kawthar Alakri
bd974bd791
New Select: Unit tests base cases (#92485)
* init commit

* New Select test cases

* click + scroll and click test cases

* code format

* code format
2024-08-29 11:45:21 +02:00
Ashley Harrison
cec447cf7a
Drawer: Fix drawer mask positioning (#92318)
fix drawer mask positioning
2024-08-29 09:56:26 +01:00
Laura Fernández
8aaa155cb0
singleTopNav: Create feature toggle (#92610) 2024-08-29 10:48:32 +02:00
Adela Almasan
692280cd32
BarGauge: Add legend support (#92449) 2024-08-28 23:26:55 +03:00
Todd Treece
2bb2183b41
Scopes: Move title and groups to status in ScopeDashboardBinding (#92377)
---------

Co-authored-by: Kyle Brandt <kyle@grafana.com>
Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
2024-08-28 08:59:18 -04:00
renovate[bot]
909d0fac35
Update dependency @types/node to v20.16.2 (#92576)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 12:15:38 +01:00
renovate[bot]
c92f5169d1
Update dependency @prometheus-io/lezer-promql to v0.54.1 (#92556)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 10:16:31 +01:00
renovate[bot]
72be3e861e
Update dependency webpack to v5.94.0 [SECURITY] (#92545)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 09:29:33 +01:00
Adela Almasan
39fda067cf
BarGauge: Add option to hide the names (#92450) 2024-08-27 17:21:35 -05:00
renovate[bot]
2235825ef9 Update dependency ts-jest to v29.2.5 2024-08-27 16:15:49 +00:00
Tobias Skarhed
92491dd78c
New Select: Semi-dynamic option width support (#92284)
* Fix button role and input id

* Use static height and dynamic width

* Estimate dynamic width

* Extract constant

* Remove unused code

* Extract dynamic width into a hook

* Remove console.log

* Add comment to the constants

* Update packages/grafana-ui/src/components/Combobox/Combobox.tsx

Co-authored-by: Laura Fernández <laura.fernandez@grafana.com>

* Update packages/grafana-ui/src/components/Combobox/getComboboxStyles.ts

---------

Co-authored-by: Laura Fernández <laura.fernandez@grafana.com>
2024-08-27 15:51:25 +02:00
Kristian Bremberg
24afc7a5b3
TextPanel: Allow iframes (after sanitization) (#92299)
* Allow iframes in text panel

* add more attributes

* remove =true
2024-08-27 14:44:58 +01:00
renovate[bot]
e66979765d Update dependency @grafana/faro-web-sdk to v1.9.1 2024-08-27 12:18:44 +00:00
Ashley Harrison
2318e32c9f
Chore: Migrate legacy dropdown styles to emotion/angular file (#92282)
migrate legacy dropdown classes to emotion/angular file
2024-08-27 12:40:54 +01:00
Ryan McKinley
c59dddf7af
MySQL: Add parseTime=true to SQL connections (#92469) 2024-08-27 14:16:04 +03:00
renovate[bot]
a99e32947a
Update dependency @floating-ui/react to v0.26.23 (#92470)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-27 13:44:26 +03:00
Jack Westbrook
c0a719caa7
Datalinks: Fix context menu position for body scroll (#92389)
* fix(datalinks): position context menu offest to vertical window scroll

* feature toggle change

* enhance boot data mock with empty featureToggles

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-27 13:28:48 +03:00
renovate[bot]
02f1bb7b46 Update Yarn to v4.4.1 2024-08-27 13:18:56 +03:00
Erik Sundell
b648ce3acf
Plugin extensions: Introduce new registry for added components (#91877)
* add added component registry

* fix broken test

* add tests for usePluginComponents hook

* readd expose components

* add type assertion exceptions to betterer results

* use new addedComponent registry in legacy endpoints

* remove unused code

* cleanup

* revert test code

* remove commented code

* wrap in try catch

* pr feedback
2024-08-27 11:14:04 +02:00
Agnès Toulet
79abc0cf1d
Runtime: Make dashboardSceneSolo flag updatable at runtime (#92290)
Runtime: Make dashboardSceneSolo flag updatable at runtimeuntime
2024-08-26 17:12:01 +02:00
Bogdan Matei
605bc811d2
Scopes: Group suggested dashboards (#92212) 2024-08-26 16:08:27 +03:00
Kyle Brandt
84e5c3af22
Prometheus/Promlib: Remove the PrometheusDataplane feature so always enabled (#92218)
This has been default behavior since v10

---------

Co-authored-by: Brendan O'Handley <brendan.ohandley@grafana.com>
2024-08-26 08:53:38 -04:00
Erik Sundell
d8ec95e9b1
E2E: Add support for building test plugins (#91873)
* build test apps with webpack

* add extensions test app

* update e2e tests

* remove non-build test apps using amd

* use @grafana/plugin-configs rather than create-plugin config

* Update e2e/plugin-e2e/plugin-e2e-api-tests/as-admin-user/extensions/usePluginComponents.spec.ts

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

* Update package.json

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

* use run dir variable instead of hardcoded path

* add dummy licence file

* add separate step for building test plugins

* support nested plugins

* remove react-router-dom from the externals array

* remove add_mode dev

* lint starlark

* pass license path as env variable

* fix the path

* chore(e2e-plugins): clean up dependencies to match core versions

* refactor(e2e-plugins): prefer extending webpack plugins-config

* docs(e2e-plugins): add basic info to extensions test plugin readme

* update readme

* change dir name from custom plugins to test plugins

* change root readme

* update lockfile

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2024-08-23 09:00:03 +02:00
Sven Grossmann
ec857e1de9
Loki: Add dashboard and panel names as headers (#92096)
* feat(nameHeaders): add feature flag

* add safe parsing of headers

* use headers in loki datasource

* Loki: add option to pass headers to Loki

* Loki: add datasource tests for dashboard names

* cleanup

* DataSourceWithBackend: add test

* rename to `sanitizeHeader`

* Loki: add condition when to add headers

* Loki: add e2e tests

* Loki: change test name
2024-08-22 21:30:43 +02:00
Marcus Andersson
95409f53d2
Bugfix: QueryField typeahead missing background color (#92216)
Added missing styles to the typeahead menu.
2024-08-22 16:16:48 +01:00
renovate[bot]
81935a3af1
Update dependency @grafana/experimental to v1.8.0 (#92283)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 15:50:27 +01:00
renovate[bot]
7b9843bc13 Update babel monorepo to v7.25.4 2024-08-22 10:30:18 +00:00
Ryan McKinley
2136fd9a92
Storage: Remove unified storage feature flag (#92192)
remove unified storage flag
2024-08-21 19:28:30 +03:00
Ashley Harrison
e675455502
PublicDashboards: Fix public dashboards when publicDashboardsScene is enabled (#92187)
* fix public dashboards pages when publicDashboardsScene is enabled

* properly handle react-grid-layout at small screen sizes

* use unset instead of auto
2024-08-21 16:16:12 +01:00
Ryan McKinley
2e60f28044
Auth: remove id token flag (#92209) 2024-08-21 16:30:17 +03:00
Torkel Ödegaard
4bc64dd747
Page/Body: Only show scrollbar lane gutter when needed (#92186)
* Page/Body: Only show scrollbar lane gutter when needed

* Update packages/grafana-ui/src/themes/GlobalStyles/elements.ts

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-21 14:44:12 +02:00
Ashley Harrison
4d82139a33
Chore: Migrate _button SCSS styles to emotion globals (#92135)
migrate button styles to emotion globals
2024-08-21 12:46:30 +01:00
renovate[bot]
f26258984a Update dependency core-js to v3.38.1 2024-08-21 11:30:50 +00:00
renovate[bot]
9494e9b847 Update dependency @types/react-transition-group to v4.4.11 2024-08-21 10:58:24 +00:00
Ashley Harrison
292982f30b
Collapse: stop cropping focus rings (#92190)
remove overflow: hidden; from bodyContentWrapper
2024-08-21 11:01:53 +01:00
renovate[bot]
584559d3c2 Update dependency @react-awesome-query-builder/ui to v6.6.3 2024-08-21 09:33:03 +00:00
renovate[bot]
a8c6000c19
Update dependency @prometheus-io/lezer-promql to v0.53.2 (#92148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 09:49:14 +01:00
Alexa V
cd4b7ef9db
Dashboard Scene: Fix snapshots not displaying variables values (#88967)
* Use new snapshot variables from scenes

* Add snapshotVariable implementation

* Refactor: Extract variables logic from transforSaveModelToScene file

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-08-20 17:05:12 +02:00
Leon Sorokin
74ebc66520
VizTooltip: Fix positioning at bottom and right edges on mobile (#92042) 2024-08-20 08:48:37 -05:00
renovate[bot]
1525ee1a04 Update dependency @lezer/highlight to v1.2.1 2024-08-20 10:23:17 +00:00
renovate[bot]
90c5845b72 Update React Aria 2024-08-20 09:36:55 +00:00
renovate[bot]
d9812153dd
Update dependency typescript to v5.5.4 (#91678)
* Update dependency typescript to v5.5.4

* fix missing typeof

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-20 10:11:57 +01:00
Ashley Harrison
ab312914cd
Chore: cleanup util SCSS styles (#92078)
migrate SCSS util classes
2024-08-20 09:31:04 +01:00
Ihor Yeromin
5233e4b47f
Stat: Fix double-zero percent render (#91848)
fix(stat): percent zero case
2024-08-20 04:25:15 +03:00
renovate[bot]
8d197387ed
Update dependency @grafana/tsconfig to v2 (#92056)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 13:13:33 +03:00
Erik Sundell
134467fc4a
Plugin Extensions: Introduce new registry for exposed components (#91748)
* refactor app plugin internals

* add base registry and exposed components registry

* refactor usePluginComponent hook

* change type name

* fix hook

* remove comments

* fix broken tests

* add more tests

* remove link and component related changes

* use right id format

* add title prop

* remove comments

* rename registry

* make exportedComponentsConfigs required

* fix broken test

* cleanup tests

* fix prop name

* remove capability related code

* rename exported to exposed

* refactor(extensions): make registry types generic

* Update public/app/features/plugins/extensions/registry/ExportedComponentsRegistry.test.ts

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

* fix levitate error

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2024-08-19 08:43:11 +02:00
Drew Slobodnjak
d3c6e2b203
Table: Avoid rtl when using datalinks with units (#92038) 2024-08-16 15:42:20 -07:00
Brendan O'Handley
68f545210d
Prometheus: Fix label names select component when there are too many options (#92026)
* add more doc info for truncate function and how we use it

* truncate label names and allow users to search all labels on typing

* remove unused import

* handle labels select in variable query in addition with truncated list
2024-08-16 13:55:03 -05:00
Tobias Skarhed
b0031c0781
New Select: Set highlighted index to selected item on open (#91951)
* Set highlighted index on open

* Remove console log

* Use defaultHighLightedIndex
2024-08-16 14:47:39 +02:00
Brendan O'Handley
f01263803a
Prometheus: Add a limit for the series resource api in metrics browser (#91555)
* add a limit for the series resource api in metrics browser

* decouple serieslimit from options and only use in metrics browser

* add series limit input to metrics browser

* add warning

* add and fix tests

* add new param to jsdoc

* do not use the limit in other calls outside metrics browser

* update test

* trim limit

* fix tests, remove limit from non labels calls
2024-08-15 23:39:42 +03:00
Drew Slobodnjak
de0e6d0fce
PanelInspect: Handle field type frame for csv export (#91983)
PanelInspect: Handle field type frame
2024-08-15 13:15:49 -07:00
Kyle Cunningham
f14fd5828a
Table panel: Improve cell inspector (#91862)
* Improve cell inspector

* Update types

* Prettier

* Type checking fixes
2024-08-15 22:04:36 +07:00
grafana-delivery-bot[bot]
675a58b680
Release: Bump version to 11.3.0-pre (#91863)
* bump version 11.3.0-pre

* fix linters with: yarn run prettier:write

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Diego Augusto Molina <diegoaugustomolina@gmail.com>
2024-08-14 18:34:14 -03:00
Adela Almasan
f6b55ced6f
Canvas: Remove null data links (#91859) 2024-08-14 23:58:39 +03:00
Kyle Cunningham
40144eb3c8
Table: Fix edge case where text wrapping crashes on undefined header widths (#91850)
Make sure we don't read from header groups if it's undefined
2024-08-15 01:49:28 +07:00
Andres Martinez Gotor
44290ddf32
Adapt plugin page to preinstalled plugins (#91874) 2024-08-14 17:04:59 +02:00
Torkel Ödegaard
db5d8f03b7
Drawer: Fixes incorrect mask background and flickering (#91890) 2024-08-14 16:04:35 +02:00
Matias Chomicki
699ff406c3
Logs panel: Enable displayedFields in dashboards and apps (#91810)
* LogsPanelCfg: add displayedFields

* LogsPanel: expose displayedFields

* Chore: add docs

* LogsPanel: add callbacks to external API

* LogsPanel: expose field callbacks and add default implementation

* chore: add unit test

* chore: unfocus test

* LogsPanel: add docs for new props

* Enable by default
2024-08-13 18:58:15 +03:00
Leonor Oliveira
d52d04b6d8
Revert "Use dw dynamic config" (#91846)
Revert "Use dw dynamic config (#91222)"

This reverts commit 0258842f87.
2024-08-13 17:24:26 +02:00
Brendan O'Handley
e0b8a00e78
Prometheus: Histogram table format should keep le values as strings (#91662)
* remove le value parsing as numbers

* add tests
2024-08-13 10:06:53 -05:00
Yulia Shanyrova
8044cb50f1
Plugins: Plugin details right panel is added. All the details were moved from thee top to the right panel (#90325)
* PluginDetailsRight panel is added. All the details were moved from the top to the right panel

* Add feature toggle pluginsDetailsRightPanel,Fix build, fix review comments

* Fix the typo

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>

* hasAccessToExplore

* changes after review, add translations

* fix betterer

* fix betterer

* fix css error

* fix betterer

* fix translation labels, fix position of the right panel

* fix the build

* add condition to show updatedAt for plugin details

* add test to check 2 new fields at plugin details right panel;

* change the gap and remove report abuse button from core plugins

* add more tests

---------

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>
2024-08-13 11:55:30 +02:00
Leonor Oliveira
0258842f87
Use dw dynamic config (#91222)
* Remove kubernetesPlaylists feature_toggle

* Remove unified_storage_mode

* Remove double import

* Regenerate feature-toggles

* Read from config instead from feature_toggle

* cover scenario for when unified storage is not defined
2024-08-13 10:03:28 +02:00
Andres Martinez Gotor
d342e76f63
Chore: Add skeleton for background plugin installer (#91743) 2024-08-12 16:39:31 +02:00
Domas
6dce2ecbde
Sparkline: Support spanNulls graph config prop (#91797)
support spanNulls config prop for sparkline
2024-08-12 15:36:52 +03:00
Vijay Samuel
c9ddc688a2
Prometheus: Add support to make parallel queries (#90316)
* Add support for prometheus datasource to make parallel queries

* Incorporate review comments

* Update pkg/promlib/querydata/request.go

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>

* Fix lint

* Add parallel queries behind feature flag

* Fixing lint issue

* Update go.mod

* Update pkg/promlib/querydata/request.go

* Update pkg/promlib/querydata/request.go

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
Co-authored-by: Charandas <542168+charandas@users.noreply.github.com>
2024-08-12 14:31:39 +02:00
Ashley Harrison
369cd6f81e
Chore: Migrate dashboard_grid styles to emotion (#91673)
migrate dashboard grid styles to emotion
2024-08-12 13:22:14 +01:00
Ashley Harrison
dface46474
Chore: Migrate gf-form classes to emotion globals (#91632)
* migrate gf-form classes to emotion globals

* should be sm due to the different way the breakpoints work
2024-08-12 13:16:16 +01: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
ab3e8652aa
Adhoc Filters: add new feature toggle for 'one of' operator (#91688)
add new feature toggle for 'one of'
2024-08-12 09:56:42 +01:00
ismail simsek
b8ebc5d463
Chore: Update lezer package of prometheus frontend (#91252)
* update lezer package

* Use UnquotedLabelMatcher instead of LabelMatcher

* Use UnquotedLabelMatcher instead of LabelMatcher in parsing.ts
2024-08-11 23:48:04 +02:00
Jmdane
8bb548e17b
Transformations: Add 'transpose' transform (#88963)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-08-10 02:57:26 +03:00
Todd Treece
122e291134
Chore: Add dataplaneAggregator feature toggle (#91715) 2024-08-09 04:41:07 -04:00
Kevin Putera
01fc31069f
StateTimeline: Add pagination support (#89586)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-08-08 21:44:17 -05:00
Adela Almasan
9001b2e0ee
Datalinks: UX update (#91657) 2024-08-08 09:17:09 -05:00
renovate[bot]
ebc7355284
Update dependency eslint-plugin-jest to v28.8.0 (#91668)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-08 10:33:43 +01:00
renovate[bot]
1150ab5377
Update dependency ts-jest to v29.2.4 (#91644)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-08 11:25:45 +03:00
Borja Garrido
a083ec9ff5
Transformations: Add variable support to select groupingToMatrix (#88551) 2024-08-08 05:59:03 +03:00
renovate[bot]
9cfcc16d1a
Update dependency eslint-plugin-jest to v28.7.0 (#91637)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 16:48:32 +01:00
renovate[bot]
d5848384f8
Update dependency core-js to v3.38.0 (#91633)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 16:11:22 +01:00
renovate[bot]
f0d0fa901a
Update dependency @floating-ui/react to v0.26.22 (#91622)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 14:05:58 +01:00
renovate[bot]
7ccf79aa62 Update dependency marked-mangle to v1.1.9 2024-08-07 12:37:07 +00:00
renovate[bot]
a33d122485
Update Yarn to v4.4.0 (#91595)
* Update Yarn to v4.4.0

* add new yarn version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-07 12:48:56 +02:00
Ashley Harrison
e8d5d5fbff
Storybook: Fix Input story (#91564)
fix type + prefix/suffix
2024-08-07 11:05:20 +01:00
Adela Almasan
e91f16fc46
Datalinks: UX improvements (#91352) 2024-08-06 19:10:37 +03:00
renovate[bot]
0dbfeb0c6e
Update dependency @floating-ui/react to v0.26.21 (#91572)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-06 15:28:05 +03:00
Ashley Harrison
2e3f48a49d
Navigation: Fix browse dashboards/scenes dashboards when bodyScrolling is enabled (#91479)
set explicit height (not min-height) so everything works in safari
2024-08-06 09:51:31 +01:00
Ihor Yeromin
da291998cf
Revert "Calcs: Update diff percent to be a percent" (#91563)
Revert "Calcs: Update diff percent to be a percent (#90533)"

This reverts commit 5e21898294.
2024-08-06 11:03:01 +03:00
renovate[bot]
4de68e3774
Update dependency eslint-plugin-jsdoc to v48.11.0 (#91473)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-02 12:44:01 +02:00
renovate[bot]
670132ead8 Update dependency @types/node to v20.14.14 2024-08-02 09:56:04 +00:00
Josh Hunt
e55b438f14
E2C: Reduce UI poll interval and make configurable (#91386)
* E2C: Reduce UI poll interval and make configurable

* fix default
2024-08-02 10:46:41 +01:00
Ashley Harrison
ce8f5b5e1a
Navigation: Fix <Portal> when bodyScrolling is enabled (#91335)
fix portal when bodyScrolling is enabled
2024-08-02 10:29:51 +01:00
renovate[bot]
85e2ea2488
Update dependency @grafana/faro-web-sdk to v1.9.0 (#91403)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 18:07:34 +03:00
Andrej Ocenas
04d8f0f063
Runtime: Add provider and access hook for location service (#90759) 2024-08-01 15:59:20 +02:00
Brendan O'Handley
e39a131110
Prometheus: Add group function to aggregations (#91363)
add group function to aggregations
2024-08-01 08:58:12 -05:00
renovate[bot]
d8245966a4
Update dependency rc-cascader to v3.27.0 (#91396)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 16:25:47 +03:00
Alexander Akhmetov
a32854549c
Alerting: Support median in reduce expressions (#91119)
* Alerting: support median in reduce expressions
2024-08-01 15:04:17 +02:00
Ashley Harrison
66bfb31d8e
Tooltip: Handle case where document.body is the scrolling element (#91385)
* handle case where body is the scrolling element

* use instanceof Node instead
2024-08-01 13:34:23 +01:00
renovate[bot]
796f2994f9
Update dependency eslint-plugin-jsx-a11y to v6.9.0 (#91374)
* Update dependency eslint-plugin-jsx-a11y to v6.9.0

* ignore new violation and add comment to fix

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-01 13:34:02 +03:00
renovate[bot]
596c08e8f4
Update dependency eslint-plugin-react to v7.35.0 (#91378)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 11:11:09 +01:00
renovate[bot]
6cda2f67de
Update dependency eslint-plugin-jsdoc to v48.10.2 (#91370)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 11:46:59 +03:00
renovate[bot]
0590a42895
Update dependency eslint-plugin-jest to v28.6.0 (#91343)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 09:28:51 +01:00
Drew Slobodnjak
e6531d0ecd
Table: Fix negative numbers during rtl styling (#91347)
* Table: fix negative numbers during rtl styling

* revert field config unit check as it is no longer needed with fix implemented in this PR

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-07-31 15:28:24 -07:00
renovate[bot]
7570ea8c4f
Update babel monorepo (#91079)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 16:32:58 +01:00
Victor Marin
24d2fad921
Fix long datalinks to fit in panel options editor (#91203)
fix long datalinks to fit in panel options editor
2024-07-31 17:26:50 +03:00
Tobias Skarhed
e8c30c86f0
Frontend: Support tracing with Faro (#91237)
Move code from previous PR
2024-07-31 15:13:05 +02:00