-
Notifications
You must be signed in to change notification settings - Fork 73
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 minor issues after introducing incremental JSON_PATCH merge #284
Fix minor issues after introducing incremental JSON_PATCH merge #284
Conversation
@marcaaron @tgolen all review comments adressed! 👍 |
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 for those changes. You'll get the hang of the comments in time, so keep working on them!
+1 to @tgolen's comments about comments :)
Also, I think this is a part that could be better explained in the comments as well. |
Ah i understand, didn't know, that that's why we added this manually for web. Gonna further explain this in the comments then! |
When building the batch of changes, we don't want to omit the null keys, because then this would happen: Changes like For creating the |
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.
Getting close!
Co-authored-by: Tim Golen <[email protected]>
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.
One small thing that needs to be addressed. Looks good - thanks for the changes!
One last thing 🥲 |
fixed! |
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 @tgolen and @marcaaron for pushing this forwards.
To unblock the other onyx caching PR, I am going to approve and merge this, given Tim already gave approval and the last changes requested by Marc has been addressed and they were just comments.
@marcaaron
Details
Fixing some issues i encountered while testing the
JSON_PATCH
merge changes in theExpensify/App
repo in this PRWhen batching the changes from
mergeQueue
, top-levelnull
values may not be omitted. Only when merging the final value, we can remove thesenull
values.Also added back a log line, that was removed in the other PR
Related Issues
Automated Tests
Linked PRs