Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4031

Wrong interpretation of NumberInt("1") when creating a pipeline from text

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.31.0
    • 1.20.1
    • Compass
    • None
    • MacOS
    • Not Needed

    Description

      Steps to reproduce:

      1. In the aggregations app of compass, click on the 'down-arrow' right to the "+" sign, to open the dropdown-menu and then choose 'New Pipeline from text'. 
      2. Paste the following Text:

        [ {"$project": {"_id": NumberInt("1")}} ]

       

      Current Result:

      A new pipeline is created with the following conent:

      {
      _id: NumberInt

      Unknown macro: {'[object Object]') }

      Below the step, the following error Message is displayed:

      "Expected "[" or AggregationStage but "{" found."

       

      Expected result:

      The new pipeline should have the following content:

      Unknown macro: { _id}

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            roman.lehnert@givve.com Roman Lehnert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: