[COMPASS-6790] Filter is not preserved when switching from collection and back Created: 04/May/23  Updated: 28/Jun/23  Resolved: 17/May/23

Status: Closed
Project: Compass
Component/s: Collection
Affects Version/s: 1.36.4
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Tomáš Laubr Assignee: Unassigned
Resolution: Duplicate Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Windows 11
node.js / npm versions:
Additional info:


Attachments: File Compass query history 2.mp4     File Screen Recording 2023-05-04 at 16.46.59.mov     Text File compass_6459f4b0b2e8bd4a8a5e8223_log.txt     Text File compass_6459fa97e87d93799f183e7f_log.txt     File working-query-history-on-win-11.mov    
Issue Links:
Cloners
clones COMPASS-6810 History doesn't populate the filter o... Open
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

Filter is not preserved when switching from a collection and back. The filter should be preserved.

Steps to Reproduce

  1. open a collection in a new tab
  2. fill in any filter, e.g. {_id: "ahoj"} and confirm. A search will take place.
  3. select (switch to) any other collection
  4. select the first collection again

Expected Results

The previous tab with filter filled in (with {_id: "ahoj"}) will appear.

Actual Results

The previous tab will appear but the filter (with project, sort, collation) is cleared.

Additional Notes

That is absolutely annoying. You loose all the data entered.



 Comments   
Comment by Jessica Sigafoos [ 17/May/23 ]

Hi tomas.laubr@smart-software.cz and michael@myinterview.com! Thank you both for your collaboration on this ticket! Heads up that we will be tracking this issue in COMPASS-6810 moving forward, please feel free to follow that ticket if you'd like to stay up to date on how we move forward here.

Comment by Michael Lumbroso [ 10/May/23 ]

Hi himanshu.singh@mongodb.com here is my log attached compass_6459fa97e87d93799f183e7f_log.txt
I also installed update the same way as tomas.laubr@smart-software.cz 

Comment by Tomáš Laubr [ 09/May/23 ]

himanshu.singh@mongodb.com, find my log attached compass_6459f4b0b2e8bd4a8a5e8223_log.txt

Regarding the installer - I have installed update via the  Help -> Check for update update.... menu

Comment by Himanshu Singh [ 08/May/23 ]

Hi michael@myinterview.com / tomas.laubr@smart-software.cz, since I am unable to reproduce this issue on my local setup, it would be a great help if any of you could attach the compass log file after you have reproduced this issue on your devices, best would be to get a log file from you both. That should help a ton in debugging what's going wrong. You can read more about where to find the log file here. Thank you

Comment by Michael Lumbroso [ 08/May/23 ]

Hi himanshu.singh@mongodb.com I'm referring to what tomas.laubr@smart-software.cz described in the video he attached : Compass query history 2.mp4

This is exactly the same issue for me, Recent queries not being preserved when switching collections or restarting Compass.
It used to work fine in the past.

I waste a lot of time everyday because it's missing and it's very frustrating.

Comment by Himanshu Singh [ 08/May/23 ]

Hi michael@myinterview.com could you please confirm that you are speaking about "query history" not preserved when switching between collections? Thank you.

Comment by Michael Lumbroso [ 07/May/23 ]

Hi himanshu.singh@mongodb.com
I experience the exact same issue on Windows 11 with Compass 1.36.4 (but it's been definitely a few versions it's not working).
It was working fine a few months ago.
Super frustrating and annoying.

Comment by Himanshu Singh [ 05/May/23 ]

Hi tomas.laubr@smart-software.cz. Unfortunately I was not able to reproduce the problem of query history not getting saved (attaching the recording just for reference under name - working-query-history-on-win-11). I tested on Windows 11 with Compass 1.36.4 and everything works as expected. If you could provide an answer to my question above - maybe I will give it another shot based on that.

Comment by Himanshu Singh [ 05/May/23 ]

Hi tomas.laubr@smart-software.cz If you can recall, could you please also mention the installer you used to install compass? Was it:

  • mongodb-compass-1.36.4-win32-x64.exe, or
  • mongodb-compass-1.36.4-win32-x64.msi, or
  • mongodb-compass-1.36.4-win32-x64.zip
Comment by Tomáš Laubr [ 04/May/23 ]

OK.

The Recent Queries feature (if working) would solve my problem.

Comment by Himanshu Singh [ 04/May/23 ]

Yes that's definitely odd. I will look further into it and let you know as soon as I understand what's going on here.

Comment by Tomáš Laubr [ 04/May/23 ]

Well, this is interesting, because my history is being cleared out. Checkout my video Compass query history 2.mp4

Comment by Himanshu Singh [ 04/May/23 ]

Sorry I should've pointed out that the query history is maintained per collection. Could you please confirm if by any chance you were expecting queries from other collection to come up in history of another collection? I am attaching a small video of how this works, just in case some clarification is needed.

Screen Recording 2023-05-04 at 16.46.59.mov

Comment by Tomáš Laubr [ 04/May/23 ]

Ok, thank you for your explanation himanshu.singh@mongodb.com . However, I need to point out that when I switch from a collection and back, the query history you have mentioned is cleared as well. I.e. it is not true, that I can always restore any query that I ran in past.

Comment by Himanshu Singh [ 04/May/23 ]

Hi tomas.laubr@smart-software.cz. Thank you for reporting this. We would like to mention that the behaviour of query bar when switching between collection is as per expectation. The queries are not retained when switching between collections. But we can relate to your frustration and would recommend that you submit a feature request for this here.

Additionally, what I would like to point to you is our Recent Queries feature which provides a history of queries that you ran in a collection. Using this you can always restore any query that you ran in past.

Comment by PM Bot [ 04/May/23 ]

Hello tomas.laubr@smart-software.cz, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible.

Please review your issue to ensure you've included your environment details and have attached relevant logs (with any sensitive data redacted), so that we're best able to provide you a timely and thorough response. Thanks again!

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