[COMPASS-2771] Copying an aggregation pipeline to clipboard with disabled stages results in bad syntax Created: 23/Apr/18  Updated: 29/Oct/23  Resolved: 13/Nov/18

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

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


 Description   

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.



 Comments   
Comment by Massimiliano Marcon [ 13/Nov/18 ]

jeffrey.allen I am closing this because as far as I can tell it is fixed, or no longer relevant due to how export to language now works in Compass. If you still see the issue, please reopen and assign to me.

Thanks!

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