Skip to content

Bug in json-patch-ot transforming str_ins+str_del at same position or with different paths #942

@atsjo

Description

@atsjo

When trying to find a fix for issue #941 I stumbled across PR #900. It did not solve my issue 941, but I verified it solved two other problems I hadn't discovered yet:-)

  • str_ins data is not included when transformed with a str_del at same position
  • str_ins and str_del transforms against str_ins and str_del with different paths

I verified the PR and all tests pass, and I also incorporated the fixes into my own custom transformer fixing my other problem, so I think it's worth merging #900 to fix these issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions