[COMPASS-2885] Disabled stages should not be represented in the pipeline string that is copied into Clipboard Created: 26/May/18  Updated: 29/Oct/23  Resolved: 27/May/18

Status: Closed
Project: Compass
Component/s: Aggregation pipeline, Compass
Affects Version/s: 1.14.0-beta
Fix Version/s: 1.14.0, 1.15.0

Type: Bug Priority: Minor - P4
Reporter: Grigori Melnik (Inactive) Assignee: Durran Jordan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File MongoDB_Compass_Beta_bug_disabled_stages_still_accounted_for_in_the_generated_pipeline.png    
Epic Link: COMPASS-2191
Sprint: Sprint Vanilla Ice

 Description   

A pipeline contains 4 stages, 2 middle ones are disabled (see screenshot). When I copy the pipeline to clipboard, those middle stages are still denoted with commas, like so:

{ $match: {  "imdb.rating": {$gte:7},  genres: { $nin: ["Crime", "Horror"] },  rated: { $in: ["PG", "G"]},  languages: { $in: ["English","Japanese"] }} }, , , { $count: "movies" }

 


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