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

Incorrect options shown in Query Workbench Import dialog

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.6.0
    • 6.6.0
    • UI
    • Untriaged
    • 1
    • Unknown

    Description

      The import dialog in the query workbench is supposed to show two options: 1) importing a N1QL query from a file, and 2) importing an entire query history from a file. (see screenshot)

      For some mysterious reason involving GIT, the mad-hatter branch includes two extra options involving file imports. These options don't actually work, but having them there is misleading.

      The fix is a relatively simple change removing two items from a list in javascript:

      dialogScope.file_options = [
        {kind: "txt", label:  "Query - load the contents of a text file into the query editor."},    // 0
        {kind: "json", label: "Query History - load a file into the end of the current query history."}, // 1
        {kind: "csv", label: "CSV File - import a data file in comma-separated format into a bucket."}, // 2
        {kind: "tsv", label: "TSV File - import a data file in tab-separated format into a bucket."}, // 3
      ];
       

      Attachments

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

        Activity

          People

            arunkumar Arunkumar Senthilnathan
            eben Eben Haber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty