Commit Graph

22986 Commits

Author SHA1 Message Date
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
Gilles De Mey
6f63def283
Alerting: Fix long Alertmanager names overflowing the window (#92023)
fix long names overflowing the window
2024-08-20 17:02:35 +02:00
Sergej-Vlasov
5bfce7f590
DashboardGridItem - increase timeout in flaky panel repeat test (#92133)
increase timeout in flaky panel repeat
2024-08-20 17:19:28 +03:00
Lucy Chen
1056cc6a0d
Share Panel: Library panels feature (#91419) 2024-08-20 09:56:10 -04: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
Sergej-Vlasov
7c8184d5bf
DashboardModel - Add fallback for variable current value fallback (#91833)
* add variable current value fallback when null

* refactor to avoid loosing reference
2024-08-20 11:55:04 +03:00
Ashley Harrison
ab312914cd
Chore: cleanup util SCSS styles (#92078)
migrate SCSS util classes
2024-08-20 09:31:04 +01:00
Laura Benz
e7b6b4cf34
RestoreDashboards: Add folder picker to restore modal (#91945)
* feat: add folder picker

* feat: run i18n extraction

* feat: add target folder to api query

* feat: hand over targetFolder data to api query

* feat: retrieve original location

* feat: Add condition for folder picker

* feat: Modify condition for folder picker default

* refactor: add changes from code review

* refactor: add changes from code review

* feat: add plural to translation, add styling

* feat: run i18n extraction
2024-08-20 10:08:18 +03:00
Ashley Harrison
5ce9324801
fix nav border when bodyscrolling with sticky variables (#92087)
* fix nav border when bodyscrolling with sticky variables

* better fix
2024-08-19 18:59:46 +03:00
Tom Ratcliffe
e2a1d59a96
Alerting: Remove disable logic for name field on time intervals when using k8s API (#91885)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-08-19 14:53:12 +01:00
Torkel Ödegaard
43dba8c3f9
DashboardScene: Support bodyScrolling (#91888)
* Progress

* Fix dashboards pane

* almost working

* add hook to get scopesDashboardsScene state

* check whether it's enabled when considering opened state

* add height to container

* Update

* revert change

* Make it work when bodyScrolling is disabled

* Last tweaks

* Update scenes

* Updating

* Fix

* fix tests

* fix lint  issues

* fix lint  issues

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-19 15:42:45 +02:00
Juan Cabanas
a50b5564be
ShareModal: shareView query param fix (#92020) 2024-08-19 07:28:54 -03:00
Laura Fernández
84e0aa1ccd
RestoreDashboard: Avoid overwrite when saving dashboard triggers a 'name-exists' error (#91881) 2024-08-19 11:31:40 +02:00
Joey
41fc6ab89e
Tempo: Update max options (#92050)
* Update max options

* Update limit
2024-08-19 10:26:55 +01:00
Ashley Harrison
dcdef1a02d
TextPanel: Prevent panel crashing when interpolating variables results in empty content (#92019)
fix text panel crashing when interpolating variables results in empty content
2024-08-19 09:45:58 +01: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
3c5d799c8c
BarChart: Prevent label clipping at top (#91990)
* BarChart: Prevent label clipping at top

* Fix const issue
2024-08-16 09:29:25 -07:00
Lu Shueh Chou
126169f3ca
Alerting: Add LogicOr operation option (#89258)
---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-08-16 11:02:14 -04:00
Joey
ca56f16615
Tempo: Improve performance of drop down in variable query editor (#92010)
Improve performance of drop down
2024-08-16 14:07:09 +01:00
Ashley Harrison
32a5651e96
Chore: Remove breakpoints SCSS (#91883)
remove breakpoints mixins
2024-08-16 12:38:26 +01:00
Lucy Chen
d8ae905758
Change Public Dashboard text in Enterprise Users section (#91816)
* update text

* update tooltip

* add conditionals

* add conditions

* add conditionals

* fix conditionals
2024-08-15 13:09:01 -04:00
Matias Chomicki
4751bf915a
Loki: Higlight search words in queries when using template variables (#91949)
* backendResultTransformer: use templateSrv to highlight search words from variables

* Add unit tests

* Formatting

* Fix import issues

* Update public/app/plugins/datasource/loki/backendResultTransformer.ts

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

* Refactor: use executedQueryString to get the interpolated query

* Remove unused imports

* Update public/app/plugins/datasource/loki/backendResultTransformer.test.ts

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

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-08-15 19:20:48 +03:00
Abdessamad Enabih
530355d5db
Profile: Add tooltip to revoke session button (#91858)
* A11y: Buttons in profile/sessions do not provide tooltips

* Adressing PR comment for #91858
2024-08-15 18:24:38 +03:00
Matias Chomicki
40c6f741c0
Logs: Show older logs button when infinite scroll is enabled and sort order is descending (#91060)
* LogsNavigation: show older logs button when the order is descending

* LogsNavigation: adjust styles for showing only older logs button

* Logs Navigation: revert changes

* Infinite scroll: add older logs button

* Older logs button: show only in explore

* chore: add unit test

* Formatting

* Update public/app/features/logs/components/InfiniteScroll.test.tsx

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

* Chore: add missing translation

* Chore: move the button a tiny bit

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-08-15 18:17:47 +03:00
Kat Yang
4b0e8653f2
Refactor: Consolidate code for query generator (#91415)
* Refactor: Consolidate code for query generator

* Update public/app/features/trails/AutomaticMetricQueries/query-generators/default.ts

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

* fix: rename index.ts to getQueryGeneratorFor.ts to avoid barrel files

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-08-15 09:50:56 -04:00
Joao Silva
42efb14989
Bookmarks: Move building logic to the Frontend (#91849) 2024-08-15 13:35:20 +01:00
Mihai Doarna
d6e793b31e
SSO: Add server discovery URL on Generic OAuth config (#91047)
* add OpenID metadata URL field

* add i18n generated content

* configure server discovery URL in a modal

* remove getValues

* address feedback

* update field name to OpenID Connect Discovery URL

* add well-known suffix to the URL provided

* address feedback

* add isLoading state to ServerDiscoveryField
2024-08-15 15:00:25 +03:00
Ashley Harrison
2ac247be88
Navigation: Fix scope dashboards selector with bodyScrolling (#91892)
* almost working

* add hook to get scopesDashboardsScene state

* check whether it's enabled when considering opened state

* add height to container
2024-08-15 09:58:26 +01: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
Juan Cabanas
07500e11be
ShareExternally: Rename public dashboard section (#91928) 2024-08-14 17:03:19 -03:00
Juan Cabanas
8a97143120
ShareDrawer: Share snapshot panel (#90678) 2024-08-14 13:15:47 -03:00
Kristina
7cc925d319
Query Library: Enable edit description (#90009)
* WIP

* Finish getting form to populate

* WIP API

* Get PUT to work although the edit doesnt apply yet

* Complete working PUT

* PATCH v1 no json patch

* This works!

* Fix headers to be configurable

* Fix translations

* Revert "This works!"

This reverts commit d57ffcbc4b.

# Conflicts:
#	public/app/features/query-library/api/factory.ts
#	public/app/features/query-library/api/query.ts
#	public/app/features/query-library/types.ts

* Use normal method of patching 😅

* Replace add to library form with generic version

* make translations generic

* Rename function, fix bad conflict resolution
2024-08-14 10:11:53 -05:00
Andres Martinez Gotor
44290ddf32
Adapt plugin page to preinstalled plugins (#91874) 2024-08-14 17:04:59 +02:00
Bogdan Matei
b0dd3fb1a1
Scopes: Add extra-check for fetching dashboards (#91896) 2024-08-14 18:00:09 +03:00
Juan Cabanas
b569c1610f
ShareDrawer: Share embed panel (#90994) 2024-08-14 10:49:10 -03:00
Ieva
134b9f731f
RBAC: Hide root level folder creation button if the user doesn't have the right permissions (#91502)
* hide root level folder creation button if the user doesn't have the right permissions

* linting
2024-08-14 11:53:03 +01:00
Yulia Shanyrova
d1b0e70f8d
Plugins: Remove cards and list display options functionality from plugin catalogue (#91840)
* remove displayMode functionality from plugin catalogue

* remove test for removed functionality

* fix linting
2024-08-14 10:24:10 +02:00
Ryan McKinley
427dad26a2
Swagger: Add a custom swagger/api page (#91785)
Co-authored-by: Kristian Bremberg <kristian.bremberg@grafana.com>
2024-08-14 09:03:00 +03: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
Gilles De Mey
0a2db346ab
Alerting: use new Alertmanager update hooks for mute and active time intervals (#91404) 2024-08-13 17:38:40 +02: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
Yuri Tseretyan
db33df5041
Alerting: Template API to return errutil errors (#91821) 2024-08-13 10:59:19 -04:00
Joey
d779dfb0a2
Tempo: Select performance improvements (#91732)
* Tempo select performance improvements

* Update type

* Tidy up and simplify

* Update tagValueOptions

* Update GroupBy options
2024-08-13 15:24:58 +01:00
Joey
d72846790e
Tempo: Send the existing query with the request for a tags values (#90931)
* Send query with request

* Ensure number tag values are added to query correctly

* Update test

* Update test
2024-08-13 15:23:18 +01:00
Nathan Marrs
d817ee9b99
Docs: Add example to transpose transformation (#91823) 2024-08-13 10:22:56 -04:00
Gilles De Mey
e9e5989549
Alerting: Introduce useProduceNewAlertmanagerConfiguration (#91623)
useProduceNewAlertmanagerConfiguration
2024-08-13 14:34:38 +02:00
Tom Ratcliffe
8136fbef1f
Chore: Add capability for overriding local development behaviour using env vars (#85603) 2024-08-13 13:07:42 +01:00
Tom Ratcliffe
735954386f
Alerting: Consolidate contact points dropdown and add filter in alert rules (#91690)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
2024-08-13 12:56:13 +01: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