[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/RationaleWhen 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 ReproduceAdd a $geoNear stage Expected ResultsA valid document to be edited before running a query Actual ResultsAn 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 NotesAny 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! |