Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-35853

Couchbase Native Audit | Views | Native audit for create/update/delete view shows the current state of all views instead of only the ones that were changed

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      Native audit example for deleting a view called "test-view":
      {"bucket":"my-bucket","ddoc_name":"dev_my-bucket","description":"Design Doc is Created or Updated","id":40960,"method":"put","name":"Create or Update Design Doc","real_userid":

      {"domain":"builtin","user":"Administrator"}

      ,"remote":

      {"ip":"127.0.0.1","port":51633}

      ,"status":201,"timestamp":"2019-09-08T17:02:32.098+03:00","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36","view_definition":{"views":{"my_view":{"map":"function (doc, meta)

      {\n emit(meta.id, \"bla\");\n}

      ","reduce":"_count"}}}}

      The deleted view is not displayed, since native audit shows the design document current state.

      Expected behavior for all view create/update/delete operations: get only the modified view/s.

      Attachments

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

        Activity

          People

            ankit.prabhu Ankit Prabhu
            sagi.lisker Sagi Lisker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty