Commit Graph

50983 Commits

Author SHA1 Message Date
Haris Rozajac
b383cafd35
Explore: Logs in content outline (#86431)
* wip filtering

* Remove corresponding children from parentlessItem ref on register

* wip filtering

* Remove corresponding children from parentlessItem ref on register

* Highlighting filters

* OMG

* Handle updating highlight field inside context

* Toggling legend from the content outline

* Support multiple selects for log filters in content outline

* Remove commented out code

* Fix an issue with loki datasource; use same datastructure for logsVolume in Logs and LogVolume panel

* Fix registering logic

* cleanup

* Don't register outline items when having multiple log volume levels

* Remove checking mergeSingleChild logic because in context because ContentOutline does it

* Fix logic so it works for elasticsearch

* Better logic

* Add log color and sort

* Show items at full opacity

* Remove commented sort

* Do not highlight if all are selected, and highlight = 100% opacity, active = 30%

* dont auto collapse after filter unselect

* Remove console logs

* No partial opacity, add height for consistent display

---------

Co-authored-by: Piotr Jamroz <pm.jamroz@gmail.com>
Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
2024-05-08 07:58:37 -05:00
Tobias Skarhed
ef37b78631
Revert "Panel: Keyboard focus shortcuts prioritization" (#87213)
Revert "Panel: Keyboard focus shortcuts prioritization (#86772)"

This reverts commit 3e450ec4bf.
2024-05-08 14:53:20 +02:00
renovate[bot]
f1e5a02af5
Update dependency rc-cascader to v3.25.0 (#86045)
* Update dependency rc-cascader to v3.25.0

* fix type errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-05-08 15:24:01 +03:00
Ieva
9a824bdf0a
RBAC: Don't set empty action sets (#87398)
* don't set empty action sets

* extend comment
2024-05-08 15:09:46 +03:00
Karl Persson
be5ced4287
Identity: Use typed version of namespace id (#87257)
* Remove different constructors and only use NewNamespaceID

* AdminUser: check typed namespace id

* Identity: Add convinient function to parse valid user id when type is either user or service account

* Annotations: Use typed namespace id instead
2024-05-08 14:03:53 +02:00
antonio
d83cbe4d85
alerting/webhook doc update (#87492)
* alerting/webhook doc update

* text formath

* fixed admonition

* typo

* headings

* formatted headings and prettified it all

* one more heading
2024-05-08 13:49:55 +03:00
renovate[bot]
8ca4d73c40
Update dependency @grafana/scenes to v4.17.1 (#87490)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 12:15:21 +03:00
Torkel Ödegaard
0c2f58bdae
DashboardScene: Fixes editing transformations after toggling table view (#87397) 2024-05-08 08:58:19 +02:00
Torkel Ödegaard
e7c39f18be
DashboardDataSource: Fixes issue where sometimes untransformed data could be returned (#87433)
* DashboardDataSource: always return a result key

* Update

* Update
2024-05-08 08:25:19 +02:00
Charandas
d13e175328
K8s: upgrade authlib with correct IDTokenClaims (#87461) 2024-05-07 14:09:02 -07:00
Stephanie Hingtgen
d365d442fa
Chore: Upgrade go to 1.22.3 (#87463) 2024-05-07 15:23:21 -05:00
Dan Cech
1884b03511
Provisioning: Look up provisioned folders by UID when possible (#87465)
look up provisioned folders by uid when possible
2024-05-07 15:38:53 -04:00
Charandas
a9da6ce1d5
ext_jwt: streamline expected aud in access tokens and id tokens (#87401) 2024-05-07 11:20:16 -07:00
Alexander Weaver
6c47968f6c
Alerting: Do not retry rule evaluations with "input data must be a wide series but got type long" style errors (#87343)
add typed error for series must be wide, do not retry
2024-05-07 11:31:07 -05:00
Nihal
5fb87de321
Auth: Added support to filter for parent teams in GitHub connector's team membership filter (#86754)
* added changes for parent teams in team_ids. see https://github.com/grafana/grafana/issues/85916

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* added unit test

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* addressed review comments to consider case where parent object can be null

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* addressed review comment

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

---------

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>
2024-05-07 18:19:20 +02:00
Karl Persson
2d8570e85e
IDToken: Reuse claims from authlib (#87437)
* bump authlib version

* Reuse claims from authlib
2024-05-07 16:46:43 +02:00
Ashley Harrison
27fa544f72
SCSS: remove some low hanging dead fruit (#87260)
* remove some low hanging fruit

* restore json_explorer
2024-05-07 15:26:43 +01:00
David Harris
a4d296559c
Plugins: Catalog to show all plugins by default (#87168)
* update plugin install filter to show all by default

* make pretty

* remove aria-label on lock icon

* wip: attempt to fix overflow

* switch to stack, add aria label back for testing

* make pretty

* switch to TextLink

* remove learn more link from catalog

* add hover text

* docs: update plugin install to reflect state filter change

* Revert "docs: update plugin install to reflect state filter change"

This reverts commit 16222aee0b.
2024-05-07 16:48:09 +03:00
Eric Leijonmarck
6b218b11cf
Actionsets: fix remove printf (#87439)
fix: remove printf
2024-05-07 16:36:01 +03:00
Ieva
0239cf8766
Docs: Link to generic oauth docs from team sync page (#87381)
link to generic oauth docs from team sync page
2024-05-07 14:31:57 +01:00
Alexander Zobnin
82dea4b3e5
Access control: Cache basic roles and teams permissions (#87043)
* RBAC: Cache basic roles permissions

* Cache teams permissions

* Set cache TTL to 1 minute

* Add OSS implementation

* Fetch basic role permissions correctly

* fix conflict_user_command

* Fix teams permissions query

* Add traces for GetUserPermissions

* Fix folders tests

* Fix colflict user command

* Update store mock

* Fix linter error

* Reuse GetUserPermissions for fetching basic roles

* tests for GetTeamsPermissions

* pre-allocate slice capacity

* Fix linter
2024-05-07 15:23:11 +02:00
Leonor Oliveira
ee2f6a7b49
Force interface implementation also on legacy storage (#87414)
* Force interface implementation also on legacy storage

* Add DeleteCollection to folders and dashboards

* Fix integration tests

* Fix tests
2024-05-07 15:02:30 +02:00
Ivana Huckova
12a87c0899
Logs panel: Fix spacing when log details disabled (#87431)
* Logs panel: Fix spacing when log details disabled

* Fix error spacing
2024-05-07 15:27:44 +03:00
Tom Ratcliffe
a597300027
Chore: Allow MenuItems to have role=menuitem when URL is set (#86886)
Allow passing a role into a MenuItem component, and fallback to default behaviour if not passed
2024-05-07 13:12:02 +01:00
Oscar Kilhed
c6975e06d2
Dashboard scenes: Fix view panel breadcrum when going to edit from view single panel (#87411)
Fix view panel breadcrum when going to edit from view panel
2024-05-07 14:02:52 +02:00
Karl Persson
37af1ae58e
IDToken: Set typ header (#87430)
TokenSigning: Set typ header
2024-05-07 13:59:23 +02:00
kay delaney
bc67b88301
Chore: Rewrite alerting css using object styles (#87114)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-05-07 10:57:25 +01:00
kay delaney
1654b719e9
Chore: Fix lint error in grafana-prometheus (#87421) 2024-05-07 12:40:55 +03:00
kay delaney
b68f40d5c5
Chore: Rewrite grafana-prometheus css using object styles (#86835) 2024-05-07 10:11:49 +01:00
renovate[bot]
6733f43781 Update dependency @types/diff to v5.2.1 2024-05-07 09:08:14 +00:00
Ashley Harrison
37ef6df3b2
Chore: replace calls to defaultProps (#87310)
* replace calls to defaultProps

* make linksGetter optional
2024-05-07 10:07:16 +01:00
renovate[bot]
0c702d335e
Update dependency @grafana/faro-web-sdk to v1.7.2 (#87341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 09:35:50 +01:00
antonio
1bde17c8d5
alerting: config notif page improvement (#87140)
* alerting: config notif page improvement

* Update docs/sources/alerting/configure-notifications/template-notifications/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update _index.md

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-05-07 10:26:04 +02:00
Gábor Farkas
4f7ed97aad
mysql: fix dispose-method not called in external-mode (#87330) 2024-05-07 09:54:30 +02:00
Leonor Oliveira
0a2c5065a0
Choose mode. Turn DualWriter into a real interface. Better Logging (#87291)
* Choose mode. Add log field on top level dualwriter

* Add logs

* Turn DualWriter into a full interface. Fix tests

* Lint

* Use struct for dualWriter interface

* Use struct

* Default should be legacyStore for all entities

* Fix test. Get rid of extra concrete type

* Remove comment

* Add comment

* Temp set dualwriter mode 2 for playlists while configs are not in place

* Add modes type + add comment on what each mode does

* Don't require watcher interface for now

* Use storage implementation on mode 2

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>

* Pass log values to the context

* test

* Update pkg/apiserver/rest/dualwriter_mode3.go

Co-authored-by: Dan Cech <dcech@grafana.com>

---------

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
Co-authored-by: Dan Cech <dcech@grafana.com>
2024-05-06 23:18:28 +02:00
Aaron Godin
0bc8992dfa
Revert #86466 (#87405)
Revert "Apply plugin route ReqAction to ds_proxy authorization (#86466)"

This reverts commit 53f94ac50d.
2024-05-06 14:40:32 -05:00
Dan Cech
41bee274fd
Chore: Fix error handling in postDashboard, remove UserDisplayDTO, fix live redis client initialization (#87206)
* clean up error handling in postDashboard and remove UserDisplayDTO

* replace GetUserUID with GetUID and GetNamespacedUID, enforce namespace constant type

* lint fix

* lint fix

* more lint fixes
2024-05-06 14:17:34 -04:00
jackyin
ba8b4bde3a
fix ipv6 startup fail #81870 (#87108)
* fix ipv6 startup fail #81870

* ipv6 startup fail

* ipv6 startup fail
2024-05-06 14:17:03 -04:00
Nick Richmond
fae9bfccb2
Prometheus: Place custom inputs first when using regex filter values in the query builder (#87360)
* fix: place custom inputs first when using regex filter values

* fix: remove confusing messaging
2024-05-06 12:07:04 -04:00
Pepe Cano
7dd05998fd
Alerting docs: Update and restructure Introduction/Alert rule evaluation (#87331)
* Migrate and update `Alert rule evaluation`

* Minor change

* Update internal links to new URLs
2024-05-06 17:33:14 +02:00
Pepe Cano
1b69d647be
Alerting docs: update Comparison between alert rule types (#87252) 2024-05-06 17:32:33 +02:00
github-actions[bot]
10afa5a5a0
I18n: Download translations from Crowdin (#87336)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-06 14:26:57 +00:00
Gilles De Mey
19e8dca09c
Alerting: Allow editing of provisioned mutable Alertmanagers (#87385) 2024-05-06 14:29:28 +02:00
Kristina
8173bd89bf
Explore: Only let nodeGraph frames process through nodeGraph visualization (#87198)
* Only let nodeGraph frames process through nodeGraph

* add metadata to test frames to be processed

* Revert "add metadata to test frames to be processed"

This reverts commit fc366a0ab4.

* Revert "Only let nodeGraph frames process through nodeGraph"

This reverts commit b8be50e219.

* Only send node graph frames to node graph logic

* remove unnecessary logic
2024-05-06 07:13:09 -05:00
Yuri Kotov
33170c4d07
Loki: Use label/<name>/values API instead of series API for label values discovery (#83044)
* Loki: Add label values API selector to setting and use label_values API when selected

* remove CHANGELOG change

* add docs

* Support Loki 2.7+ only, so unconditionally use /labels API

* Correct doc for fetchLabels and fetchLabelValues functions

* Fixes after merge

* Do not encode query parameter twice

* return getLabelKeys in Completion Provider

* docs

* Add test for LabelParamEditor

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

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

* toHaveBeenCalledWith

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-05-06 13:47:49 +02:00
Andrej Ocenas
9c254c7e1e
Flamegraph: Add diff mode color legend (#87319) 2024-05-06 12:28:57 +02:00
brendamuir
526be4fa2b
Alerting vale fixes (#87380) 2024-05-06 11:43:34 +02:00
Eric Leijonmarck
601485c74d
Actionsets: Fix downgrade of permission to add the actionset permission (#87328)
* check for missingActions empty and add actionset

* spelling
2024-05-06 10:16:26 +01:00
Fabrizio
f99d4ee92d
Tempo: Fix sorting for nested tables (#87214) 2024-05-06 10:41:47 +02:00
Larissa Wandzura
57038e8dfa
Docs: added note to RBAC doc from support escalation (#85311)
* added admonition and API info

* Update docs/sources/administration/roles-and-permissions/access-control/_index.md

---------

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-05-06 09:27:46 +02:00