Commit Graph

55508 Commits

Author SHA1 Message Date
Carl Bergquist
21bd47e512
scopes: behind its own feature flag (#97077)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-11-27 08:58:25 +01:00
Ryan McKinley
f6ccf976e5
UnifiedSearch: Use ResourceIndex from dashboards apiserver (v0alpha1 only) (#96939) 2024-11-27 07:57:53 +02:00
Stephanie Hingtgen
104f795156
Dashboards: Remove deprecated endpoints from docs (#97073) 2024-11-27 08:27:58 +03:00
Stephanie Hingtgen
72ffe9838a
Folders: remove get by id from docs (#97069) 2024-11-26 19:12:07 -06:00
Galen Kistler
5fadc35664
Dashboards: add showMenuAlways prop to PanelChrome (#96868)
* feat: add showMenuOnHover prop to always render menu in viz
2024-11-27 01:28:56 +02:00
Nihal
e73bb34cc0
Alerting: Fix Conflicting Alert Rule Response Has Wrong 'rule_uid' (#95013)
* change to return the right conflicting alert rule uid. see https://github.com/grafana/grafana/issues/89755

Signed-off-by: wasim-nihal <sswasim64@gmail.com>

* correcting the code comment

Signed-off-by: wasim-nihal <sswasim64@gmail.com>

* changes to return the conflicting uid for both insert and update operations

Signed-off-by: wasim-nihal <sswasim64@gmail.com>

* changes to return verbose conflicting alert rule response payload

Signed-off-by: wasim-nihal <sswasim64@gmail.com>

* changes to return verbose conflicting alert rule response payload

Signed-off-by: wasim-nihal <sswasim64@gmail.com>

* Update pkg/services/ngalert/store/alert_rule.go

Co-authored-by: Matthew Jacobson <JacobsonMT@gmail.com>

---------

Signed-off-by: wasim-nihal <sswasim64@gmail.com>
Co-authored-by: Matthew Jacobson <JacobsonMT@gmail.com>
2024-11-26 15:13:31 -05:00
brendamuir
52f6f69d4b
Alerting docs: adds new export alert rule definition (#97028)
* Alerting docs: adds new export alert rule definition

* update

* Update button text for exporting new rule definition

* Update docs/sources/alerting/set-up/provision-alerting-resources/export-alerting-resources/index.md

Co-authored-by: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/export-alerting-resources/index.md

Co-authored-by: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com>

* definition

* type

* definition 2

* pepes feedback

* removes will

---------

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
Co-authored-by: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com>
2024-11-26 19:20:55 +01:00
Kristina
6e62afa950
StateTimeline: Fix use of hidden fields in data links (#95095)
* Use hideFrom in GraphNG to hide fields if value is defined. Remove other filtering from timeline chart

* make hidefrom logic more robust

* remove unneeded decoupling, filter fields when there are no links

* add omitHideFromViz prop to GraphNG

* Add more to comment on property

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-11-26 10:40:25 -06:00
Eric Leijonmarck
83d050ee1c
LBAC for datasources: Adds UID to LBAC rules (#96522)
* swagger

* update with deprecation notice

* adding caching for teams
2024-11-26 16:35:04 +00:00
Matias Chomicki
d2b6960593
Feature toggles: remove lokiMetricDataplane (#97024)
* Feature toggles: remove lokiMetricDataplane

* Framing: remove test cases expecting metricDataplane to be false

* Remove test code

* Chore: rename test cases
2024-11-26 18:32:17 +02:00
Gareth Dawson
217a2bce0a
MSSQL: Make error consistent with psql and mysql (#97056)
make error consistent with psql and mysql
2024-11-26 17:47:14 +02:00
Matias Chomicki
d69888df2d
Logs Panel: Limit displayed characters to MAX_CHARACTERS (#96997)
* LogRowMessage: limit displayed characters to MAX_CHARACTERS

* LogRowMessage: update ellipsis text

* Formatting

* Revert test change

* LogRowMessage: fix conditional

* Extract translations

* LogRowMessage: use button for ellipsis

* Revert test change

* Change fill to outline

* Revert test change
2024-11-26 17:45:44 +02:00
Dimitris Sotirakis
d418299780
docs: Fix Pending period description in alerting page (#96974)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-11-26 17:09:08 +02:00
Isabel Matwawana
2370fbffc2
Docs: Remove unnecessary underscore (#97048) 2024-11-26 10:06:27 -05:00
Bogdan Matei
13a4bec96b
Scopes: Move URL values from selector to facade (#96842) 2024-11-26 16:43:36 +02:00
Karl Persson
76f052e8de
Requester: Remove duplicated function (#97038)
* Remove duplicated function

* Remove GetDisplayName from interface

* Use GetName
2024-11-26 15:29:31 +01:00
Arati R.
6d04023aa6
K8s/Folders: Improve k8s client implementation of get (#96434)
* Enable getting folders with kubernetes client
* Add TestIntegrationFolderGetPermissions
* Set full path as part of legacy get
* Replace implementation for setting fullpath
* Add folder get test
* Escape forward slash in parent titles
* Replace test for access control metadata
* Add test case to TestIntegrationFolderGetPermissions
* Improve fetching of access control
2024-11-26 16:20:00 +02:00
Gilles De Mey
c6d3cf89ad
Alerting: Fix navigating to URLs with "%" (#96992)
Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
2024-11-26 15:07:18 +01:00
Eric Leijonmarck
2bab11e20a
Anonymous Devices: Add Before you begin section in docs (#97043)
* add before you begin

* Update docs/sources/setup-grafana/configure-security/configure-authentication/anonymous-auth/index.md
2024-11-26 13:56:38 +00:00
Tom Ratcliffe
e4a1243948
Alerting: Consume k8s API for notification policies tree (#96147)
* Add basic usage of K8s API for notification policies

* Add permissions checks for navtree for routes

* Add and update permissions for routing tree logic

* Add capability to skip calling contact points hook

* Conditionally show list of mute timings depending on permissions

* Conditionally link to mute timings if user can see at least one

* Add work in progress k8s handlers for routing tree

* Update notification policy hooks

* Wire up policies to permissions better (conditionally calling APIs)

* Add additional checks for whether to show grafana AM

* Add permission checks to access control

* Remove accidental permissions after rebase

* Update types and const for k8s routes

* Improve statefulness and reset routing tree in tests

* Update notif policy tests to check k8s and config API

* Fix type assertion

* Move non-grafana test out of .each

* Make failure case safer

* Override tag invalidation for notification policies API

* Pass in error and add new error alert component

* Add basic mock server conflict check

* Add test to check user can save after a conflict

* Add logic to allow reloading policies if changed by another user

* Fix test

* Update translations in Modals

* Add ViewAlertGroups ability

* Tweak provisioning logic and memoize AM config response

* Update snapshots for useAbilities

* Update result destructure

* Use enums for provenance in routingtrees

* Use consistent memoisation

* Fix _metadata for vanilla AM

* useAsync for error / update state

* move k8s api error handling to separate file

* use cause for error codes

* Use `supported` bools from Alertmanager abilities and clarify default policy

---------

Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-11-26 13:46:39 +00:00
Torkel Ödegaard
06d0d41183
Dashboard: Edit pane in edit mode (#96971)
* Dashboard: Edit pane foundations

* Update

* fix panel edit padding

* Restore scroll pos works when feature toggle is disabled

* Update

* Update

* remember collapsed state

* Update

* fixed padding issue
2024-11-26 14:39:09 +01:00
Mihai Doarna
d2fab92d8b
APIKeys: Update text on API keys deprecation (#97022)
* update text on API keys deprecation

* run prettier

* add betterer results
2024-11-26 14:22:23 +02:00
Ezequiel Victorero
5039725da6
Snapshots: Add RBAC roles for creating and deleting (#96126) 2024-11-26 09:13:17 -03:00
Stephanie Hingtgen
91d7517146
Dashboards: Set uid to empty if not found (#97013) 2024-11-26 05:07:07 -07:00
Gareth Dawson
768000febd
Postgres: Add error source to postgresql (#97027)
* add error source to postgres

* i forgot to save the file with changes
2024-11-26 11:23:49 +00:00
Hugo Kiyodi Oshiro
a8174f9285
Plugins: Add token to gcom requests (#96261) 2024-11-26 11:42:55 +01:00
Gareth Dawson
3b8499eaee
MySQL: add error source to QueryData (#96769)
* add error source to mysql

* Update pkg/tsdb/mysql/sqleng/sql_engine.go

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-11-26 10:25:48 +00:00
Jack Westbrook
754fce648c
Chore: Make Eslint work with enterprise (#96539)
chore(eslint): make it work with enterprise
2024-11-26 11:09:27 +01:00
Artur Wierzbicki
ba0f376da7
Dashboards: update docs of the overwrite param in Save Dashboard API Call (#97011)
update dashboard overwrite docs
2024-11-26 09:36:44 +00:00
Jára Benc
a9099a56db
Alerting: Fix runbook URL overflow (#93516)
* Fix runbook URL overflow

* Re add truncate()

* fix imports

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-11-26 10:12:25 +01:00
Karl Persson
3990637af9
IAM: remove duplicated functions (#96989)
* Remove duplicated function and use the one provided by claims package
2024-11-26 09:22:45 +01:00
Serge Zaitsev
3dbd3a7a81
Chore: Revert golangci PR + bump golangic version (#96326)
* Chore: Clean up some excludes and fix makefile (#96052)

clean up some excludes and fix makefile

* Chore: Enable cache on golangci linter (#95471)

* try to enable cache on golangci linter

* bump version

* exclude G115

* reduce timeout

* remove deprecated linter

* bump linter version in bingo

* try a different syntax for workspace modules

* try another command

* add apps to linter path

* try disabling cue codegen

* skip some linting in devenv

* exclude dirs and try again

* try workaround for pkg

* try path instead of dir

* make it one line

* replace package prefix

* exclude xorm

* exclude wire

* file-based aproach to nolint in workspaces

* missing quote

* simplify command line

* change ownership

* upgrade linter

* revert bingo readme

* revert devenv changes

* upgrade golint

* use dashes to stay consistent with other workflows

* also change name in its own workflow file

* rename in codeowners
2024-11-26 09:19:53 +01:00
Todd Treece
74879a465f
Chore: Update github.com/grafana/go-json version (#97012) 2024-11-26 00:49:44 +02:00
Brendan O'Handley
f5958fe0c0
Explore metrics: Fix default datasource bug, add test coverage (#97008)
* select actual default prom data source

* add tests for the function
2024-11-26 00:36:58 +02:00
Brendan O'Handley
ae27382be5
Prometheus: Add metrics explorer feature tracking for combobox (#97006)
add metrics explorer feature tracking for combobox
2024-11-25 14:53:40 -06:00
Isabel Matwawana
a88c681008
Docs: Add example image to RegExp extract fields option (#97007) 2024-11-25 15:34:07 -05:00
Leon Sorokin
3e96672b88
TraceQL: Further optimize autosuggest / tag completions (#96943)
* extract completionItemsToSuggestions

* refactor

* cleanup

* Fix bug

* Fix another bug

---------

Co-authored-by: André Pereira <adrapereira@gmail.com>
2024-11-25 19:10:48 +00:00
Juan Cabanas
150352930d
ExportJson: Add missing tracking in copy to clipboard button (#97000) 2024-11-25 15:34:38 -03:00
Kim Nylander
18c8ed3088
[DOC] Remove simple configuration in Tempo data source docs (#96932)
* Remove simple configuration from Tempo data source docs

* Change deprecation to 11.5 for aggregate by

* Update docs/sources/shared/datasources/tempo-search-traceql.md
2024-11-25 13:17:53 -05:00
Leon Sorokin
ac04abb7a4
Revert "PanelQueryRunner: Use rxjs merge, not lodash merge (#96881)" (#96999)
This reverts commit a8b6c81d12.
2024-11-25 18:12:37 +00:00
Brendan O'Handley
287ce2ef40
Prometheus: Add error source, don't swallow errors (#96511)
add error source, don't swallow errors
2024-11-25 10:30:13 -06:00
Laura Fernández
df628951f5
Combobox: Fix input overflowing parent with autosize (#96642) 2024-11-25 16:36:05 +01:00
Leon Sorokin
a8b6c81d12
PanelQueryRunner: Use rxjs merge, not lodash merge (#96881) 2024-11-25 09:24:58 -06:00
Tobias Skarhed
1a453828d9
MultiCombobox: Initial downshift setup (#96664)
* Initial multi state handling

* Add basic styling

* Extract OptionListItem

* Fix linting issues

* Export types

* Remove React imports

* Make story internal

* Add proper story title

* Remove empty styles
2024-11-25 16:24:24 +01:00
jackyin
88768d012d
UserTable: fix issue when search query contains "." (#94389) 2024-11-25 16:00:48 +01:00
Josh Hunt
cd86546313
GrafanaUI: Fix inconsistent controlled/uncontrolled state in AutoSizeInput (#96696)
* GrafanaUI: Fix delayed state in AutoSizeInput due to mixed controlled/uncontrolled state

* clean up state management into seperate hook

* update test

* Sync new prop value to state when uncontrolled, tests
2024-11-25 14:44:56 +00:00
Miklós Tolnai
517c6fdc9b
Navigation: add dbo11y app under Infrastructure (#96763)
* add dbo11y app under Infrastructure

* add i18n for Databases nav item

* add Translation extraction results
2024-11-25 15:34:47 +01:00
Isabel Matwawana
74add52c2e
Add sparkline to codespell (#96936) 2024-11-25 17:20:41 +03:00
Alexander Zobnin
170e0e1813
Zanzana: List then search implementation (#96705)
* Zanzana: Search with list

* Allow to pass werb into list request

* split list search into 2 functions

* fix listing resources

* remove unused

* refactor

* remove unused function

* Add more logging to reconciler

* Fix search for users with access to all resources

* fix findFoldersZanzanaList

* search for folders as well by default

* refactor

* use compile for list and search

* remove list from client

* remove only from client

* remove list from interface

* run compile once

* refactor

* refactor

* add search tests

* fix tests

* Fix linter
2024-11-25 14:58:34 +01:00
Gabriel MABILLE
6d77c0e187
AuthZ client: Add tracing (#96983)
* AuthZ client: Add tracing

* InProc as well
2024-11-25 14:17:52 +01:00