cog icon indicating copy to clipboard operation
cog copied to clipboard

Code Generation with a human touch

Results 69 cog issues
Sort by recently updated
recently updated
newest added

See: https://github.com/grafana/grafana-foundation-sdk/issues/36 Temporarily patched with https://github.com/grafana/cog/pull/240, until the schemas are updated

area:schemas

This issue is to investigate if there is a easy way to do this change: Currently we have: ```go type AssignmentValue struct { Argument *Argument `json:",omitempty"` Constant any `json:",omitempty"` Envelope...

area:IR
language:java

Java doesn't support interfaces. The current solution is ignoring Maps and Arrays from the root files and when we found a field that uses a map or an array, we...

language:java

We have [this](https://github.com/grafana/cog/blob/main/internal/ast/compiler/cloudwatch.go#L58) veneer for [this line](https://github.com/grafana/kind-registry/blob/main/grafana/next/composable/cloudwatch/dataquery.cue#L135) that generates only an array of `QueryEditorExpression` instead the disjunct. But we can see that this array could have multiple values (since its...

area:veneers

When we have a struct that extend from another one and it overrides one of its fields with another struct, it extends its fields instead of used the new value....

bug
area:parsers

Cue and OpenAPI are parsing times as string for Go when we are expecting `time.Time`.

area:jennies

Include information about how the library is working.

documentation

There are some places in the code that should never be reached ©, but no error would bubble up if we reached them. We need proper error handling/bubbling for these...

enhancement
language:golang
area:jennies

[Some of our existing Cue schemas](https://github.com/grafana/grafana/blob/b4ac0eee54e49dae8666a7b50fb0cf2dea05b718/packages/grafana-schema/src/common/dimensions.cue#L11) use similar concepts, and cuetsy supports generating Typescript [code that relies on extending types](https://github.com/grafana/grafana/blob/4f5728233c8994b47cd7904b2c66927c803f2a91/packages/grafana-schema/src/common/common.gen.ts#L66-L71). Should we support it in cog as well?

language:typescript
area:parsers
area:IR
area:jennies

Bumps cuelang.org/go from 0.8.2 to 0.10.0. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cuelang.org/go&package-manager=go_modules&previous-version=0.8.2&new-version=0.10.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...

dependencies
go