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

Passing query parameters through headers to Analytics service

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Resolved
    • Major
    • None
    • None
    • analytics
    • 0

    Description

      I've been informed that the analtyics server has implemented option to customize query results, but decided to pass it though the HTTP headers.

      I'd like to inform analytics team, that at the moment, SDKs consider HTTP only as a transport protocol, pay no or little attention to things like headers and the status codes. So far everything has been encoded in JSON payloads.

      For example, we allow our users to pass free form parameters using "raw()" interface on the query options, which allows them to use newer server versions, with older SDKs. But we don't have anything like that for the headers, so one cannot pass parameters like this using regular AnalyticsQuery API:

      Accept: application/json; charset=UTF-8;lossless-adm=true
      

      We assume that SDK will only implement/support public features, that eventually will have their place in Server REST API documentation. This feature looks like Asterix-related, and probably will remain undocumented private API.

      So the questions in this ticket:

      • Is this Lossless-ADM formatter public API?
      • Is Analytics service going to continue use HTTP protocol parts for the API?

      The feature has been implemented here: https://github.com/couchbase/asterixdb/commit/26fb94c404692db7d93001de02e507ba9db00b65

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            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