Commit Graph

55508 Commits

Author SHA1 Message Date
grafana-pr-automation[bot]
5f385632da
I18n: Download translations from Crowdin (#97180)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-29 07:29:41 +02:00
Stephanie Hingtgen
63a09c27f7
Chore: remove frontend code that retrieves by folder id (#97066) 2024-11-28 22:12:52 -06:00
Alexa V
c7a5f96ce7
Dashboard: Schema V2 - remove code in sharing export (#97164)
Dashboard: Schema V2 - remove code in sharing export related to schema v2 POC
2024-11-28 19:28:40 +01:00
Ieva
2c77b7ae3d
GAS: swagger update (#97155)
swagger update
2024-11-28 17:52:59 +00:00
Misi
fa634e1476
Fix: Do not fetch Orgs if the user is authenticated by apikey/sa or render key (#97162)
* Do not fetch Orgs if the user is authenticated by apikey/sa or render svc

* Lint
2024-11-28 17:44:11 +01:00
Ieva
cc0ec349a4
RBAC: Allow passing in user UID when searching for user's permissions (#97125)
* allow passing in user UID instead of ID when searching for user's permissions

* fix tests
2024-11-28 16:36:26 +00:00
renovate[bot]
2fdac80488
Update dependency @prometheus-io/lezer-promql to v0.300.0 (#96532)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-28 16:38:25 +01:00
Karl Persson
d64c938749
K8s: Make it possible to register several kinds for a GroupVersion (#97161)
* Make it possible to register several kinds for a GroupVersion
2024-11-28 16:31:05 +01:00
Karl Persson
c5d3f8644e
K8s: Set custom config (#97169)
Set custom config
2024-11-28 16:30:43 +01:00
Andres Martinez Gotor
a41902330f
@grafana/runtime: User storage (#95834) 2024-11-28 15:49:34 +01:00
dependabot[bot]
fb0fff6de1
Bump smol-toml from 1.3.0 to 1.3.1 (#96942)
Bumps [smol-toml](https://github.com/squirrelchat/smol-toml) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/squirrelchat/smol-toml/releases)
- [Commits](https://github.com/squirrelchat/smol-toml/commits)

---
updated-dependencies:
- dependency-name: smol-toml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-28 15:22:36 +01:00
Torkel Ödegaard
335241d93d
ElementSelection: New element selection context to support selecting elements (#97029)
* ElementSelection: New element selction context to support selecting elements like panels

* Update

* Update
2024-11-28 15:06:00 +01:00
dependabot[bot]
6974f77d18
Chore(deps): Bump @eslint/plugin-kit from 0.2.0 to 0.2.3 (#96589)
Bumps [@eslint/plugin-kit](https://github.com/eslint/rewrite) from 0.2.0 to 0.2.3.
- [Release notes](https://github.com/eslint/rewrite/releases)
- [Changelog](https://github.com/eslint/rewrite/blob/main/release-please-config.json)
- [Commits](https://github.com/eslint/rewrite/compare/core-v0.2.0...plugin-kit-v0.2.3)

---
updated-dependencies:
- dependency-name: "@eslint/plugin-kit"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-28 14:02:34 +00:00
dependabot[bot]
33bdfb4d72
Chore(deps): Bump cross-spawn from 7.0.3 to 7.0.6 (#96654)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-28 15:01:32 +01:00
Jack Westbrook
25da5f0806
Chore: Bump Storybook to 8.4.x (#96128)
* feat(storybook): upgrade to version 8.4

* chore(grafana-ui): replace all usage of preview with canvas

* chore(grafana-ui): add fs-extra as dev dependency

* feat(storybook): copy required assets to temp static directory due to 8.4 not supporting file paths

* chore(yarn): fix up lock file so swc-loader doesnt break for decoupled plugins

* Add ExampleFrame component to render grafana-ui examples

* Prevent Storybook from styling in ExampleFrame

* Use global styles in Storybook docs

* Update mdx docs to use ExampleFrame or correct Canvas usage

* update AutoSizeInput

* Update Index mdx

* remove the gfm mdx package

* silence sass warnings

* fix(storybook): add missing imports to fix failed rendering of stories/docs

* remove empty docs

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-11-28 14:58:36 +01:00
Jack Westbrook
10eec83478
Grafana UI: Compress grot-cta image (#97052)
* chore(grafana-ui): reduce size of grot-cta

* chore(grafana-ui): apply less aggressive compression on grot-cta
2024-11-28 14:51:20 +01:00
Karl Persson
b2626a2d65
LoginAttempt: Add setting to control max number of attempts before user login gets locked (#97091)
* Add setting to adjust number of login attempts before user login gets locked

* Ensure at least one attempt can be made

* Update documentation with new setting

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
2024-11-28 14:33:18 +01:00
Matheus Macabu
f2b96593ea
SQL: close rows to release connection (#97147)
* SQL: close rows to release connection

* dont return err from rows.Close()
2024-11-28 14:28:55 +01:00
Victor Marin
0bf9d68070
DashboardScene: Fix layout issues with repeated panels when repeatDirection is missing (#97149)
fix
2024-11-28 14:26:36 +02:00
Georges Chaudy
f6124344ba
authnz: Fix panic in the authenticator and rename metric (#97150)
* Fix: panic

* suggestion
2024-11-28 14:03:54 +02:00
Konrad Lalik
5e5fa86b8b
Alerting: Fix go template parsing (#97145)
Co-authored-by: Sonia Aguilar <sonia.aguilar@grafana.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-11-28 13:29:45 +02:00
Pepe Cano
59d4b91e4c
Alerting: Explore button in Insights view (#96496)
* Alerting: Explore button in Insights view

* Fix wrong insights queries

* replace `$rule_group` in the query expression with the actual rule group value

* Add info tooltip in `Insights` title

* Remove unused `RatingModal` component

* fix betterer results

* remove unnecessary `React.Fragment`

* Remove unnecessary text space
2024-11-28 13:18:45 +02:00
Haris Rozajac
4721d5164b
Dashboard Schema v2: Transformation to v2 supports annotations (#96787)
* Annotations

* Default to configured default DS when datasource is undefined

---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
Co-authored-by: alexandra vargas <alexa1866@gmail.com>
2024-11-28 12:36:09 +02:00
Ethan
a4fff11438
Update project URL For Security Labels (#96405)
* Update project URL in .github/commands.json

* update type/build-packaging project

---------

Co-authored-by: tonypowa <tonypowa@gmail.com>
2024-11-28 11:58:52 +02:00
Kévin Gomez
c8d3ea58f8
Support importing local cue modules when generating TS types with cog (#96876)
* Support importing local cue modules when generating TS types with cog

* Generate enums as unions of values instead of an actual `enum` statement

* Update transformers to use the new TS enums

* Update go workspaces

---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-11-28 10:45:31 +01:00
Alexander Zobnin
c8caf787d4
Zanzana: handle service accounts (#97123)
* add service account to the schema

* sync managed permissions for service accounts

* sync SA basic roles

* sync SA roles

* Fix endless loop in reconciler while read openfga
2024-11-28 10:41:30 +01:00
Mihai Doarna
feecd30687
API key: Fix API key migration to service account (#97100)
fix api key migration to service account
2024-11-28 09:42:58 +02:00
Dimitris Sotirakis
3fc6c003e8
chore: Pin send-slack-message action (#97088)
Pin send-slack-message action
2024-11-28 08:10:02 +01:00
Sarah Zinger
4b234c4795
Add logging to legacy datasource look up path (#97065) 2024-11-27 14:32:06 -05:00
dependabot[bot]
54785fb5a8
Bump github.com/matryer/is from 1.4.0 to 1.4.1 (#97016)
Bumps [github.com/matryer/is](https://github.com/matryer/is) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/matryer/is/releases)
- [Commits](https://github.com/matryer/is/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: github.com/matryer/is
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 17:11:17 +00:00
Isabel Matwawana
8b374b227a
Docs: Fix broken link (#97119) 2024-11-27 11:54:08 -05:00
Isabel Matwawana
f4e1f52a7a
Docs: Add note to refresh page after saving dashboards (#97112) 2024-11-27 11:14:11 -05:00
Isabel Matwawana
17246eb7fc
Docs: Add column lists to panel config pages (#96940) 2024-11-27 10:21:33 -05:00
Isabel Matwawana
1083722346
Add column lists to Shared dashboards page (#96941) 2024-11-27 10:21:08 -05:00
Sonia Aguilar
2e14c20c71
Alerting: Fix removing reducer when inital value is instant (#97054)
* Fix removing reducer when inital value is instant

* use ID to allow clicking label to toggle the switch

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-11-27 15:59:25 +01:00
Mihai Doarna
33e7005483
API keys: Update text when no API keys were found in DB (#97102)
* update text when no API keys were found in DB

* text update
2024-11-27 16:24:52 +02:00
Sonia Aguilar
a0de712bca
Alerting: Fix simplified query step (#97046)
* Fix simplified query step

* remove is advancedMode and use editorSettings.simplifiedQueryEditor

* remove unnecessary Boolean conversion

* fix when feature toggle is disabled

* fix test

* simplify code

* fix when not ff is not enabled
2024-11-27 16:13:27 +02:00
Matias Chomicki
3f83322fa9
Logs: fix canKeepDisplayedFields with possibly undefined queries (#97103) 2024-11-27 16:04:40 +02:00
Adam Yeats
b898a4540d
Azure Monitor: Add a feature flag to toggle user auth for Azure Monitor only (#96858)
* Azure Monitor: Add a feature flag to toggle user auth for Azure Monitor only

* Fix condition for userIdentityEnabled

* Re-add removed test

* Remove unused prop

* Refactor onAuthTypeChange in AzureCredentialsForm

* Add frontend unit tests

* Lint
2024-11-27 14:01:54 +00:00
Ivan Ortega Alba
d18cdae3e2
Schema V2 to DashboardScene: Settings + Panels (#96074)
* Transform Save mode to Scene: Settings

* Transform Save mode to Scene: Panels

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: alexandra vargas <alexa1866@gmail.com>
Co-authored-by: Haris Rozajac <haris.rozajac12@gmail.com>
2024-11-27 14:35:37 +01:00
Sriram
16c78f6a98
Postgres: Datasource health check error message improvements #96906 (#96990)
* updated postgres health check error messages

* addressed review comments / added tests
2024-11-27 13:14:44 +00:00
brendamuir
6e36dfb74e
Alerting docs: adds docs on new form flow (#97099) 2024-11-27 13:58:31 +01:00
jackyin
5b0b9c9ecc
ToolbarButton: Auto width on smaller screen sizes (#96023)
* fix bug

* optimise

* delete annotation

* optimise
2024-11-27 13:50:44 +01:00
Alexander Zobnin
5a91ab46af
Zanzana: Use StreamedListObjects to fetch full list of resources (#97025)
* Initial streamed version of list

* instantiate openfga client to use StreamedListObjects

* Add config option for using streamed version

* Use caching

* fix cache init

* Fix hashing

* refactor
2024-11-27 14:05:41 +02:00
linoman
3957b0b26a
SCIM: Update swagger for /scim/Users (#97030)
update swagger for /scim/Users
2024-11-27 12:14:06 +01:00
grafana-pr-automation[bot]
b97cfb3dc2
I18n: Download translations from Crowdin (#96975)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-27 12:21:02 +02:00
Misi
84b8296ffb
OAuth: Use the attached external session data in OAuthToken and OAuthTokenSync (#96655)
* wip

* wip + tests

* wip

* wip opt2

* Use authn.Identity struct's SessionToken

* Merge fixes

* Handle disabling the feature flag correctly

* Fix test

* Cleanup

* Remove HasOAuthEntry from the OAuthTokenService interface

* Remove unused function
2024-11-27 11:06:39 +01:00
Gabriel MABILLE
6e2d3cae5e
AuthN: Register flags for grpc_server_authentication configuration (#97063)
* AuthZServer: Add authenticator

* Add flags
2024-11-27 10:35:35 +01:00
Carl Bergquist
722af820a5
Scopes: Use new flag + app_mode=prod in integration tests (#97081)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-11-27 09:38:54 +01:00
Karl Persson
be54c69fd4
Zanzana: Remove create relation from generic resources (#97042)
Remove create relation from generic resources.

We cant have a create relation to a resource because they don't exist yet. So
in oder to check create we either have to have that permissions on a folder or the namespace
2024-11-27 09:02:29 +01:00