Commit Graph

21202 Commits

Author SHA1 Message Date
Kyle Cunningham
756cd3c28b Transformations: Add Group to Nested Tables Transformation (#79952)
* Stub group to subframe transformation

* Get proper field grouping

* Mostly working but fields not displaying 😭

* Fix display processing in nested tables

* Modularize and start merging groupBy and groupToSubrame

* Get this working

* Prettier

* Typing things

* More types

* Add option for showing subframe table headers

* Prettier

* Get tests going

* Update tests

* Fix naming and add icons

* Betterer fix

* Prettier

* Fix CSS object syntax

* Prettier

* Stub alert for calcs with grouping, start renaming

* Add logic to show warning message for calculations

* Add calc warning

* Renaming and feature flag

* Rename images

* Prettier

* Fix tests

* Update feature toggle

* Fix error showing extra blank row

* minor code cleanup

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-02-07 21:28:26 +07:00
kay delaney
114e9e90f3 Scenes/PanelEditor: Fix panel options search crash (#82003)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-07 14:09:21 +00:00
Haris Rozajac
00aa876e46 Dashboard Scene: All panel menu items available (#81678)
* WIP: removing panel functionality

* wip

* Deleting works with old model and with unified alerting

* Add shortcut for removing panel

* Add duplicate panel functionality; improve remove panel logic

* Copy and new alert rule

* Hide legend

* WIP: Help wizard

* Fix PanelMenuBehavior tests

* Got help wizard to work in scenes

* Fix HelpWizard and SupportSnapshotService tests

* Use object for writing styles

* betterer

* Fix create lib panel

* PanelRepeaterItem should be duplicated

* Share randomizer from dashboard-scenes

* share randomizer

* Fix import

* Update error message

* Fix test

* When duplicating PanelRepeaterGridItem's child use  PanelRepeaterGridItem.state.source

* Don't use getResultsStream

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-07 06:32:08 -07:00
Oscar Kilhed
1f2f85004d Scenes: Add alerts from panel edit (#81588)
* Display alerts in scenes dashboard

* sort of working adding alerts

* move alert button to own component

* First fixes

* Generate link/url on click

* some cleanup

* making sure all links from scene go back to scene dashboard/panel; add rule button when there are rules; styling

* remove unused import

* add &scenes to url for alert instance annotations

* Add tests from old alert tab

* Revert addition of &scenes to dashboard urls

* Refactor to simplify NewAlertRuleButton interface

* update test

* Use the raw range to calculate the relative range

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-07 12:59:18 +01:00
Ashley Harrison
af8ea896d0 GroupBy: add new groupby variable type and optional groupByKeys (#81717)
* add new groupby type

* rename to groupByKeys + introduce GroupByVariableModel

* fix unit test

* update scenes package

* update interface

* update fixture

* update unit test

* bump to scenes 2.6.2

* remove baseFilters for now
2024-02-07 11:14:04 +00:00
Joey
ff21f941df Parca: Fix flaky test (#81968)
Fix flaky test
2024-02-07 10:21:53 +00:00
Sonia Aguilar
f59e76d54b Alerting: Use mute_time_intervals as field name in dto ,for simplified routing (#82045)
Use mute_time_intervals as field name in dto ,for simplified routing
2024-02-07 09:54:31 +01:00
Dominik Prokop
a385ae4fa5 DashboardScene: Do not show data pane for panels with skipDataQuery (#81934)
* Bump scenes

* Don't show data pane for panels without data support

* Add tests

* Review
2024-02-07 00:51:25 -08:00
Ezequiel Victorero
83ea51f241 Scenes: Add snapshots view support (#81522) 2024-02-06 19:29:57 -03:00
Kevin Yu
6f8852095e CloudWatch: Remove core imports from CloudWatchRequest (#81422)
* CloudWatch: Remove core imports from CloudWatchRequest and use appEvents for notifications

* add error message to variable query editor multi filters

* fix tests

* fix lint

* fix lint

* add test for non multi-variable

* pr comments
2024-02-06 22:22:41 +02:00
Adela Almasan
315eb5acc3 VizTooltips: Remove default width/height values (#81832) 2024-02-06 12:00:19 -08:00
Kevin Yu
6373557c78 CloudWatch: remove core imports from CloudWatchMetricsQueryRunner (#80926)
* CloudWatch: remove core imports from CloudWatchMetricsQueryRunner

* use getAppEvents to publish error

* use default wait time

* put test back in original position

* fix throttling error message link
2024-02-06 21:24:14 +02:00
Kevin Yu
aafff73899 CloudWatch: Remove core imports from LegacyLogGroupSelector (#80843) 2024-02-06 20:58:49 +02:00
Kevin Yu
0d3cf9a08b CloudWatch: Remove core imports from ConfigEditor (#80837)
* CloudWatch: Remove core imports from ConfigEditor

* test
2024-02-06 10:44:42 -08:00
renovate[bot]
0b72ee2b77 Update dependency semver to v7.6.0 (#81989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 19:58:42 +02:00
paulJonesCalian
3942d67f89 chore: Fix typo in GraphTresholdsStyleMode enum (#81960) 2024-02-06 08:20:42 -08:00
Esteban Beltran
ec5623f552 Sandbox: Fix cloneDeep not working inside plugins (#81950) 2024-02-06 16:47:29 +01:00
Ezequiel Victorero
eab7990349 ShareModal: Remove shareView param when creating a sharing URL (#81976) 2024-02-06 12:21:15 -03:00
Ashley Harrison
28b336ac80 DockedMegaMenu: Clean up toggle and old code (#81878)
* remove toggle

* remove code not behind toggle

* remove old MegaMenu

* rename DockedMegaMenu -> MegaMenu and clean up go code

* fix backend test

* run yarn i18n:extract

* fix some unit tests

* fix remaining unit tests

* fix remaining e2e/unit tests
2024-02-06 13:43:11 +00:00
Joey
390461f9e1 Tempo: Move query ref to TraceQLEditor (#81686)
Move ref to TraceQLEditor
2024-02-06 13:30:59 +00:00
Darren Janeczek
16df04e260 datatrails: improve width responsiveness for breakdown label selector (#81838)
* fix: make datatrails breakdown label selector responsive
2024-02-06 08:08:57 -05:00
Ashley Harrison
e2c2704296 Browse Dashboards: Imported dashboards now display immediately in the dashboard list (#81819)
* create importDashboard method in rtk query

* fix unit tests

* Revert "fix unit tests"

This reverts commit 72cd81c803.

* fix unit test
2024-02-06 10:46:24 +00:00
Ashley Harrison
8c38ebfeae Command Palette: Add empty state (#81903)
* add an empty state for the command palette

* cleaner logic
2024-02-06 10:37:56 +00:00
renovate[bot]
1771010450 Update dependency @types/react to v18.2.55 2024-02-06 10:06:27 +00:00
Sergej-Vlasov
3605d85c4c Dashboards: Remove advancedDataSourcePicker feature toggle (#81790)
* remove advancedDataSourcePicker feature toggle from DataSourcePickerWithPrompt

* remove advancedDataSourcePicker toggle from DataSourcePicker and adjust tests that relied on old picker

* adjust failing tests in QueryVariableEditorForm

* move DataSourceDropdown to DataSourcePicker file

* covert style declaration syntax to object style in DataSourcePicker

* remove advancedDataSourcePicker  feature flag from registry

* remove .only from test

* adjust QueryVariableEditor test to avoid console.error
2024-02-06 09:20:07 +00:00
Victor Marin
613da422ca Scenes: Migrate permissions settings page (#81781)
* Migrate permissions settings page

* fix
2024-02-06 10:32:55 +02:00
William Wernert
2ab7d3c725 Alerting: Receivers API (read only endpoints) (#81751)
* Add single receiver method

* Add receiver permissions

* Add single/multi GET endpoints for receivers

* Remove stable tag from time intervals

See end of PR description here: https://github.com/grafana/grafana/pull/81672
2024-02-05 20:12:15 +02:00
Jev Forsberg
49b49e28af Baldm0mma/xy tooltip tests (#81746)
* baldm0mma/xyTooltipTests/ add first tests

* passing test!!!

* baldm0mma/xyTooltipTests/ add tests

* baldm0mma/xyTooltipTests/ revert destructure move

* baldm0mma/xyTooltipTests/ clean up test

* baldm0mma/xyTooltipTests/ update test names

* baldm0mma/xyTooltipTests/ ignore ts issue

* baldm0mma/xyTooltipTests/ update any

* baldm0mma/xyTooltipTests/ add follwing types

* baldm0mma/xyTooltipTests/ remove "field"

* baldm0mma/xyTooltipTests/ remove debug
2024-02-05 10:10:53 -07:00
Leon Sorokin
d5ac9340e5 Histogram: Add approx bucket count option (#80990) 2024-02-05 11:09:36 -06:00
Torkel Ödegaard
1fe32ce36e FieldOptions: Revert scalable unit option as we already support this via custom prefix/suffixes (#81893)
* StandardFieldOptions: Revert scalable unit option

* forgot to save merge fixes
2024-02-05 16:42:22 +01:00
Matias Chomicki
c87e4eb724 Log rows: add re-renders test cases (#81566)
* Log rows: add re-renders test cases

* Logs panel: add re-render test cases

* Logs panel: update setup and properly trigger rerenders
2024-02-05 17:20:50 +02:00
Torkel Ödegaard
61c7fcc270 DashboardScene: Action toolbar progress (#81664)
* DashboardScene: Action toolbar progress

* Add discard confirmation modal

* minor fix

* Update

* tweaked

* Updating

* Progress

* Update

* Update

* Added some unit tests

* fix test

* Change name to Exit edit

* Tweaks

* fix test

* Minor margin fix

* Move share to left of edit
2024-02-05 16:08:12 +01:00
Darren Janeczek
96772e1a32 datatrails: improve handling of error states and disable states (#81669)
* fix: Cascader: allow disabled state

* fix: datatrails metrics selection scene stability
  - clear panels and filter data when datasource changes
  - detect metric names loading / error state and disable components accordingly
  - put all scene variable dependencies together
  - reset metric names without clearing panels when time range changes
2024-02-05 09:45:47 -05:00
Torkel Ödegaard
d3f7231a27 DashboardScene: Reload when someone else saves changes (#81855)
* DashboardScene: Reload when someone else saves changes

* Update public/app/features/dashboard-scene/pages/DashboardScenePage.tsx

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

* Fixes

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-05 15:25:12 +01:00
Sonia Aguilar
8f65e36b06 Alerting: Show warning when cp does not exist and invalidate the form (#81621)
* Show warning when cp does not exist and invalidate the form

* Set error in contact selectedContactPoint form field manually

* use RHF validate and trigger

* Fix defaultvalue not being set in contact point and update the error message text

* Simplify refetchReceivers prop definition in ContactPointSelectorProps

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-02-05 15:14:08 +01:00
renovate[bot]
d63590112f Update dependency @testing-library/jest-dom to v6.4.2 2024-02-05 14:07:30 +00:00
renovate[bot]
d17a77f4a2 Update dependency @types/react to v18.2.53 (#81879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 12:36:43 +00:00
Torkel Ödegaard
a5d890984b Dashbboard: Fixes time picker schema default issues (#81847)
* Dashbboard: Fixes time picker schema default issues

* Fix tests

* fix imports
2024-02-05 12:32:59 +01:00
Torkel Ödegaard
071b301e39 Dashboard: Dashboard schema fixes and scene to save model fixes (#81867) 2024-02-05 12:27:44 +01:00
Joao Silva
ded0554bac TextLink: Do not strip base from external urls (#81799) 2024-02-05 10:48:08 +00:00
Torkel Ödegaard
6e3048c6fa DashboardScene: move overlay out from each edit view (#81852) 2024-02-05 11:17:33 +01:00
Ashley Harrison
dcf58555e8 Chore: Some test type fixes (#81812)
some test type fixes
2024-02-05 09:47:30 +00:00
Hugo Kiyodi Oshiro
ed62aefeb0 Plugins: Never disable add new data source for core plugins (#81774) 2024-02-05 09:32:58 +01:00
Tania
14a36b4040 Folders: Forbid performing operations on folders via dashboards HTTP API (#81264)
* Forbid creating folders via dashboard api

* Update delete endpoint

* Update docs
2024-02-04 01:16:19 +01:00
Darren Janeczek
bd0fd21852 fix: datatrails verify different time range before creating new history node (#81839)
fix: datatrails verify different time range
2024-02-03 10:20:04 -05:00
renovate[bot]
d65df0191b Update dependency react-hook-form to v7.50.0 (#81796)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-02 19:30:27 +02:00
fabienne-m
9b4b0eed99 Add translations for new navigation items pdc and collector (#81351)
* Add translations for new navigation items pdc and collector

* run yarn i18n:extract

* run prettier
2024-02-02 16:46:50 +00:00
Ryan McKinley
ed925c81d4 Chore: deprecate/remove folderId from more typescript (#81194) 2024-02-02 18:42:43 +02:00
Fabrizio
4f1f5636bb Tempo: Support backtick strings (#81802) 2024-02-02 16:48:30 +01:00
Oscar Kilhed
bdb592d9ec Scenes: Refactor panel editor tab counts (#81777)
* refactor editor tab counts

* Capitalize tab component property since it's a component
2024-02-02 16:04:23 +01:00