Commit Graph

55392 Commits

Author SHA1 Message Date
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
Dominik Prokop
7f7cc2153f
Schema v2: Add basic editor for testing (#96852)
* Schema v2: Add basic editor for testing

* Disable eslint in dev files

* Remove settings tab
2024-11-25 13:11:27 +01:00
lean.dev
edae283817
Chore: avoid redirect in test (#96917) 2024-11-25 08:54:42 -03:00
Ivana Huckova
15632561de
Update commands.json file to route area/backend/db/sql to search & storage team (#96920)
Update commands to route `area/backend/db/sql` to Search & Storage team
2024-11-25 12:45:01 +01:00
Sonia Aguilar
624f44fdb5
Alerting: Add new button for exporting new alert rule in HCL format (#96785)
* add new button for exporting new alert rule

* Fix test

* allow only HCL format for exporting new alert rule

* fix initial tab

* Update public/app/features/alerting/unified/components/rule-editor/alert-rule-form/ModifyExportRuleForm.tsx

Co-authored-by: Konrad Lalik <konradlalik@gmail.com>

* Update public/app/features/alerting/unified/components/rule-editor/alert-rule-form/ModifyExportRuleForm.tsx

Co-authored-by: Konrad Lalik <konradlalik@gmail.com>

* address review comments

* update translations

---------

Co-authored-by: Konrad Lalik <konradlalik@gmail.com>
2024-11-25 11:52:28 +01:00
Victor Marin
2736fe0568
Dashboards: Add the option to toggle custom value options in the groupBy variable (#96892)
* allow options list locking in groupBy var

* refactor

* fix

* fix lint
2024-11-25 12:21:25 +02:00
Kazunari Sasa
39e902860a
Docs: Update min cpu approx value for k8s minimum requirements (#96962)
Update min cpu approx value for k8s minimum requirements
2024-11-25 10:01:45 +00:00
renovate[bot]
b23805a78a
Update scenes to v5.26.0 (#96968)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 11:15:29 +02:00
Matthew Thorning
6e13d1c3b3
Docs: Update frontend.md (#96816)
* Update frontend.md

removed incorrect lines which describe the type of case (camelCase, PascalCase, etc.) should be used.

* Update contribute/style-guides/frontend.md

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update contribute/style-guides/frontend.md

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update contribute/style-guides/frontend.md

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

---------

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
2024-11-25 09:32:27 +01:00
Matheus Macabu
1bf35c97e5
CloudMigrations: fix flaky test on snapshot status (#96827)
* cloudmigration: uncomment flaky test

* cloudmigration: refactor test snapshot status
2024-11-25 09:28:00 +01:00
dependabot[bot]
97fc5abb85
Bump gocloud.dev from 0.39.0 to 0.40.0 (#95900)
* Bump gocloud.dev from 0.39.0 to 0.40.0

Bumps [gocloud.dev](https://github.com/google/go-cloud) from 0.39.0 to 0.40.0.
- [Release notes](https://github.com/google/go-cloud/releases)
- [Commits](https://github.com/google/go-cloud/compare/v0.39.0...v0.40.0)

---
updated-dependencies:
- dependency-name: gocloud.dev
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* update workspace

* skip flakey test

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Grot <grot@grafana.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-11-25 11:04:34 +03:00
grafana-pr-automation[bot]
7ac3e7f6c4
I18n: Download translations from Crowdin (#96911)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-25 07:44:16 +02:00
Isabel Matwawana
dc97e60323
Add example to Extract fields RegExp option (#96946)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-11-23 00:15:20 +02:00
Sriram
ea3bc8f253
MySQL: Datasource health check error message improvements (#96906)
* updated mysql health check error messages

* fix betterer error

* fix lint errors

* renamed moreDetailsLink to errorDetailsLink

* update

* added i18n locale files
2024-11-22 21:58:35 +00:00
Ryan McKinley
94262fd095
Search: expose search on dashboard apiserver (v0alpha1) (#96907) 2024-11-22 22:26:56 +02:00
Nick Richmond
8a006dd4b6
ExploreMetrics: Prefer underscores for events (#96938)
refactor: event casing
2024-11-22 22:18:27 +02:00
Andreas Christou
4ea15f2f2c
Bump Plugin SDK version (#96933)
* Bump Plugin SDK version

* Rerun update-workspace
2024-11-22 20:43:13 +02:00