Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-10583

Need to specify the metadata on the import doc object for deletion processing

Details

    • Bug
    • Resolution: Unresolved
    • Test Blocker
    • None
    • None
    • None

    Description

      The documentation does not specify the fact that

      • _deleted will show on the document object
      • _id and _rev will not show on the document object

      I would also expect that as an importer would in many cases manage deletion of extant objects, that the example code be included to have a

      ```
      if (doc._deleted == true)

      { return true; }

      ```

      with a comment to specify why this is required. Else - its easy to make a footgun where you only process created or updated documents based on a document key, but deletions are ignored.

      Reporter: Andrew Lipscomb
      E-mail: andrew.lipscomb@swarmfarm.com

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            elliot.hunter Elliot Hunter
            ALTinners Andrew Lipscomb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty