-
Notifications
You must be signed in to change notification settings - Fork 94
#119 #120 Fix make_patch() to avoid casting numeric string to int on item moved #122
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
#119 #120 Fix make_patch() to avoid casting numeric string to int on item moved #122
Conversation
There seems to be an issue with a pypy build, but that seems unrelated to your pull request. I will have a closer look in the next days. |
Thanks 🙌 |
jsonpatch.py
Outdated
if type(op.key) == int: | ||
added_item = op.pointer.to_last(self.dst_doc)[0] | ||
if type(added_item) == list: |
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.
Could you please just add a comment here to clarify for posterity?
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.
I've done so now. Please let me know if there's anything else I should add in the comment. It was a bit difficult to express what the _on_undo_add call accomplishes and I think it'd be valuable to mention that.
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.
@stefankoegl kind reminder on this
Thanks :) |
Addresses #119 #120