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

Add a new rev option for document_changed event handler

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 3.0
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 64
    • 5

    Description

      The document_changed event handler is fired for every mutation of a document, even if that mutation was for a non-winning revision.

      There are use-cases where having a webhook fired only in the event of a winning revision change makes sense.

      Proposal:

      Add an EventHandler options map, to provide a way of specifying generic options for each handler.

      The document_changed webhook should use an opt-in option, that prevents the webhook from firing unless it's due to a new winning revision.

      Test scenarios

      Include positive and negative testing for events using new option.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty