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 typo: boolean, not Boolean in the VSS type system #18

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

elffjs
Copy link
Member

@elffjs elffjs commented Jun 7, 2024

Also use the same parameter name as the Go converter

Also use the same parameter name as the Go converter
Copy link

linear bot commented Jun 7, 2024

@@ -187,8 +187,8 @@ func splitAndSantizeName(name string) (string, string) {
}

// goTypeFromVSPEC converts vspec type to golang types.
func goTypeFromVSPEC(dataType string) string {
switch dataType {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying to make them match.

@@ -199,7 +199,8 @@ func goTypeFromVSPEC(dataType string) string {
// gqlTypeFromVSPEC converts vspec type to graphql types.
func gqlTypeFromVSPEC(baseType string) string {
switch baseType {
case "uint8", "int8", "uint16", "int16", "uint32", "int32", "float", "double", "uint64", "int64", "Boolean":
// TODO(elffjs): Unify the lists between here and goTypeFromVSPEC?
case "uint8", "int8", "uint16", "int16", "uint32", "int32", "uint64", "int64", "float", "double", "boolean":
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reordered the list to match, but the big thing is the casing.

@elffjs elffjs marked this pull request as ready for review June 7, 2024 18:07
@elffjs elffjs requested a review from Allyson-English June 7, 2024 18:07
@elffjs elffjs merged commit caed78c into main Jun 7, 2024
3 checks passed
@elffjs elffjs deleted the feature/si-2708-vspec-booleans-missing-in-telemetry branch June 7, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant