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

Support for null values #160

Merged
merged 2 commits into from
Mar 14, 2021
Merged

Support for null values #160

merged 2 commits into from
Mar 14, 2021

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Mar 13, 2021

What this PR does / why we need it:

Support for null values.

Which issue(s) this PR fixes:

Fixes yorkie-team/yorkie-js-sdk#156

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

@hackerwins hackerwins added the enhancement 🌟 New feature or request label Mar 13, 2021
@codecov
Copy link

codecov bot commented Mar 13, 2021

Codecov Report

Merging #160 (d256a82) into main (b24df02) will increase coverage by 1.26%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #160      +/-   ##
==========================================
+ Coverage   57.48%   58.75%   +1.26%     
==========================================
  Files          37       37              
  Lines        3262     3280      +18     
==========================================
+ Hits         1875     1927      +52     
+ Misses       1202     1166      -36     
- Partials      185      187       +2     
Impacted Files Coverage Δ
api/converter/from_pb.go 67.10% <50.00%> (-0.19%) ⬇️
api/converter/to_pb.go 85.65% <100.00%> (+0.11%) ⬆️
pkg/document/json/primitive.go 62.79% <100.00%> (+34.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b24df02...d256a82. Read the comment docs.

@hackerwins hackerwins force-pushed the null-value branch 4 times, most recently from 4ff5d6c to 39ad65f Compare March 13, 2021 10:24
Copy link
Member

@ppeeou ppeeou left a comment

Choose a reason for hiding this comment

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

I confirmed that it works with yorkie-js-sdk.

Copy link
Member

@mojosoeun mojosoeun left a comment

Choose a reason for hiding this comment

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

LGTM! I left a comment for a minor thing

@@ -67,6 +67,7 @@ func TestConverter(t *testing.T) {
err := doc.Update(func(root *proxy.ObjectProxy) error {
// an object and primitive types
root.SetNewObject("k1").
SetNull("k.1.0").
Copy link
Member

Choose a reason for hiding this comment

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

I'm curious about "k.1.0". 🤔 Is it different with "k1.0"?

Copy link
Member Author

Choose a reason for hiding this comment

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

@mojosoeun No. It's just a key. I will change it to the same pattern as the other keys.

@ppeeou ppeeou removed their assignment Mar 14, 2021
Copy link
Member

@dc7303 dc7303 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@dc7303 dc7303 assigned hackerwins and unassigned mojosoeun and dc7303 Mar 14, 2021
@hackerwins hackerwins merged commit a05e19a into main Mar 14, 2021
@hackerwins hackerwins deleted the null-value branch March 14, 2021 06:26
jeonjonghyeok pushed a commit to jeonjonghyeok/yorkie that referenced this pull request Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

object with null value attribute handling
4 participants