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
This commit is contained in:
Mariell Hoversholm
2025-02-07 15:35:55 +01:00
committed by GitHub
parent 9d7a4a53e4
commit dfaa12b800
20 changed files with 3516 additions and 286 deletions
+7 -6
View File
@@ -8,11 +8,6 @@
"title": "Github Example",
"description": "load resources from github",
"type": "github",
"editing": {
"create": true,
"update": true,
"delete": true
},
"github": {
"owner": "grafana",
"repository": "git-ui-sync-demo",
@@ -20,6 +15,12 @@
"branchWorkflow": true,
"generateDashboardPreviews": true,
"token": "github_pat_dummy"
}
},
"sync": {
"enabled": false,
"target": "",
"intervalSeconds": 60
},
"readOnly": false
}
}
+5 -4
View File
@@ -7,10 +7,11 @@
"spec": {
"title": "Load devenv dashboards",
"description": "Load /devenv/dev-dashboards (from root of repository)",
"editing": {
"create": true,
"update": true,
"delete": true
"readOnly": false,
"sync": {
"enabled": true,
"target": "mirror",
"intervalSeconds": 60
},
"type": "local",
"local": {