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

PLIN-3287: basic handling for pointers #94

Merged
merged 2 commits into from
Feb 3, 2022

Conversation

njdullea
Copy link
Contributor

@njdullea njdullea commented Jan 13, 2022

Issue Link

https://skuidify.atlassian.net/browse/PLIN-3287

High-Level Description

This PR updates picard's serialization of json blobs. Before, if the value was a pointer to a pointer to null, the null would be populated as the literal string value "null". Now, it populates the value with the proper postgresql null.

Additionally, it updates the hydration for field properties that are pointers. This allows warden to serialize and deserialize fields as null, and then differentiate what properties were actually provided in an update request.

Changelog:

  • picard.go: Handling for serialization of json blobs where the value is a pointer to a pointer to null.
  • query/hydrate.go: Handling hydration of field properties which are pointers.

Related PR

https://github.com/skuid/warden/pull/434

@njdullea njdullea requested a review from acofer as a code owner January 13, 2022 15:07
@njdullea njdullea requested a review from a team January 13, 2022 15:40
jredh
jredh previously approved these changes Jan 21, 2022
Copy link
Contributor

@adewaal adewaal left a comment

Choose a reason for hiding this comment

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

Looks good!

@njdullea njdullea changed the title PLIN-3287: handling value as null pointer in serialize jsonb column PLIN-3287: basic handling for pointers Feb 2, 2022
@njdullea njdullea merged commit fd5471d into master Feb 3, 2022
@njdullea njdullea deleted the PLIN-3287-skuid-db-default-value branch February 3, 2022 23:12
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.

4 participants