[COMPASS-4511] Inserting a blank document on crud view causes error Created: 19/Nov/20  Updated: 29/Oct/23  Resolved: 12/Feb/21

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

Type: Bug Priority: Major - P3
Reporter: Rhys Howell Assignee: Anna Henningsen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File error inserting empty doc.gif    
Story Points: 3
Documentation Changes: Not Needed
Sprint: Iteration Uglifruit, Iteration Vegetable

 Description   

See gif for repro.
It doesn't freeze the ui, but it does throw an error, and shows the `inserting document` message that never resolves.

We can probably show the _id off the start like how we do when the user swaps the tabs to the other view.

This might be the related bugsnag, which does error a lot, and continues to error occasionally after the user has closed the view and navigates to other views:
[https://app.bugsnag.com/mongodb/mongodb-compass/errors/5df238dd4d35ae0018941d53?filters[event.since][0][type]=eq&filters[event.since][0][value]=30d]  

gif:



 Comments   
Comment by Githook User [ 15/Feb/21 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass-crud): fix empty ‘insert document’ view COMPASS-4511 (#2118)

https://github.com/mongodb-js/compass-crud/pull/344
Branch: 1.26-releases
https://github.com/mongodb-js/compass/commit/417a36db9f90b055057fff5f703c6ec6f088136a

Comment by Githook User [ 12/Feb/21 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass-crud): fix empty ‘insert document’ view COMPASS-4511 (#2118)

https://github.com/mongodb-js/compass-crud/pull/344
Branch: master
https://github.com/mongodb-js/compass/commit/417a36db9f90b055057fff5f703c6ec6f088136a

Comment by Githook User [ 12/Feb/21 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass-crud): fix empty ‘insert document’ view COMPASS-4511

https://github.com/mongodb-js/compass-crud/pull/344
Branch: 4511-dev
https://github.com/mongodb-js/compass/commit/0de22e5dd34037ab1c95bb77787e2960c9a1322f

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