Commit Graph

55584 Commits

Author SHA1 Message Date
Roberto Jiménez Sánchez 48feba66e6
[Prototyping] Lint dashboard in pull requests (#97199)
* Make lint issues comment

* Make it work

* Delete previous comments

* Move linting to separate package

* Fix issue with refactoring

* Update test fixture
2024-11-29 16:24:45 +01:00
Mariell Hoversholm a1eb1863e5
POC/Provisioning: Export: Only write dashboards in-tree of the repo (#97194)
* POC/Provisioning: Export: Only write dashboards in-tree of the repo

* test: ensure folderTree behaves like it should

* feat: define DirPath on folder out of the tree as undefined behaviour
2024-11-29 15:19:07 +01:00
Clarity-89 e5bfbb1250 Update status table 2024-11-29 14:10:37 +02:00
Alex Khomenko 366121b355
POC/Provisioning: Save dashboard (#97167)
* Create provisioned db

* Redirect to preview

* Enable import for all

* Add "Provisioned" badge

* Add "Provisioned" badge

* Do not show save for provisioned db

* Show existing PRs

* Betterer
2024-11-29 12:32:35 +02:00
Mariell Hoversholm 2972570075
Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-11-29 09:55:15 +01:00
renovate[bot] 3d47dc8e5f
Update Yarn to v4.5.3 (#96972)
* Update Yarn to v4.5.3

* updated yarn version.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2024-11-29 10:52:25 +02:00
Victor Marin 61077f387e
Fix default case for allowCustomValue flag in MultiValue variables (#96996)
* Fix default case for allowCustomValue flag in MultiValue variables

* fix test
2024-11-29 10:38:19 +02:00
Roberto Jiménez Sánchez f113f11342
[Prototyping] Comment with preview links in pull requests (#97174) 2024-11-29 09:27:14 +01:00
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
Mariell Hoversholm ea8d46dfd3
Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-11-28 15:31:03 +01:00
Mariell Hoversholm ee71e18e2a
POC/Provisioning: Gosec: Fix/ignore gosec violations (#97166) 2024-11-28 15:26:55 +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
Mariell Hoversholm a600cc6eb7
POC/Provisioning: Import: Apply folder nesting properly (#97143) 2024-11-28 14:03:26 +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
Roberto Jiménez Sánchez d8b1834139
[Prototyping] Update resources on github webhook events (#97113)
* Add replicator interface
* Use factory to create replicators
* Use replicator in import
2024-11-28 11:48:42 +01:00
Alex Khomenko 62e0ffafca
POC/Provisioning: UI updates (#97139)
* Use configured workflow

* Update config form

* Use configured branch for import

* tweak

* Betterer

* Do not pass ref for import

* Betterer
2024-11-28 11:41:16 +01: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
Mariell Hoversholm 2cc3fd7392
feat: pass resources directly 2024-11-28 09:39:44 +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
Ryan McKinley 3482e3ae8b
POC/Provisioning: Show file list on status page (#97104)
* show stub

* Update status page

* Use table for file list

* Update desc

---------

Co-authored-by: Clarity-89 <homes89@ukr.net>
2024-11-28 10:40:22 +03:00
Ryan McKinley 67924e80cb
POC/Provisioning: Use the parsed file object access to set fields (#97138)
* client and repo info

* set repo header info

* add ref to header info

* add comment

---------

Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
2024-11-28 08:14:29 +01:00
Dimitris Sotirakis 3fc6c003e8
chore: Pin `send-slack-message` action (#97088)
Pin send-slack-message action
2024-11-28 08:10:02 +01:00
Mariell Hoversholm 46640cd882
POC/Provisioning: Resources: Move resource interactions to own package (#97107)
* POC/Provisioning: Resources: Move client to its own package

* POC/Provisioning: Resources: Move parsing to resources package

* POC/Provisioning: Test: Align disco response
2024-11-28 08:06:49 +01:00
Sarah Zinger 4b234c4795
Add logging to legacy datasource look up path (#97065) 2024-11-27 14:32:06 -05:00
Alex Khomenko 2129bdf596
POC/Provisioning: Import resources from repository (#97105)
* Update endpoints

* Add import component

* Cleanup

* Add import from repository

* Rename

* Move import to the list view
2024-11-27 19:54:56 +01: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