Skip to content

Commit

Permalink
updated kindsys - same errors but much nicer error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mildwonkey committed Jun 21, 2023
1 parent 40cc643 commit 9d83a3d
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 137 deletions.
48 changes: 20 additions & 28 deletions dashmig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,80 +7,72 @@ goal: add a dashboard schema to our existing lineage that fits the v38 dashboard
Currenlty blocked on Validate() errors returned from what I _think_ are valid fields:

```
validation against latest schema failed: no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.annotations: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
go run main.go -in simpledash.json
lineage._sortedSchemas.0._#schema.editable: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.fiscalYearStartMonth: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
validation against latest schema failed: no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.graphTooltip: field not allowed
lineage.schemas.0._#schema.editable: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.links: field not allowed
lineage.schemas.0._#schema.fiscalYearStartMonth: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.liveNow: field not allowed
lineage.schemas.0._#schema.graphTooltip: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.panels: field not allowed
lineage.schemas.0._#schema.links: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.refresh: field not allowed
lineage.schemas.0._#schema.liveNow: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.schemaVersion: field not allowed
lineage.schemas.0._#schema.refresh: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.style: field not allowed
lineage.schemas.0._#schema.schemaVersion: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.tags: field not allowed
lineage.schemas.0._#schema.style: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.templating: field not allowed
lineage.schemas.0._#schema.tags: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.time: field not allowed
lineage.schemas.0._#schema.time: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.timepicker: field not allowed
lineage.schemas.0._#schema.timepicker: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.timezone: field not allowed
lineage.schemas.0._#schema.timezone: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.title: field not allowed
lineage.schemas.0._#schema.title: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.uid: field not allowed
lineage.schemas.0._#schema.uid: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.version: field not allowed
lineage.schemas.0._#schema.version: field not allowed
no Thema handler for CUE error, please file an issue against github.com/grafana/thema
to improve this error output!
lineage._sortedSchemas.0._#schema.weekStart: field not allowed
lineage.schemas.0._#schema.weekStart: field not allowed
ValidateAny returned a nil instance
exit status 1
```
41 changes: 21 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ require (
github.com/uber/jaeger-client-go v2.29.1+incompatible // indirect
github.com/urfave/cli/v2 v2.25.0
github.com/vectordotdev/go-datemath v0.1.1-0.20220323213446-f3954d0b18ae
github.com/yalue/merged_fs v1.2.2
github.com/yalue/merged_fs v1.2.3
github.com/yudai/gojsondiff v1.0.0
go.opentelemetry.io/collector v0.31.0
go.opentelemetry.io/collector/model v0.31.0
Expand All @@ -106,13 +106,13 @@ require (
go.opentelemetry.io/otel/exporters/jaeger v1.0.0
go.opentelemetry.io/otel/sdk v1.14.0
go.opentelemetry.io/otel/trace v1.14.0
golang.org/x/crypto v0.7.0
golang.org/x/crypto v0.10.0
golang.org/x/exp v0.0.0-20230307190834-24139beb5833
golang.org/x/net v0.9.0
golang.org/x/net v0.11.0
golang.org/x/oauth2 v0.6.0
golang.org/x/sync v0.1.0
golang.org/x/sync v0.3.0
golang.org/x/time v0.3.0
golang.org/x/tools v0.7.0
golang.org/x/tools v0.10.0
gonum.org/v1/gonum v0.11.0
google.golang.org/api v0.111.0
google.golang.org/grpc v1.54.0
Expand All @@ -122,7 +122,7 @@ require (
gopkg.in/mail.v2 v2.3.1
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1
xorm.io/builder v0.3.6
xorm.io/builder v0.3.6 // indirect
xorm.io/core v0.7.3
xorm.io/xorm v0.8.2
)
Expand All @@ -137,7 +137,7 @@ require (
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/FZambia/eagle v0.0.2 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/andybalholm/brotli v1.0.4
github.com/andybalholm/brotli v1.0.5
github.com/apache/arrow/go/arrow v0.0.0-20211112161151-bc219186db40 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/beorn7/perks v1.0.1 // indirect
Expand All @@ -151,7 +151,7 @@ require (
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/emicklei/proto v1.10.0 // indirect
github.com/emicklei/proto v1.11.2 // indirect
github.com/go-kit/log v0.2.1
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-openapi/analysis v0.21.4 // indirect
Expand All @@ -165,7 +165,7 @@ require (
github.com/go-openapi/validate v0.22.1 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/glog v1.1.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3
github.com/google/btree v1.1.2 // indirect
Expand Down Expand Up @@ -201,7 +201,7 @@ require (
github.com/prometheus/common/sigv4 v0.1.0 // indirect
github.com/prometheus/exporter-toolkit v0.9.1 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/protocolbuffers/txtpbfmt v0.0.0-20220428173112-74888fd59c2b // indirect
github.com/protocolbuffers/txtpbfmt v0.0.0-20230412060525-fa9f017c0ded // indirect
github.com/rs/cors v1.9.0 // indirect
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 // indirect
github.com/segmentio/encoding v0.3.6 // indirect
Expand All @@ -217,8 +217,8 @@ require (
go.opencensus.io v0.24.0 // indirect
go.uber.org/atomic v1.10.0
go.uber.org/goleak v1.2.1 // indirect
golang.org/x/sys v0.7.0 // indirect
golang.org/x/text v0.9.0
golang.org/x/sys v0.9.0 // indirect
golang.org/x/text v0.10.0
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1
Expand Down Expand Up @@ -264,7 +264,7 @@ require (
github.com/grafana/dataplane/examples v0.0.0-20230404174214-4d6fd58a18ad
github.com/grafana/dataplane/sdata v0.0.6
github.com/grafana/go-mssqldb v0.9.1
github.com/grafana/kindsys v0.0.0-20230508162304-452481b63482
github.com/grafana/kindsys v0.0.0-20230615185749-1424263c17c7
github.com/grafana/thema v0.0.0-20230615161902-b6e21996aef8
github.com/ory/fosite v0.44.1-0.20230317114349-45a6785cc54f
github.com/redis/go-redis/v9 v9.0.2
Expand All @@ -287,9 +287,9 @@ require (
github.com/bmatcuk/doublestar v1.1.1 // indirect
github.com/buildkite/yaml v2.1.0+incompatible // indirect
github.com/cloudflare/circl v1.1.0 // indirect
github.com/cockroachdb/errors v1.9.1 // indirect
github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f // indirect
github.com/cockroachdb/redact v1.1.3 // indirect
github.com/cockroachdb/errors v1.10.0 // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/cristalhq/jwt/v4 v4.0.2 // indirect
Expand All @@ -305,7 +305,7 @@ require (
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/ecordell/optgen v0.0.6 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/getsentry/sentry-go v0.12.0 // indirect
github.com/getsentry/sentry-go v0.22.0 // indirect
github.com/go-asn1-ber/asn1-ber v1.5.4 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
Expand Down Expand Up @@ -340,7 +340,7 @@ require (
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/perimeterx/marshmallow v1.1.4 // indirect
github.com/rivo/uniseg v0.3.4 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
github.com/rueian/rueidis v0.0.100-go1.18 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/segmentio/asm v1.2.0 // indirect
Expand All @@ -356,6 +356,7 @@ require (
github.com/unknwon/log v0.0.0-20150304194804-e617c87089d3 // indirect
github.com/weaveworks/promrus v1.2.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/yudai/pp v2.0.1+incompatible // indirect
github.com/yuin/gopher-lua v1.1.0 // indirect
go.opentelemetry.io/otel/metric v0.37.0 // indirect
go.starlark.net v0.0.0-20221020143700-22309ac47eac // indirect
Expand Down Expand Up @@ -404,7 +405,7 @@ require (
github.com/imdario/mergo v0.3.13 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
github.com/klauspost/compress v1.15.13 // indirect
github.com/klauspost/compress v1.16.0 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/labstack/echo/v4 v4.10.2 // indirect
github.com/labstack/gommon v0.4.0 // indirect
Expand All @@ -418,7 +419,7 @@ require (
github.com/xlab/treeprint v1.1.0
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.14.0 // indirect
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
golang.org/x/mod v0.9.0 // indirect
golang.org/x/mod v0.11.0
gopkg.in/warnings.v0 v0.1.2 // indirect
)

Expand Down
Loading

0 comments on commit 9d83a3d

Please sign in to comment.