Details

    • Technical task
    • Resolution: Fixed
    • Major
    • None
    • 3.1.x
    • sync-gateway
    • None

    Description

      Context:

      Example 1
      Example 1 doesn’t include valid javascript, I’d change this to:
      function (doc, oldDoc, meta) {
      channel("collectionname");
      }
      And say that collection name is the name of the collection as defined in scope - this doesn’t include bucket or scope name. This is not the default sync function if collections are enabled. That’s actually, and maybe work :
      function (doc, oldDoc, meta) {
      channel(doc.channels);
      }
      Example 2Example 2 is confusing because this was the old sync function and still used if you aren’t using collections. I’d change this to be something totally different like:
      function (doc, oldDoc, meta) {
      channel("channel1");
      }

      Slack chat: https://couchbase.slack.com/archives/C058D6P4BK7/p1685958978983779

      CC Tor Colvin Iveta Dulova 

      Attachments

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

        Activity

          People

            Francis.roberts Francis Roberts
            Francis.roberts Francis Roberts
            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