Commit Graph
15481 Commits
Author SHA1 Message Date
Mariell Hoversholm 4cee0520e5 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-11 14:42:49 +01:00
Alex KhomenkoandRyan McKinley ecca6d32af POC/Provisioning: Combine owner/repo into URL field (#100397)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2025-02-11 16:34:57 +03:00
Alexander Zobnin 7234a17d1d Zanzana: Use authzService audience (#100417) 2025-02-11 14:25:30 +01:00
Alexander Zobnin 5118e82e8c Zanzana: Run reconciliation in its own service (#100361)
* Zanzana: Start reconciliation in its own service

* cleanup

* update go workspaces

* refactor

* remove unused code

* move func definition
2025-02-11 14:09:39 +01:00
Ryan McKinley e3cb73301e Authz/Schema: Remove unused stub cue definitions (#100387) 2025-02-11 15:24:11 +03:00
Roberto Jiménez Sánchez d503fd913c [Provisioning] Repository Overview & Toolbar (#100402)
* Move SyncStatus to separate component

* Move resources to separate file

* Remove Edit button in listing page

* Put sync status as part of resources tab

* Use repository description as subtitle

* Overview tab

* Add cards to overview

* Remove settings tab

* Add circle

* Use page actions intead

* Check test option

* Update overview

* Make the resources counts prettier

* Improve styling

* More styling

* Add padding

* Full sync instead

* Fix syntax issues

* Remove duplicate status badge
2025-02-11 13:18:42 +01:00
Mariell Hoversholm 06e1c56d4f Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-11 12:49:04 +01:00
Karl PerssonandIevaVasiljeva bfa4fa3c68 Authz: Refactor folder tree (#99554)
* Refactor folder tree to its own structure

* Make it possible to json encode the tree

* Use iterations for Ancestors and Children

---------

Co-authored-by: IevaVasiljeva <ieva.vasiljeva@grafana.com>
2025-02-11 12:36:11 +01:00
Andre Pereira d48802cdfb Tempo: TraceQL metrics streaming (#99037)
* TraceQL metrics streaming POC

* Reduce duplicate frames by using scan() and combineResponses()

* Trying to remove samples outside of time range

* Remove code to clean out of range

* Metrics streaming config toggle

* Sync opening the search and metrics options

* Fix tests

* Fix issues after conflicts

* Fix tests

* Use absolute value when computing minXDelta

* Revert last commit

* Fix frame sorting

* Remove all duplicates

* Use fields from schema to get the frames

* Use FieldCache

* Address PR comments
2025-02-11 11:11:01 +00:00
Ryan McKinley f464dc79e0 Provisioning: Use go-git wrapper for export (#100333) 2025-02-11 13:51:15 +03:00
Jean-Philippe Quéméner 6eaf702e96 fix(unified-storage): return legacy data in mode 2 (#100353) 2025-02-11 10:34:56 +01:00
Mariell Hoversholm 3810aea532 Provisioning: Fork context on Kubernetes requests (#100403)
This'll be changed with something on the API Server infra level eventually. For now, let's unblock our engineers.
2025-02-11 10:29:11 +01:00
Andres Martinez Gotor f8efdaf88c apiserver: Avoid panic for DELETE requests (#100372) 2025-02-11 09:18:57 +01:00
Gábor Farkas e4ef71b78e querier: handle datasource-not-found (#100175) 2025-02-11 08:25:27 +01:00
Clarity-89 6d969ca833 Update workspace 2025-02-11 08:20:09 +02:00
Clarity-89 da4b2e1534 Merge branch 'main' into grafana-git-ui-sync
# Conflicts:
#	pkg/storage/unified/resource/go.sum
2025-02-11 07:33:55 +02:00
Ida Štambuk 7092fd269d Elasticsearch: Remove frontend testDatasource method (#99894) 2025-02-10 18:33:36 +01:00
Sarah Zinger 0152f414f0 DS Apiservers: return 404 when receiving a datasource not found error (#100025)
* DS Apiservers should return a k8s 404 error

* Do not swallow status codes

* Updates from initial CR.

* Add test for ds apiserver to retunr 404 when a datasource is not found

* Didn't intend for a change here
2025-02-10 12:07:51 -05:00
Moustafa Baiou 7dee4d1808 Alerting: Allow specifying uid for new rules added to groups (#99858)
When modifying rule groups the `uid` can be specified but only if the rule already existed in the DB. If the rule is new the update would be rejected.

This updates the RuleGroup provisioning apis to allow specifying the `uid` when creating/updating rule groups. 

Additionally, the RuleGroupIdx was not being updated when rules were reordered in the group.

Context: https://github.com/grafana/terraform-provider-grafana/pull/1971#issuecomment-2599223897
Relates to: https://github.com/grafana/terraform-provider-grafana/issues/1928

Fixes: #98283
2025-02-10 10:28:34 -05:00
Roberto Jiménez SánchezandClarity-89 2a220b530d [Prototyping] Github Spec to allow push to main or force to use pull requests (#97001)
* Change to have workflows

* Update Frontend

* Run generation

* Add openapi file

* Revert unexpected changes

* Add enum

* Add description to workflows

* Add mapper function to please ESLint

* Remove pull request option

* Remove leftovers

* Configure sync interval in frontend

* Address most comments

* Regenerate client

* Fix compile issue

* Update WorkflowOption type

---------

Co-authored-by: Clarity-89 <homes89@ukr.net>
2025-02-10 15:23:49 +01:00
Yuri Tseretyan 1b8db233a7 Alerting: Rule Version API to Ignore versions without diff (#100093) 2025-02-10 09:20:35 -05:00
beejeebus 02caf915a5 Don't remove DWARF info from Go binaries in dev (#100328)
Only ask the linker to strip DWARF information if we're not in
dev, to avoid seeing stuff like this when using delve:

    ~ $ dlv attach $(pgrep grafana)
    (dlv) l main.main
    Command failed: location "main.main" not found

After this change:

    ~ $ dlv attach $(pgrep grafana)
    Type 'help' for list of commands.
    (dlv) l main.main
    Showing /home/justin/code/grafana/pkg/cmd/grafana/main.go:23 (PC: 0xac93533)
        18: var commit = gcli.DefaultCommitValue
        19: var enterpriseCommit = gcli.DefaultCommitValue
        20: var buildBranch = "main"
        21: var buildstamp string
        22:
        23: func main() {
        24:         app := MainApp()
        25:
        26:         if err := app.Run(os.Args); err != nil {
2025-02-10 08:43:31 -05:00
Ryan McKinley eced51bf85 do not write when errors exist 2025-02-10 15:54:34 +03:00
Ryan McKinley 21af97db09 Provisioning: Fix local Write so it generates parent folders (#100349) 2025-02-10 15:17:10 +03:00
Mariell Hoversholm f4fa66ae9c Provisioning: Reintroduce unauthenticated webhooks (#100336)
* Zanzana: Add Provisioning client

* Zanzana: Provisioning client should come late

* APIServer: Auth should let access policies through, falling back to API

* Zanzana: Use an Anonymous user to authenticate

* APIServer: Return earlier on anonymous users

* Zanzana: Align test with reality
2025-02-10 12:37:06 +01:00
Ryan McKinley ea38dfcbdc Provisioning: Refactor export to simplify loading from legacy storage (#100335) 2025-02-10 14:21:14 +03:00
Gábor Farkas 390b5eb6d4 go.mod: updated grafana-plugin-sdk-go (#100342)
* go.mod: update grafana-plugin-sdk-go

* make update-workspace
2025-02-10 11:38:30 +01:00
Roberto Jiménez Sánchez ec987901d6 [Provisioning] Move controller into a separate package (#100301)
* Move controller into separate package

* Fix linting
2025-02-10 11:33:48 +01:00
Ryan McKinley 732e2aae45 Provisioning: Use hardcoded access token rather than random admin user (#100101) 2025-02-10 13:07:55 +03:00
Roberto Jiménez Sánchez 05b5567da5 [Provisioning] Move validation logic to repository package (#100303)
* Move repository validation logic to repository folder
* Remove unused tester
2025-02-10 10:19:41 +01:00
Sam Jewell 45775dd6ad Skip flakey test (#100251) 2025-02-10 07:40:32 +00:00
Clarity-89 f57df9df99 Merge branch 'main' into grafana-git-ui-sync 2025-02-10 08:10:43 +02:00
Scott Lepper 378bb6ea3f [search] folder name lookup performance (#100154)
[search] use search for folder name lookup
2025-02-07 17:19:23 -05:00
Ryan McKinley 24cfb93ef6 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-07 23:28:21 +03:00
Ryan McKinley f185d2b5d2 Provisioning: Only make one patch request in the controller (#100310)
consolidate patch
2025-02-07 23:27:49 +03:00
Roberto Jiménez Sánchez 5d8f57a4a7 [Provisioning] Use Job Worker abstraction (#100292) 2025-02-07 23:25:12 +03:00
owensmallwood 196029f287 Unified Storage: Adds more spans to handleEvent (#100304)
adds more spans to handleEvent
2025-02-07 19:43:02 +01:00
Will Assis 7e11e604c7 [search] fix offset param in finddashboards (#100302)
* fix offset param in finddashboards

* separate offset from page in k8s search endponit
2025-02-07 13:24:27 -05:00
owensmallwood bf27e6d3ed Unified Storage: Fix legacy dashboard query when using continue token (#100244)
* query for rows less than the continue token LastID since the queries are sorted by dash ID in DESC order

* run dashboard query tests
2025-02-07 12:16:41 -06:00
Will Assis 7c9f47ac67 [search] handle folderids query param (#100223)
handle folderids query param
2025-02-07 12:24:21 -05:00
Alexander Akhmetov 97109b36e3 Update grafana/alerting package from 995709fe8d64 to 04c87cf39038 (#100293) 2025-02-07 18:38:22 +02:00
Fayzal Ghantiwala 7ae8058c8b Alerting: Return 404 when /api/ruler/grafana/api/v1/rules/{Namespace}/{Groupname} does not exist (#100264)
* Return a 404 when rule group doesn't exist

* Update tests

* Update swagger doc and tests
2025-02-07 16:24:28 +00:00
Mariell Hoversholm bd261794b2 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-07 15:39:00 +01:00
Mariell Hoversholm dfaa12b800 Provisioning: Sync API with current feature branch (#100252)
* Provisioning: Jobs: Define repository name field

* Provisioning: Jobs: Separate options per job type

* Provisioning: Define a sanitised settings resource

* Provisioning: Jobs: Define a job summary

* Provisioning: Remove linting

* Provisioning: Update docs for a few fields

* Provisioning: Remove HelloWorld

* Provisioning: Replace Repository with Message in job info

* Provisioning: Remove YAML support

* Provisioning: Remove custom folder specification

* Provisioning: Support read-only repositories

* Provisioning: Remove edit options

* Provisioning: Add sync options for repositories

* Provisioning: Add resource statistics

* Provisioning: Make slices atomic lists

* Provisioning: Message list needs to exist even if empty

If we don't do this, we can't clear the messages field, leading to buggy UX.

* Provisioning: Support incremental syncing

* Provisioning: Remove the 'items' subresource workaround

* Provisioning: Add resource list

* Provisioning: Reformat

* Provisioning: Declare new types

* OpenAPI: Generate openapi JSON spec from generated code

* Codegen: Generate OpenAPI spec

* Provisioning: Support generating frontend API

* Codegen: Generate Go code

* Provisioning: Define the base API

* Codegen: Generate frontend endpoints for provisioning

* Refactor: yarn prettier:write

* Provisioning: Tiger team takes ownership

* Chore: Remove dir we haven't added yet

* Provisioning: Remove frontend

* Test: Update example repositories
2025-02-07 15:35:55 +01:00
Torkel Ödegaard 9d7a4a53e4 Themes: Adds 1 more GrafanaCon theme (wip) (#100228)
* Themes: Gloom theme wip

* Themes: Gloom theme wip

* refactor

* A bit brown maybe?

* Update secondary to also be a bit brownish orangy

* Not super happy

* down a bit

* Progress

* Update

* Update

* orange primary again
2025-02-07 15:27:56 +01:00
Todd Treece 6af67197a7 Dual Writer: Remove list comparisons in mode 2 & 3 (#100215) 2025-02-07 09:17:53 -05:00
Mariell Hoversholm bdda4550b7 Merge remote-tracking branch 'refs/remotes/origin/grafana-git-ui-sync' into grafana-git-ui-sync 2025-02-07 14:16:03 +01:00
Mariell Hoversholm 4d732cb005 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-07 14:14:54 +01:00
Roberto Jiménez Sánchez ab1d02545e [Provisioning] Move renderer to pull request package (#100271)
Move renderer to pull request package
2025-02-07 14:10:37 +01:00
Roberto Jiménez Sánchez 26d3b125cc [Provisioning] Move Pull Request into its own package (#100270)
* Move pull request to separate package

* Fix linting
2025-02-07 13:52:16 +01:00