-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Clicking the "FIND" button in Compass doesn't seem to load the newly added documents.
Here are the specifics of my tests that highlight this discrepancy:
Test#1:
- For an existing collection, I first confirmed that I was able to see all documents in it, in both Compass as well as mongo shell.
- Then, I inserted a new document in this collection, via the mongo shell.
- I confirmed that this new document was visible upon querying in mongo shell.
- When I tried to filter this document in Compass, by giving a filter condition in the FILTER section, and clicking the FIND button, it did not show this newly added document. I clicked the FIND button multiple times, but it did not show the newly added document.
- The workaround I found was to click the "refresh" button, on the right hand side. When I clicked it, then it showed the newly added document.
Please refer to this short clip for test#1, that shows a reproduction of the issue and the workaround of using the "refresh" button, to get the newly added document to show up.
Test#2:
- For this test, I followed the same steps as above, except without specifying any filter condition. In other words, I kept the FILTER }}section blank, clicked the {{FIND button and tried to see newly added document.
- However, clicking FIND even when FILTER section was blank, did not show the newly added document.
- In this instance as well, when I clicked the "refresh" button, then the newly added document showed up.
Please refer to this short clip for test#2.
The above behavior of the FIND button seems to be antithetical to our documentation here, which says: "Click Find to run the query and view the updated results".