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 blank lat/long GraphQL Site fields #2504

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

williamjallen
Copy link
Collaborator

Fixes #2502. The type for the latitude and longitude fields is a string in the database but a float in the API, which causes failures when empty strings are present. This PR converts the API type to a string to resolve the issue. In the future, it may be worth creating a custom scalar type for lat/long information.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

Great! Thanks for the quick fix.

@josephsnyder josephsnyder added this pull request to the merge queue Oct 16, 2024
Merged via the queue into Kitware:master with commit 33de13a Oct 16, 2024
6 checks passed
@williamjallen williamjallen deleted the graphql-site-bugfix branch October 16, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty string for Latitude/Longitude raises internal server error on GraphQL
2 participants