[COMPASS-5680] Auto-generated code for the $geoNear aggregation stage is not a valid document Created: 04/Apr/22  Updated: 29/Oct/23  Resolved: 03/May/22

Status: Closed
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: None
Fix Version/s: 1.31.3

Type: Bug Priority: Minor - P4
Reporter: Sam Brown Assignee: Basit Chonka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Atlas, Compass


Story Points: 1
Documentation Changes: Not Needed
Sprint: Iteration Anemone

 Description   

Problem Statement/Rationale

When using compass or atlas to build an aggregation pipeline, the auto-generated code for the $geoNear aggregation stage is not a valid document and requires modifications.

Steps to Reproduce

Add a $geoNear stage

Expected Results

A valid document to be edited before running a query

Actual Results

An invalid document, which does not have its comment incorrectly closed. I think the issue is at this line: https://github.com/mongodb-js/ace-autocompleter/blob/master/lib/constants/stage-operators.js#L153

Additional Notes

Any additional information that may be useful to include.



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

Fixed in https://github.com/mongodb-js/ace-autocompleter/pull/123

Thanks for reporting the issue!

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