-
Notifications
You must be signed in to change notification settings - Fork 56
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
refactor: Use fastjson to parse mutation data string #772
Merged
fredcarle
merged 10 commits into
develop
from
fredcarle/refactor/I124-validate-field-schema
Sep 13, 2022
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2305106
change to fastjson for field validation
fredcarle fec052c
merge convertNillableArray with getArray
fredcarle aa2f875
change to zeroValue as the determinator of nillable array
fredcarle 5c2495b
remove unnecessary declarations
fredcarle fe6f0be
apply feedback
fredcarle 1378437
apply feedback
fredcarle bb15112
add unit test
fredcarle a911ead
remove linting from unused patch related functions
fredcarle d6502df
move test to integration
fredcarle f0275c5
implement feedback
fredcarle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: Thanks for this type change - this always confused me and I thought there was more types that this could handle but the diff suggests it was just the two. Do check in with John though if you haven't already to make sure we are not losing anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :)
As far as I could tell the value passed was always a string but yes I will be checking with John.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea was to be able to support native Go types
map[string]interface{}
If using the programatic approach, but at the moment, its only used/tested from the POV of the query system, which only handles strings.I would nice to still support this, but its prob lower priority, and supporting native types gets in the way of using the
fastjson
approach outlined in this PR anyway. So its fine for now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a look at the last commit for a potential solution to keep Go maps as a possible
updater