grafana/scripts
sam boyer be06d37a20
schema: Generate Go and Typescript from Thema coremodels (#49193)
* Add go code generator for coremodels

* Just generate the entire coremodel for now

Maybe we'll need more flexibility as more coremodels are added, but for
now this is fine.

* Add note on type comment about stability, grodkit

* Remove local replace directive for thema

* Generate typescript from coremodel

* Update pkg/coremodel/dashboard/addenda.go

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

* Update cuetsy to new release

* Update thema to latest

* Fix enum generation for FieldColorModeId

* Put main generated object at the end of the file

* Tweaks to generated Go output

* Retweak back to var

* Add generated coremodel test

* Remove local replace statement again

* Add Make target and call into cuetsy cmd from gen

* Rename and comment linsrc for readability

* Move key codegen bits into reusable package

* Move body of cuetsifier into codegen pkg

Also genericize the diffing output into reusable WriteDiffer.

* Refactor coremodel generator to use WriteDiffer

* Add gen-cue step to CI

* Whip all the codegen automation into shape

* Add simplistic coremodel canonicality controls

* Remove erroneously committed test

* Bump thema version

* Remove dead code

* Improve wording of non-canonicality comment

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-05-27 03:21:37 +02:00
..
build Chore: Update Go version (#47914) 2022-04-20 09:14:12 +02:00
cli Chore: Generate JSON theme files (#48762) 2022-05-05 15:35:08 +02:00
drone schema: Generate Go and Typescript from Thema coremodels (#49193) 2022-05-27 03:21:37 +02:00
go Chore: Update to Golang 1.17 (#38608) 2021-08-31 09:19:26 +03:00
grafana-server CI: Make e2e tests depend on binary builds (#44647) 2022-02-02 12:40:22 +02:00
helpers Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
verify-repo-update Release: downgrade to centos 7 in verify repo as 8 doesn't have a valid mirror list (#48422) 2022-04-28 14:28:41 +02:00
webpack Build: Enable long term caching for frontend assets (#47625) 2022-05-26 11:49:18 +02:00
benchmark-access-control.sh Access control: Basic structure and functionality behind feature toggle (#31893) 2021-03-22 13:22:48 +01:00
check-breaking-changes.sh Chore: Make detect breaking changes workflow backport compatible (#45005) 2022-02-08 11:33:33 +01:00
ci-frontend-metrics.sh Chore: Report betterer stats in ci-frontend-metrics (#47210) 2022-04-04 12:43:23 +02:00
ci-job-failed.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
ci-job-started.sh Build: Reports times and outcomes from CircleCI jobs (#20474) 2019-11-20 07:21:07 +01:00
ci-job-succeeded.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
ci-reference-docs-build.sh Build: added steps to generate packages api documentation. (#27930) 2020-10-14 14:35:55 +02:00
ci-reference-docs-lint.sh Make script not fail if reports/docs directory doesn't exist (#41527) 2021-11-10 18:07:39 +02:00
circle-release-canary-packages.sh npm/canary: Fix typo in publish script (#43020) 2021-12-13 10:38:31 +01:00
circle-test-backend.sh Chore: Upgrade to Go 1.14 (#23371) 2020-04-08 14:13:05 +02:00
circle-test-cache-servers.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
circle-test-frontend.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
circle-test-mysql.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
circle-test-postgres.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
clean-git-or-error.sh Do codegen and check no-diff of all (non-blacklisted) CUE->TS codegen during CI (#39922) 2021-10-08 08:47:55 -04:00
generate-a11y-report.sh E2E: Rename end-to-end-tests-server to grafana-server (#44249) 2022-01-20 17:01:00 +00:00
import_many_dashboards.sh ci-build: spelling (#24386) 2020-05-18 16:41:06 +03:00
mixin-check.sh Add monitoring mixing for Grafana (#28285) 2020-10-15 17:05:56 +02:00
protobuf-check.sh Backend plugins: Renderer v2 plugin (#23625) 2020-04-21 16:16:41 +02:00
stripnulls.sh schema: Finish converting dashboard schema datasource references to objects (#47806) 2022-04-15 19:41:07 +02:00
tag_release.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
trigger_docker_build.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
trigger_grafana_packer.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
trigger_windows_build.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
validate-devenv-dashboards.sh Scuemata: Add test to validate devenv resources (#35810) 2021-07-15 20:08:03 -04:00