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

Copying an aggregation pipeline to clipboard with disabled stages results in bad syntax

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Compass
    • None

      I have a pipeline with two stages, $match and $group. I disable the $match stage using the toggle and copy the pipeline to the clipboard. The result is this:

      , { $group: {  _id: "$departureAirportFsCode",  flights: {    $push: "$flightId"  }} }
      

      The comma preceding the stage shouldn't appear, since there is only one stage enabled.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeffrey.allen@mongodb.com Jeffrey Allen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: