Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty values generated for maps and arrays in go #666

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

K-Phoen
Copy link
Member

@K-Phoen K-Phoen commented Nov 26, 2024

Relates to #653

Builders sometimes need to perform initializations with empty values before performing the "main" assignment(s).

See https://github.com/grafana/grafana-foundation-sdk/blob/2f6cab6e04b60c66f3bf4314f83e16fe5c8a06fa/go/timeseries/panel_builder_gen.go#L490

This PR ensures that we generate correct empty values for arrays and maps (we don't actually have a schema that needs those... yet: dashboards v2 will).

@K-Phoen K-Phoen added area:jennies go Pull requests that update Go code labels Nov 26, 2024
@K-Phoen K-Phoen self-assigned this Nov 26, 2024
@K-Phoen K-Phoen requested a review from a team as a code owner November 26, 2024 22:37
Copy link

Note: the diff show code changes that would be introduced by this PR to the Foundation SDK. Changes already on main are excluded.

🔎 Changes to grafana-foundation-sdk@next+cog-v0.0.x

@K-Phoen K-Phoen merged commit 24da3e8 into main Nov 28, 2024
14 checks passed
@K-Phoen K-Phoen deleted the go/array-map-empty-value branch November 28, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:jennies go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants