[COMPASS-4031] Wrong interpretation of NumberInt("1") when creating a pipeline from text Created: 11/Dec/19  Updated: 10/Jan/24  Resolved: 17/May/22

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.20.1
Fix Version/s: 1.31.0

Type: Bug Priority: Major - P3
Reporter: Roman Lehnert Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MacOS


Attachments: PNG File image-2019-12-11-17-58-58-946.png    
Issue Links:
Related
related to COMPASS-4210 Creating a query by clicking on a num... Closed
Documentation Changes: 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}

 

 



 Comments   
Comment by Rhys Howell [ 17/May/22 ]

Hi roman.lehnert@givve.com - thanks for reporting the issue. This was fixed as part of https://jira.mongodb.org/browse/COMPASS-4210

Comment by Lucas Hrabovsky (Inactive) [ 25/Mar/20 ]

same behavior NumberInt([object Object]) as in COMPASS-4210

Generated at Wed Feb 07 22:35:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.