-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Trivial - P5
-
Affects Version/s: 1.40.2
-
Component/s: None
-
None
-
Environment:
-
Not Needed
-
None
Problem Statement/Rationale
What is going wrong? What action would you like the Engineering team to take?
From a Node.js application, when using the insertOne() function to add a new document to a collection, the number of documents displayed in Compass when the collection is selected and refreshed remains the same as it was before the new document is inserted. (refreshing documents populates the new record and increases the count next to the refresh button, but not update the number displayed in the upper right side.)
Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell
User is unsure about what data, if any, should be redacted from log.
Steps to Reproduce
How could an engineer replicate the issue you’re reporting?
1. Open a collection in Compass GUI and remain on the Documents tab for the collection (note the number of documents)
2. Insert a new record/document from a Node.js application using the insertOne() method on the collection.
3. Click 'Refresh documents' in the Compass GUI
Expected Results
1. The newly inserted document appears along with any previously existing documents.
2. The count of documents increases where it is displayed next to the 'Refresh documents'.
3. The count of documents to the right-hand side of the collection name increases.
Actual Results
1. The newly inserted document appears along with any previously existing documents.
2. The count of documents increases where it is displayed next to the 'Refresh documents'.
3. The count of documents to the right-hand side of the collection name DOES NOT increase.
Additional Notes
This is my first Jira ticket outside of school, but I hope it is helpful. This was also my very first time using the Compass GUI (and the second time using MongoDB). My instructor recommended reporting the issue, in case this was not the intended behaviour.