Commit Graph
388 Commits
Author SHA1 Message Date
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
Mariell Hoversholm a600cc6eb7 POC/Provisioning: Import: Apply folder nesting properly (#97143) 2024-11-28 14:03:26 +01: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
Mariell Hoversholm 2cc3fd7392 feat: pass resources directly 2024-11-28 09:39:44 +01:00
Ryan McKinleyandMariell Hoversholm 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
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
Mariell Hoversholm a990f67b51 POC/Provisioning: Import: Don't set folder if one should not be set 2024-11-27 15:22:41 +01:00
Ryan McKinley 210b956917 POC/Provisioing: Show list in API (#97090) 2024-11-27 17:09:59 +03:00
Mariell Hoversholm b5b43112d1 POC/Provisioning: Import: Create and set the appropriate folder (#97097) 2024-11-27 14:40:40 +01:00
Roberto Jiménez Sánchez 364637a7e2 [Prototyping] Listen to pull requests and comment (#97040)
* Listen to Pull Requests and comment

* Fix template
2024-11-27 10:38:10 +01:00
Mariell Hoversholm ee91485b32 POC/Provisioning: Create an import endpoint (#97085)
* wip

* fix: don't panic on dirs

* fix: workaround dashboard Get returning 500 on 404
2024-11-27 10:10:29 +01:00
Carl Bergquist 21bd47e512 scopes: behind its own feature flag (#97077)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-11-27 08:58:25 +01:00
Ryan McKinley 552a13f0ec fix lint 2024-11-27 09:57:33 +03:00
Ryan McKinley 7a7d6d0c2d POC/Provisioning: Use a single feature toggle to turn on required APIs (#97075) 2024-11-27 09:29:31 +03:00
Ryan McKinley 03c43ae467 merge main 2024-11-27 09:26:00 +03:00
Ryan McKinley f6ccf976e5 UnifiedSearch: Use ResourceIndex from dashboards apiserver (v0alpha1 only) (#96939) 2024-11-27 07:57:53 +02:00
Roberto Jiménez Sánchez 5327c321f1 [Prototyping] validate branch name in backend (#97061)
* Validate branch name

* Add more positive cases

* Make the logic more readable
2024-11-26 20:55:37 +01:00
Roberto Jiménez Sánchez baca7c250e [Prototyping] Ensure git branch exists in write operations for github repositories (#96998)
* Create branch when ref is passed

* Change approach to ensure branch already exists

* Fix error handling branch not found
2024-11-26 12:26:04 +01:00
Ryan McKinley 8a2e233dcd POC/Provisioning: Fail read/write when we can not find a valid GVR (#97020)
GRV
2024-11-26 09:44:20 +01:00
Karl Persson 3990637af9 IAM: remove duplicated functions (#96989)
* Remove duplicated function and use the one provided by claims package
2024-11-26 09:22:45 +01:00
Ryan McKinley 3640752dd0 add more reserved names 2024-11-26 10:12:30 +03:00
Mariell Hoversholm eed0c9f2f4 feat: ignore gh cancel 2024-11-25 16:07:12 +01:00
Mariell Hoversholm cc27ce5a5d POC/Provisioning: Export: Add upsert functionality (#96985)
* POC/Provisioning: Export: Add upsert functionality

* fix: handle 404 properly
2024-11-25 15:13:13 +01:00
Ryan McKinley d4c5171f4a POC/Provisioning: Add ref+message to openapi (#96981) 2024-11-25 15:40:01 +03:00
Mariell Hoversholm 17582a3054 feat: pass around logger properly 2024-11-25 13:36:00 +01:00
Mariell Hoversholm cb72f89dfb feat: add more logs 2024-11-25 13:02:27 +01:00
Mariell Hoversholm de2807059f fix: set kind when parsing raw dashboards 2024-11-25 13:02:26 +01:00
Ryan McKinleyandClarity-89 0527d0ccbe POC/Provisioning: Move the save UI to its own file (#96966)
Co-authored-by: Clarity-89 <homes89@ukr.net>
2024-11-25 14:15:29 +03:00
Mariell Hoversholm 42e9570808 POC/Provisioning: Fix: Make github client not call prod GH in tests (#96926)
* refactor: create repository package

* refactor: abstract GH client

* feat: generate mock

* feat: wire in factories

* test: make tests pass

* chore: go fmt
2024-11-25 11:51:29 +01:00
Ryan McKinley 7d61a312da POC/Provisioning: Include the ref parameter everywhere (#96969) 2024-11-25 12:09:51 +03:00
Ryan McKinley ac998121e4 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-11-25 09:15:47 +03:00
Ryan McKinley 94262fd095 Search: expose search on dashboard apiserver (v0alpha1) (#96907) 2024-11-22 22:26:56 +02:00
Leonor Oliveira 2a74778776 Support delete endpoint for folders (#96573)
* Support delete endpoint for folders

* Include authorizer

* Add test for delete verb

* Add delete command to delete options

* Pass query string to context to admission

* Dont support nested folder deletion for now

* Skip test if feature flag is present

* Add test case

* Remove comment

* Only rely on the storage type config to run alerting tests

* Dont change legacy subpath

* Remove unised function

* Add test case when an editor can delete alert rules

* Lint
2024-11-22 16:51:53 +01:00
Ryan McKinley 5d4de8d8f3 POC/Provisioning: Support write (after dryRun) (#96919)
now writing
2024-11-22 14:48:49 +01:00
maiconandArati R. bbae396db4 Unistore: Add GetFolders endpoint backed by UnifiedStorage (#96399)
* Unistore: Add GetFolders endpoint backed by UnifiedStorage

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>

---------

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2024-11-22 10:38:00 -03:00
Artur Wierzbicki b7f9ed52b0 POC/Provisioning: Support ping event (#96893)
support ping event
2024-11-22 12:12:16 +01:00
Mariell Hoversholm 85dc952969 feat: use new provisioning flag 2024-11-22 12:10:15 +01:00
Mariell Hoversholm cfe36270f5 POC/Provisioning: create folder if it does not exist (#96890)
* feat: create folder if it does not exist

* feat: test the folder creation behaviour

* test: make sure deletion doesn't fail

* test: remove unnecessary settings
2024-11-22 12:03:46 +01:00
Mariell Hoversholm 36f588fbef fix: use new lookup for exports
(cherry picked from commit 33762d33bc)
2024-11-22 09:19:00 +01:00
Mariell Hoversholm a04421556e feat: export metadata-less YAML resources (#96829)
* feat: export metadata-less YAML resources

* feat: add option to prefer YAML

(cherry picked from commit ed0db3d0e0)
2024-11-22 09:18:56 +01:00
Ryan McKinley cc09fd5976 POC/Provisioning: Parse and validate objects from repo (#96822)
(cherry picked from commit 079f47221d)
2024-11-22 09:18:50 +01:00
Mariell Hoversholm 1aede325f2 POC/Prototype: Provisioning: add export endpoint (#96815)
* feat: add export endpoint

This is not at all complete, but acts as a good base.

* chore: more todos

* feat: fetch folders and their parents

* feat: export to folders

* refactor: use constant for folder key

(cherry picked from commit d403f5255e)
2024-11-22 09:18:41 +01:00
Ryan McKinley bad1547479 POC/Provisioning: rename "file" to "files" (#96814)
(cherry picked from commit f46ba6eba2)
2024-11-22 09:18:29 +01:00
Ryan McKinley 08e8b8b392 no tabs in yaml
(cherry picked from commit 303ea39218)
2024-11-22 09:18:16 +01:00
Ryan McKinley 3328952a48 no tabs in yaml
(cherry picked from commit 738e1c983f)
2024-11-22 09:18:08 +01:00
Ryan McKinley bc79537fee update
(cherry picked from commit dedfcfd33f)
2024-11-22 09:18:02 +01:00
Mariell Hoversholm 38538d7a88 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-11-22 09:16:34 +01:00
Ryan McKinley 82b47c3e79 POC/Provisioning: Return FileInfo from read (not just bytes) (#96813) 2024-11-21 10:37:32 +03:00