Commit Graph
14883 Commits
Author SHA1 Message Date
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
Dana Axinte b9d6af34cd CloudMigrations: Obtain gcom plugins to enable plugins migration (#97784)
* just api

* preallocate
2024-12-13 10:59:43 +00:00
Ryan McKinleyandTodd Treece de2bff1d07 POC/Provisioning: Add informer (with healthcheck) (#97806)
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
2024-12-13 13:45:22 +03:00
Laura Fernández aac62c89da UnifiedHistory: Create feature toggle (#97922) 2024-12-13 12:41:18 +02:00
Jo 40d3b02648 Auth: Separate anonymous settings to its own struct (#97791)
separate anonymous settings to its own struct
2024-12-13 10:46:27 +01:00
Mariell Hoversholm 0fb8dd8760 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-12-13 10:44:31 +01:00
Ryan McKinley 32e3d0274a POC/Provisioning: Remove repository client from github instance (#97909)
* minor cleanup

* minor cleanup
2024-12-13 09:57:09 +01:00
Agnès Toulet 1c4d30f73c Rendering: Add logs (#97885)
* Rendering: add logs

* fix tests and lint issues
2024-12-13 09:42:35 +01:00
Mariell Hoversholm 4127741ea8 POC/Provisioning: Local repo: Test importing a panel (#97900) 2024-12-13 08:59:05 +01:00
Ryan McKinleyandMariell Hoversholm d8f657aed1 POC/Provisioning: Allow saving valid, but unhealthy configurations (#97899)
Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
2024-12-13 10:18:43 +03:00
Andreas Christou cc4afff889 Graphite: Set maxDataPoints based on user value in alerting (#97178) 2024-12-12 23:26:44 +00:00
Isabella Siu b3a12f486e Elasticsearch: Use _field_caps instead of _mapping to get fields (#97607) 2024-12-12 17:20:04 -05:00
Jean-Philippe Quéméner 1509fadd5b refactor(unified-storage): make datasyncer configurable (#97832) 2024-12-12 21:41:01 +01:00
owensmallwood 0e8702369a Folders: Create default folder permissions within transaction (#97812)
create default folder permissions within transaction
2024-12-12 14:08:46 -06:00
Mariell Hoversholm 708c6ca800 fix: reintroduce removed code 2024-12-12 16:33:38 +01:00
Ryan McKinley d57c2078e5 merge main 2024-12-12 18:04:02 +03:00
Todd Treece 6c8c0ab350 Chore: Ignore duplicate process_* metrics in MultiRegistry (#97857) 2024-12-12 16:55:09 +02:00
Roberto Jiménez Sánchez 278ae6c4bd [Prototyping] Sync from previous synced commit (#97852)
* Sync from previous synced commit

* Revert changes in violations
2024-12-12 15:27:42 +01:00
Mariell Hoversholm e6a6fc6f74 Tests: Require GrafanaOpts when creating Grafana dir (#97825)
I don't see a reason to accept a variable amount here, as we never use it. The only use I can see is optionally
including the opts, which isn't necessary and only complicates matters when an empty struct would do just as well: the
options are all created to be assumed zero-values already, in case a test doesn't need that option set.
2024-12-12 15:13:06 +01:00
Roberto Jiménez Sánchez 5f9e8b7359 [Prototyping] Update last sync commit on webhook processing (#97769)
* Update last sync commit on webhook processing

* Add error handling for setting nested field
2024-12-12 15:06:51 +01:00
Robert GoltzandMariell Hoversholm 0a390cc069 Chore: Bump dependency golang.org/x/crypto to v0.31.0 - fix: CVE-2024-45337 (#97823)
* Update dependency golang.org/x/crypto to v0.31.0

* Update dependency golang.org/x/crypto to v0.31.0 - based on Trivy Scan

* Chore: go mod tidy

* Chore: make update-workspace

* Chore: manually update more sum files

---------

Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
2024-12-12 14:21:46 +01:00
Gabriel MABILLE 65dfbd7731 go.mod: Update authlib (#97833)
* go.mod: Update authlib

* No clue why it was removed by my computer but not by CI
2024-12-12 13:56:01 +01:00
Mariell Hoversholm f62ab80430 test: set permitted provisioning paths 2024-12-12 13:16:39 +01:00
Mariell Hoversholm 9b20e3155b Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-12-12 12:34:00 +01:00
Ieva 32554c78a8 Direct DB perm checks: check that the namespaces match (#97828)
check that the namespace of the caller matches the namespace in the request
2024-12-12 12:57:16 +02:00
Leonor OliveiraandRyan McKinley f710573b37 Use searcher GetStats to count for folders and dashboards under a folder to be deleted (#97708)
* get stats from index

* fix logging

* fix logging

* actually counting

* Use searcher to check for resources referencing a folder

* Add tests when deleting a folder

* Lint

* merge/fix test

* will delegate to SQL

* get stats from index

* fix logging

* actually counting

* merge/fix test

* will delegate to SQL

* Uncomment test

* Add tests for checking stats before deleting a folder

* Change base branch to main

* Lint

* [REVIEW] remove logs

* Check for type assertion success

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-12-12 11:53:01 +01:00
Mariell Hoversholm 8f628a0695 Cloudwatch: Change deprecated errorsource references (#97827)
This has been failing to compile, bringing down a _lot_ of tests along with it (notably the entire pkg/tests dir).
The `experimental/errorsource` package was deprecated, so the recommended replacement was used.
2024-12-12 11:37:11 +01:00
Will Browne d85353926d Metrics: Export multi registry (#97662)
* export multi registry

* fixup
2024-12-12 09:48:27 +00:00
Mariell Hoversholm e5f43521a4 POC/Provisioning: Allow specific local path prefixes (#97822) 2024-12-12 10:38:41 +01:00