Skip to content

Return no updates when performing an NX set to an existing array element #593

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

Merged
merged 5 commits into from
Jan 9, 2022

Conversation

EricRabil
Copy link
Contributor

This PR addresses #592, although I'd like some feedback from other contributors on how I fixed it as I'm not sure if this is intentional behavior.

This does not modify the mutations made to the document, but instead stops returning an out-of-range error when doing an NX set to an array element that is, in fact, in range.

@CLAassistant
Copy link

CLAassistant commented Dec 26, 2021

CLA assistant check
All committers have signed the CLA.

@gkorland gkorland requested a review from oshadmi December 26, 2021 05:46
@oshadmi
Copy link
Collaborator

oshadmi commented Dec 26, 2021

Related comment

@oshadmi
Copy link
Collaborator

oshadmi commented Dec 28, 2021

@EricRabil Thank you for your fix. It looks good. We will be happy to merge it once tests are added.
Please let us know if you are available to add tests (if not, we will add)

@EricRabil
Copy link
Contributor Author

EricRabil commented Dec 28, 2021

Awesome. I'll add tests within the next day

@EricRabil
Copy link
Contributor Author

@oshadmi tests have been added, let me know if you'd like any changes to be made to them.

Copy link
Collaborator

@oshadmi oshadmi left a comment

Choose a reason for hiding this comment

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

Minor addition.
Thanks!

Co-authored-by: Omer Shadmi <76992134+oshadmi@users.noreply.github.com>
@EricRabil
Copy link
Contributor Author

@oshadmi do you have any additional changes for me to make?

@codecov
Copy link

codecov bot commented Jan 9, 2022

Codecov Report

Merging #593 (ef3d10a) into master (13a668a) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #593      +/-   ##
==========================================
+ Coverage   82.99%   83.02%   +0.03%     
==========================================
  Files          11       11              
  Lines        3116     3123       +7     
==========================================
+ Hits         2586     2593       +7     
  Misses        530      530              
Impacted Files Coverage Δ
src/commands.rs 95.33% <100.00%> (+0.02%) ⬆️

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 13a668a...ef3d10a. Read the comment docs.

Copy link
Collaborator

@oshadmi oshadmi left a comment

Choose a reason for hiding this comment

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

👍🏼

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.

Using NX when setting to an existing array element returns index out of range
3 participants