Commit Graph
14911 Commits
Author SHA1 Message Date
Ryan McKinley f0dc718a67 POC/Provisioning: Use cards layout to show more status info (#98155) 2024-12-18 12:37:45 +03:00
Ryan McKinley b322f65243 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-12-18 08:39:03 +03:00
Roberto Jiménez Sánchez a6ed3d6fc5 [Prototyping] Webhook managed by controller (#98085) 2024-12-18 07:34:29 +03:00
070f0e4457 Dashboard API versions handling (#96666)
* structure apic

* API versioning proposal

* Make api service independent from version

* Update v2

* Fix public dashboards page test

* Uncomment reload dashboard feature code

* Revert

* Betterer

* Fix imports

* useV2DashboardsAPI feature toggle

* POC/v2 schema: Add v1<-> v2 transformers (#97058)

* Make dshboard access interface more precise

* Add first pass for schema v1<->v2 transformers

* Update response transformer test

* Import fixes

* Manage dashboards validation: Handle v2 schema

* Handle new dashboard with v2

* Fix tests

* Move dashboard is folder error handling to legacy API implementation

* Add tests for dashboard api client

* betterer

* Use dashboard DTO when capturing dashbaord impression

* prettier

* Dashboard API: resolve folder metadata

* Add tests for resolving folder metadata

* Fix DashboardPicker

* Renames and nits

* POC Alternative Suggestion for  Dashboard API versions handling (#97789)

* Add transitional_dashboard_api, reset components that are not ready for v2 schema, and start working on migrating
DashboardPicker to use v2 schema

* reset DashboardScenePageStateManager

* Improve logic in transitional api, also remove isDashboardResource checks from components

* REmove transitional_dashboard_api and apply PR feedback

* Apply PR feedback, use 'v2' as a parameter and remove unnecesary if

* Fix tests

* Adding missing comments from original PR and also changing order to improve diffing in github :)

* update betterer

* fix prettier

* Add tests for DashboardPicker

* Do not use unified alerting mocks

* Fix unused type in dashboard test

* Improve comments in DahboardPicker

* Update folder validation fn

* Validation update

* Update legacy api test

* Lint

---------

Co-authored-by: alexandra vargas <alexa1866@gmail.com>
Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-12-17 22:17:09 +01:00
Stephanie Hingtgen b3985a4d37 k8s: Dashboards: allow querying of unistore (#97995) 2024-12-17 10:35:46 -06:00
Matheus Macabu 146860930b Build: update vektah/gqlparser/v2 to v2.5.20 to address Dependabot alert (#98106) 2024-12-17 17:20:23 +01:00
Adam Simpson 57d94ed01f ds-querier: return error if failed to get ds client (#97698)
* ds-querier: return error if failed to get ds client

* add log line

* no empty ref

* fix test
2024-12-17 10:38:44 -05:00
Piotr Jamróz 01666fc1ae Explore Profiles: Preinstall for onprem Grafana instances (#97775) 2024-12-17 16:35:11 +01:00
Mariell Hoversholm 46b9d5fc9e test: expect correct status code 2024-12-17 16:01:19 +01:00
Mariell Hoversholm e4aa316bcd test: use a non-empty home path 2024-12-17 15:52:22 +01:00
Mariell Hoversholm 42af3eb768 fix: ignore empty provisioning paths string 2024-12-17 15:30:42 +01:00
jackyin 4477cad1ba Org: Fix redirection logic to work consistently (#96521)
fix unexpected redirection
2024-12-17 14:20:18 +00:00
Ryan McKinley eb38a63559 K8s/Folder: Show parent folder information (#97938) 2024-12-17 16:19:40 +02:00
Mariell Hoversholm 47e0964d5d chore: fix lints 2024-12-17 15:12:57 +01:00
Mariell Hoversholm 0ad2f2ac47 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-12-17 15:11:35 +01:00
Ryan McKinley a01878332a K8s/Storage: Deprecate StorageTypeLegacy (#98096) 2024-12-17 17:00:35 +03:00
Ashley Harrison 687e207b48 SingleTopNav: Clean up and remove code + toggle (#97937)
* clean up almost all of the toggle

* betterer

* clean up searchBarHidden and extract translations

* fix remaining unit tests

* remove redundant topPosition
2024-12-17 13:32:38 +00:00
Ryan McKinley bb20d128f0 POC/Provisioning: Minor cleanups (#98089) 2024-12-17 16:27:40 +03:00
Mariell Hoversholm 87808c0868 POC/Provisioning: Replicator: Re-use existing UID on update (#98010)
* POC/Provisioning: Replicator: Re-use existing UID on update

* fix: update UID, resource version, and generation

* fix: log info useful for debugging on error

* fix: default to spec uid

* feat: use file's data

* feat: set spec uid

* fix: try setting k8s name

* fix: don't set with types.UID

* fix: undo that

* chore: downgrade to debug logs
2024-12-17 14:23:49 +01:00
Matheus Macabu c824f5b9bf CloudMigrations: Add config for alert rules state behavior and remove experimental feature toggle on alerts migration (#97254)
* CloudMigrations: add config for controlling alert rules state behavior

* CloudMigrations: remove experimental 'onPremToCloudMigrationsAlerts' feature toggle
2024-12-17 12:56:18 +01:00
Georges Chaudy 3fe2227c82 [auth] make id-token optional (#97831)
make idtoken optional

enure there is always an identity in the context

fix: update token

fix: now it should work

fix: now it should work
2024-12-17 13:28:00 +02:00
Roberto Jimenez Sanchez 9074868f92 Fix compilation 2024-12-17 11:56:03 +01:00
Alexander Akhmetov bb713cf8e4 Alerting: Add simplified_notifications_section setting to grafana_alerting_simplified_editor_rules metric (#98053) 2024-12-17 11:13:31 +01:00
Ryan McKinleyandMariell Hoversholm 4e90c34b64 POC/Provisioning: Use healthy repositories (#97999)
Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
2024-12-17 11:13:30 +03:00
Ryan McKinley 8ea7f3a6ca POC/Provisioning: Find admin user (#98076)
* find admin user

* find admin user

* find admin user
2024-12-17 10:06:25 +03:00
Ryan McKinley efc0b6802f fix test 2024-12-17 09:30:41 +03:00
Ryan McKinley 751b11b5bd fix test 2024-12-17 08:00:55 +03:00
Ryan McKinley a75c39bfe7 merge main 2024-12-16 19:14:52 +03:00
Ryan McKinley de22a2ca71 merge main 2024-12-16 19:09:19 +03:00
Ryan McKinley e4837d452e Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-12-16 19:07:54 +03:00
Misi 6cd3a5458e Auth: Return error when retries have been exhausted for OAuth token refresh (#98034)
Return error when retries for DB lock have been exhausted in oauth_token.go
2024-12-16 17:03:39 +01:00
Roberto Jiménez Sánchez 7726e50fdd [Prototyping] Consolidate file ignore logic in parser (#98048)
Consolidate file ignore function in parser
2024-12-16 17:00:36 +01:00
Roberto Jiménez Sánchez 50847c98c0 [Prototyping] Pull Request Job (#98018)
* WIP: pull request job

* Make things private

* Fix template

* Handle github statuses

* Refactor around rendering

* Fix compilation

* Clean up code

* Fix issues during test

* Use Kind instead of Type
2024-12-16 16:28:05 +01:00
Alexander Akhmetovandbrendamuir 1f8f9a45d7 Alerting: Add state_periodic_save_batch_size config option (#98019)
* Alerting: Add state_periodic_save_batch_size config option

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-12-16 15:30:38 +01:00
Alex KhomenkoandRyan McKinley dfb7d5110e POC/Provisioning: update generator (#98027)
* Add source

* Update filters

* Exclude all namespace endpoints

* Remove watch endpoints

* Exclude collection endpoint

* Update arg names

* Add parser script

* Update spec

* Update @rtk-query/codegen-openapi

* Update params for list endpoints

* Use new hooks and types in hooks

* alternative operation ID

* alternative operation ID

* alt operation

* alt operation

* Move some transformations to BE

* Update endpoints

* Update types after generation

* Remove spec and generated endpoints

* Add tags automatically

* Update pkg/services/apiserver/builder/helper.go

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

* add static openapi

* Use generated spec

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-12-16 16:27:31 +02:00
Andres Martinez Gotor 95dea152b6 Plugins Admin: Avoid disabling auto-enabled apps (#97800) 2024-12-16 14:51:04 +01:00
Todd TreeceandRyan McKinley 8b0cd9dbb9 K8s: Increment generation in generic strategy (#97946)
---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-12-16 08:18:43 -05:00
Leonor OliveiraandBruno Abrantes 62c1735a61 Implement k8s count handler (#97955)
* Implement k8s count handler

* Fix endpoint

* Fix type converstions

* Add tests for foldercounts

* Add more tests

* Only use sql-fallback if no values in unistore

* Update gomod

* Fix test

* Update pkg/api/folder_test.go

Co-authored-by: Bruno Abrantes <bruno.abrantes@grafana.com>

* Go.mod

---------

Co-authored-by: Bruno Abrantes <bruno.abrantes@grafana.com>
2024-12-16 14:08:29 +01:00
Ryan McKinley 2f4f727758 POC/Provisioning: Add id mapping utility (#97997) 2024-12-16 14:42:31 +03:00
Mariell Hoversholm 37456b7747 test: correct returned type from export endpoint 2024-12-16 08:54:06 +01:00
Ryan McKinley 16db278a8b Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-12-14 12:30:12 +03:00
Stephanie Hingtgen 8f6e9f8ed0 Restores in app platform (#97582) 2024-12-13 16:55:43 -06:00
Misi 09123a7bd6 FeatureToggle: Enable useSessionStorageForRedirection by default (#97966)
Enable useSessionStorageForRedirection by default
2024-12-13 19:36:35 +01:00
Sven Grossmann 5ac7443fce Loki: Default to /labels API with query param instead of /series API (#97935)
* feat(loki-labels-api): add feature toggle

* feat(loki-labels-api): default to `/labels` API
2024-12-13 15:31:41 +01:00
Ryan McKinleyandTodd Treece 6d21eddf13 Plugins: Update to latest go plugin SDK (v0.260.3) w/ arrow v18 (#97561)
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
2024-12-13 17:06:39 +03:00
Ryan McKinley b454092cd8 POC/Provisioning: Create parser in one place (#97929) 2024-12-13 17:00:58 +03:00
Ryan McKinley 1689c51b0d POC/Provisioning: Replace the /import endpoint with /sync (#97933) 2024-12-13 16:04:01 +03:00
Mariell Hoversholm bf998eef4b POC/Provisioning: Export: Move to a job worker architecture (#97927)
* POC/Provisioning: Export: Move to a job worker architecture

* fix: move export logic to replicator

The logic changed in the last rebase, which wasn't taken into account.
This should make us use a single worker again.
2024-12-13 13:40:11 +01:00
Karl Persson 5c0cb09d27 Zanzana: Remove capabilities (#97918)
Remove capabilities
2024-12-13 12:23:12 +01:00
Roberto Jiménez Sánchez 1a7017d14e [Prototyping] Extract sync logic out of Github Repository (#97921)
* Add ReplicateTree in Replicator

* Pass changes to replicate

* Add FilesChanged method

* Move sync logic to replicator

* Fix linting issue

* Fix linting issue

* Move worker to jobs package

* Remove FIXME comment
2024-12-13 12:01:37 +01:00