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

Incorrect options shown in Query Workbench Import dialog



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


      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


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


          eben Eben Haber created issue -
          raju Raju Suravarjjala made changes -
          Field Original Value New Value
          Link This issue blocks MB-38724 [ MB-38724 ]
          till Till Westmann made changes -
          Labels approved-for-6.6.0
          eben Eben Haber made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          wayne Wayne Siu made changes -
          Assignee Eben Haber [ eben ] Arunkumar Senthilnathan [ arunkumar ]
          arunkumar Arunkumar Senthilnathan (Inactive) made changes -
          arunkumar Arunkumar Senthilnathan (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]


            arunkumar Arunkumar Senthilnathan (Inactive)
            eben Eben Haber
            0 Vote for this issue
            2 Start watching this issue



              Gerrit Reviews

                There are no open Gerrit changes