Commit Graph

6894 Commits

Author SHA1 Message Date
Tom Ratcliffe
a5c75c5ffb Remove explicit imports of whatwg-fetch from individual test files 2024-04-18 12:23:38 +01:00
Andres Martinez Gotor
0f4a47b180
Plugin load errors: Add more well-known errors (#85960) 2024-04-18 13:04:22 +02:00
Ashley Harrison
07044309f1
EmptyState: Add completed variant (#86497)
* add 'completed' variant

* add central text alignment
2024-04-18 11:22:28 +01:00
Laura Fernández
bc07eedaa9
Grafana UI: Replace VerticalGroup with Stack on alerts documentation in Storybook (#86400) 2024-04-18 12:16:57 +02:00
Laura Fernández
6b21d12ce0
Grafana UI: FilterPopup- Replace VerticalGroup and HorizontalGroup with Stack (#86398) 2024-04-18 12:16:38 +02:00
Torkel Ödegaard
3870ecd2e0
RefreshPicker: Change running state to be less distracting (#86405)
RefreshPicker: Change running state to not change button variant to destructive
2024-04-18 05:46:43 +02:00
Nick Richmond
00256d3fdd
Prometheus: Cancellable label values requests (#86403)
* feat: cancellable label values requests

* refactor: prefer more explicit `requestId`

* refactor: request options to avoid tedious test changes

* refactor: avoid `any`
2024-04-17 15:03:31 -04:00
Brendan O'Handley
55b2a4b0c0
Prometheus: Limit Prometheus run query event tracking to queries in Explore (#86054)
only track run query events in explore
2024-04-17 20:40:27 +02:00
Darren Janeczek
53d2714a18
Tooltips: Ensure new viz tooltips are visible within modals (#86258)
fix: ensure new viz tooltips are visible within modals
2024-04-17 13:54:10 -04:00
Drew Slobodnjak
ed8eacbc7e
Canvas: Fix division by zero (#85443)
* Canvas: Fix division by zero

* Fix last add vertex control

* Apply fix to existing vertices

* Apply deltas to temporary paths

* Persist original source and target coorindates

* Add follow up TODO

* Update connection svg to handle originals

* Get rid of minimum constraints for deltas

* Apply persist coordinate system to vertex handlers

* Consolidate and rename selected value

* Update connection arcs to use new coordinates

* fix editor crashing with scenes

---------

Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-04-17 10:18:17 -07:00
ismail simsek
e528c79689
Chore: Don't apply adhoc filters when promQLScope is enabled (#86454)
* check promQLScope

* add tests
2024-04-17 18:54:28 +02:00
Joao Silva
1997faf617
Select: Increase size of virtualized list options (#86444) 2024-04-17 17:01:21 +01:00
Tobias Skarhed
1c2065af60
PanelChrome: Improve accessibility landmark markup (#85863)
* Add section and use Text component to get h2 for panel

* Remove heading when collapsible

* Make button text truncate

* Update test

* Remove labelledby as it is not needed anymore

* Use testid selectors in test

* Remove async
2024-04-17 16:44:07 +02:00
Matias Chomicki
ec43edd8a1
Loki/Prometheus Query Editor: Disabled cmd/ctrl+f keybinding within the editor (#86418)
* Prom: disable cmd f within the editor

* Loki: disable cmd f within the editor

* Update public/app/plugins/datasource/loki/components/monaco-query-field/MonacoQueryField.tsx

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* Monaco: upgrade to 0.34.1

* Loki/Prometheus: allow native search to be displayed

* Formatting

* Monaco: upgrade to 0.34.1

https://github.com/microsoft/monaco-editor/issues/102#issuecomment-1282897640

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-04-17 16:38:43 +02:00
Leon Sorokin
9682022b1d
Transforms: Fix 'Filter data by values' removing rows in unrelated frames (#86087) 2024-04-17 09:07:23 -05:00
Ashley Harrison
60abf01526
remove stray console.log (#86440) 2024-04-17 15:43:38 +02:00
Ashley Harrison
f99d5a1c1a
EmptyState: Add call-to-action variant (#85017)
* add default variant

* enhance story

* rename to "initial" + update docs

* default to showing a CTA

* use switch

* translations

* update and use LinkButton

* update default message

* rename "initial" to "nothing-here"

* update variant name to `call-to-action`

* i18n

* add CTA svg

* extract into its own component
2024-04-17 14:23:21 +01:00
Jev Forsberg
f9af4675ad
Reducers: Update percentile logic - move percentiles to after standard reducers (#86004)
* baldm0mma/pth_fix2/ move percentiles to after standard reducers

* baldm0mma/pth_fix2/ update ordinal suffix

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-04-17 07:01:13 -06:00
TechVest
1ffe858e06
chore: remove repetitive words (#86412)
Signed-off-by: TechVest <techdashen@qq.com>
2024-04-17 13:08:00 +01:00
Laura Fernández
9b27d5a0c1
Chore: DataSourcePicker- Replace HorizontalGroup with Stack (#86389) 2024-04-17 11:50:58 +02:00
Nick Richmond
d3fee607e2
Expressions: sort numeric metrics behind feature toggle (#85911)
* feat: sort numeric metrics behind feature toggle

* chore: upgrade `dataplane/sdata` to latest tag

* chore: `go work sync`
2024-04-16 10:52:47 -04:00
Kyle Brandt
a12669951b
Prometheus: Add BE support for Adhoc Filters (#85969)
---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-04-16 16:56:50 +03:00
Laura Fernández
f1de8940dc
Grafana UI: StackingEditor and addHideFrom - Replace HorizontalGroup with Stack (#86192) 2024-04-16 10:46:01 +02:00
Brendan O'Handley
f85470d652
Prometheus: Use the frontend package in Prometheus and remove feature toggle (#86080)
* add history links for monaco completion provider folder

* add history links for monaco query field folder

* add history links for components folder

* add history links for configuration folder

* add history links for dashboard json folder

* add history links for gcopypaste folder

* add history link for variableMigration

* add history link for querybuilder/components/metrics-modal folder

* add history link for querybuilder/components/promqail folder

* add history links for querybuilder/components folder

* add history links for querybuilder/hooks folder

* add history links for querybuilder/shared folder

* add history links for querybuilder folder

* add history links for querycache folder

* add history links for src folder

* use frontend package and custom auth in module.ts

* remove files and fix import issues

* remove usePrometheusFrontendPackage

* remove extra files

* update betterer

* remove extra files after rebase

* fix betterer for rebase

* fix e2e flakiness
2024-04-15 16:45:23 -05:00
Brendan O'Handley
7c156274cd
Prometheus: Add native histogram functions (#86002)
* add native histogram functions to code editor

* add native histogram function types for query builder

* add functions to query builder

* add test to show parsing breaks from code to builder

* add histogram_avg to code editor

* add histogram_avg to builder and make parity between package and core

* add functions to hard coded promql file for highlighting

* remove native histogram test so that it can be added in #85942

* remove functions from core prometheus js to prevent merge conflict in #86080

* use xit for test instead of removing it
2024-04-15 14:26:51 -05:00
ismail simsek
cc87281d71
Prometheus: Respect dashboard queries when querying ad hoc filter labels (#85674)
* use queries

* extract metric name from query

* unit tests
2024-04-15 19:05:19 +02:00
Laura Fernández
82f910c0c5
Chore: Use handleReducedMotion to smooth the animation in LoadingBar (#85808) 2024-04-15 17:27:08 +02:00
renovate[bot]
453a75b767
Update dependency @swc/helpers to v0.5.10 (#86146)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 15:30:26 +01:00
renovate[bot]
2868264360
Update dependency @types/react-calendar to v4 (#86132)
* Update dependency @types/react-calendar to v4

* remove @types/react-calendar since it's no longer used

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-15 15:44:12 +02:00
renovate[bot]
b07f69d1a4
Update dependency @types/marked to v6 (#86123)
* Update dependency @types/marked to v6

* remove @types/marked since it's no longer needed

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-15 15:02:22 +02:00
renovate[bot]
6541be39d1 Update dependency @types/react to v18.2.78 2024-04-15 10:45:52 +00:00
Bogdan Matei
d379e319d6
Implement API server client in Scopes (#85266) 2024-04-15 13:43:42 +03:00
renovate[bot]
fc6cad797d Update dependency @testing-library/react to v15.0.2 2024-04-15 09:42:14 +00:00
Giuseppe Guerra
eec9d3dbc4
Plugins: Removed feature toggle pluginsDynamicAngularDetectionPatterns (#85956)
* Plugins: Removed feature toggle pluginsDynamicAngularDetectionPatterns

* re-generate feature toggles
2024-04-15 10:37:28 +02:00
Ashley Harrison
5e74b6962b
Chore: Add lint rule for no-unreduced-motion (#85862)
* add lint rule for no-unreduced-motion

* update to satisfy types
2024-04-15 09:18:56 +01:00
renovate[bot]
00daca7f43
Update dependency sass-loader to v14.2.0 (#86066)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 09:18:29 +01:00
Domas
54e1756b49
ButtonSelect: Respect isDisabled option property (#85954)
make buttonselect respect isDisabled
2024-04-15 10:13:39 +03:00
Torkel Ödegaard
31879f1f5a
useForceUpdate: Return stable function (#86094) 2024-04-15 09:13:16 +02:00
ismail simsek
23cd2d3e6f
Chore: Add jest config to grafana-prometheus (#86078)
add jest config
2024-04-12 21:17:53 +02:00
Ieva
56f4664875
RBAC: add a feature toggle for action sets (#86064)
* add a feature toggle for action sets

* update feature toggle name
2024-04-12 17:19:25 +01:00
Laura Fernández
f3b814a024
Grafana UI: ToolbarButton.story.tsx - Replace HorizotalGroup and VerticalGroup with Stack (#86067) 2024-04-12 18:08:43 +02:00
renovate[bot]
6417e92ebe
Update dependency sass to v1.75.0 (#86051)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-12 16:17:13 +01:00
renovate[bot]
c1b8ee8453 Update dependency typescript to v5.4.5 2024-04-12 15:06:30 +02:00
renovate[bot]
a5cd88c67e
Update dependency typescript to v5.4.3 (#84470)
* Update dependency typescript to v5.4.3

* refactor: solve TS errors

* refactor: update yarn.lock

* refactor: return type

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Laura Benz <laura.benz@grafana.com>
2024-04-12 14:46:47 +02:00
Ashley Harrison
b3401c802c
EmptyState: make "message" a required prop (#86029)
* make "message" a required prop on EmptyState

* run i18n:extract
2024-04-12 13:13:28 +01:00
renovate[bot]
c2a81f3020 Update react monorepo 2024-04-12 11:58:02 +00:00
Andre Pereira
1a62d94c55
Tempo: Return raw result from traceql query (#86032)
Return raw result from traceql query
2024-04-12 12:26:27 +01:00
renovate[bot]
44a612a96b Update dependency @types/eslint to v8.56.9 2024-04-12 11:11:55 +00:00
renovate[bot]
63d63ea9fb Update dependency @testing-library/react to v15.0.1 2024-04-12 10:27:38 +00:00
renovate[bot]
c837d95677
Update dependency @swc/helpers to v0.5.9 (#86024)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-12 10:34:53 +01:00