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

Auto-generated code for the $geoNear aggregation stage is not a valid document

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.31.3
    • Affects Version/s: None
    • Component/s: Aggregation pipeline
    • None
    • Environment:
      Atlas, Compass
    • 1
    • Not Needed
    • Iteration Anemone

      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.

            Assignee:
            basit.chonka@mongodb.com Basit Chonka
            Reporter:
            sam.brown@mongodb.com Sam Brown
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: