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

The view engine event types use mixed JSON styles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • view-engine
    • None
    • Untriaged
    • 1
    • No

    Description

      What's the issue?
      The events generated/reported by the view engine currently uses different style types for keys (camel case, and snake case).

      Event

      {
            "timestamp": "2021-10-07T10:33:40.813Z",
            "uuid": "7937b32e-1d16-6fe5-df20-33f5bd031ab9",
            "event_id": 10243,
            "component": "views",
            "description": "view engine settings changed",
            "severity": "info",
            "extra_attributes": {
              "section": "security",
              "key": "audit",
              "oldValue": "undefined",
              "newValue": "[{audit_enabled,false},{disabled_users,[]},{enabled_events,[]}]"
            },
            "node": "cb.local"
          }
      

      I'm specifically referring to 'oldValue' and 'newValue'; as a user/consumer of events, it would be nicer/easier to use if we stuck to one style across the board if possible.

      Attachments

        For Gerrit Dashboard: MB-48793
        # Subject Branch Project Status CR V

        Activity

          People

            ankit.prabhu Ankit Prabhu
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty