Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-819

Generate empty delta as {} instead of null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.8.0
    • 2.5.0
    • SyncGateway
    • Security Level: Public
    • None

    Description

      A delta between two documents that have no changes is currently producing a value of null, but should produce a delta value of {}

      This is causing issues for CBL recieving a delta for an empty change (CBL-833)

       

      The fix for this is special handling specific to unchanged documents/roots, so take care when changing, because the main algorithm is recursive - unchanged objects that are nested should still be omitted from the delta. Maybe read a `null` value and transform it at a higher level for the root.

      Attachments

        Issue Links

          Activity

            People

              The One The One
              ben.brooks Ben Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty