Skip to content

Bug: JSON-patches do not comply with the RFC-6902 standard #1077

Open
@Black1358

Description

Describe the bug

https://surrealdb.com/docs/surrealdb/integration/rpc#live-
RFC-6902 does not contain "change" patches.

12-12-2024 (21:39:05.971) [SDB]: 🔍 {
  result: {
    action: "UPDATE",
    id: "cd80a055-cbde-47f0-b581-959b443b1481",
    record: "category:f46wmdv0vqy0f50d7bqb",
    result: [
      {
        op: "change",
        path: "/title",
        value: "@@ -1,7 +1,7 @@\n-ABC %D0%90%D0%91%D0%A1\n+%D0%90%D0%91%D0%A1 ABC\n"
      }
    ]
  }
}

Steps to reproduce

  1. Use the RPC protocol
  2. Subscribe to any table
  3. Change some string field in the record

Expected behaviour

Implementaion RFC-6902
https://datatracker.ietf.org/doc/html/rfc6902

SurrealDB version

surrealdb-2.1.2

Contact Details

[email protected]

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions