[COMPASS-6645] Autocomplete removes aggregation step Created: 23/Mar/23  Updated: 29/Oct/23  Resolved: 23/Mar/23

Status: Closed
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: 1.36.1
Fix Version/s: 1.36.2

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

OS: MacOs
node.js / npm versions: –
Additional info: MongoDB Compass v1.36.1


Attachments: File Screen Recording 2023-03-23 at 10.59.41.mov    
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

In the newest version of the mongodb compass, pressing "enter" to autocomplete an aggregation pipeline step removed the step itself, and autofills the spec without the step itself.

Steps to Reproduce

See attachment.

  1. Go to aggregations tab
  2. Click "text" in the upper right corner
  3. Start typing the name of an aggregation step (such as "$project")
  4. Press enter to allow for autocompletion
  5. Notice that the part of the step that you have typed dissapears

Expected Results

The pipeline step does not dissapear

Actual Results

The pipeline step dissapears, and only the autocomplete of the spec remains



 Comments   
Comment by Jake Rosenfeld [ 23/Mar/23 ]

Thanks!

Comment by Le Roux Bodenstein [ 23/Mar/23 ]

Thanks for reporting this. It is a regression introduced recently that we've since fixed here https://github.com/mongodb-js/compass/pull/4137

We just released a new beta if you want to try it out https://github.com/mongodb-js/compass/releases/tag/v1.36.2-beta.1

We'll also release 1.36.2 with this fix ASAP/

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