[COMPASS-7556] Unable to open collections in multiple tabs Created: 27/Dec/23  Updated: 30/Jan/24  Resolved: 29/Dec/23

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

Type: Bug Priority: Major - P3
Reporter: Edward McNealy Assignee: Sergey Petushkov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: MacOC 14.1.1
node.js / npm versions:
Additional info:


Attachments: File Screen Recording 2023-12-27 at 13.46.55.mov     PNG File screenshot-1.png    
Assigned Teams:
Developer Tools
Story Points: 2
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

I am not able to open a collection in a new tab if I already have that collection open in a different tab.

Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell

Steps to Reproduce

  1. Open MongoDB Compass
  2. Open a new tab for one of your collections, CollectionA
  3. Open another tab for a different collection, CollectionB
  4. Click the "+" button to open another tab
    1. This new tab will open with whatever collection you had selected in the previous tab, in this case CollectionB
  5. Select CollectionA from the list of collections in an attempt to open that collection in your new tab

Expected Results

I would expect to have CollectionA open in the new tab. So I would have:

  • CollectionA in the first tab
  • CollectionB in the second tab
  • CollectionA in the third tab

Actual Results

I am unable to open CollectionA in the new tab. Instead, the app automatically brings me back to the first tab, where CollectionA is already opened. So I can only ever have:

  • CollectionA in the first tab
  • CollectionB in the second tab
  • CollectionB in the third tab

The only way to open CollectionA in a new tab is to:

  1. Select the open tab with CollectionA
  2. Click the "+" button to open a new tab
  3. Now CollectionA is selected in the new tab by default

Additional Notes

Any additional information that may be useful to include.



 Comments   
Comment by Githook User [ 30/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(workspaces): open workspace in the same tab when tab type is the same COMPASS-7556 (#5282)

fix(workspaces): open workspace in the same tab when tab type is the same
Branch: ga-releases
https://github.com/mongodb-js/compass/commit/4cdba20af897b9bb49c16d7afac2d6ed65e861ff

Comment by Githook User [ 09/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(workspaces): open workspace in the same tab when tab type is the same COMPASS-7556 (#5282)

fix(workspaces): open workspace in the same tab when tab type is the same
Branch: remove-enable-gai-experience-feature-flag
https://github.com/mongodb-js/compass/commit/4cdba20af897b9bb49c16d7afac2d6ed65e861ff

Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(workspaces): open workspace in the same tab when tab type is the same COMPASS-7556 (#5282)

fix(workspaces): open workspace in the same tab when tab type is the same
Branch: signing-client
https://github.com/mongodb-js/compass/commit/4cdba20af897b9bb49c16d7afac2d6ed65e861ff

Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(workspaces): open workspace in the same tab when tab type is the same COMPASS-7556 (#5282)

fix(workspaces): open workspace in the same tab when tab type is the same
Branch: binary-files-git
https://github.com/mongodb-js/compass/commit/4cdba20af897b9bb49c16d7afac2d6ed65e861ff

Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(workspaces): open workspace in the same tab when tab type is the same COMPASS-7556 (#5282)

fix(workspaces): open workspace in the same tab when tab type is the same
Branch: update-electron-28
https://github.com/mongodb-js/compass/commit/4cdba20af897b9bb49c16d7afac2d6ed65e861ff

Comment by Githook User [ 01/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(workspaces): open workspace in the same tab when tab type is the same COMPASS-7556 (#5282)

fix(workspaces): open workspace in the same tab when tab type is the same
Branch: beta-releases
https://github.com/mongodb-js/compass/commit/4cdba20af897b9bb49c16d7afac2d6ed65e861ff

Comment by Githook User [ 30/Dec/23 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(workspaces): open workspace in the same tab when tab type is the same COMPASS-7556 (#5282)

fix(workspaces): open workspace in the same tab when tab type is the same
Branch: ci/update-electron
https://github.com/mongodb-js/compass/commit/4cdba20af897b9bb49c16d7afac2d6ed65e861ff

Comment by Sergey Petushkov [ 29/Dec/23 ]

We just merged the fix and it will be available with the next Compass stable release

Comment by Githook User [ 29/Dec/23 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(workspaces): open workspace in the same tab when tab type is the same COMPASS-7556 (#5282)

fix(workspaces): open workspace in the same tab when tab type is the same
Branch: main
https://github.com/mongodb-js/compass/commit/4cdba20af897b9bb49c16d7afac2d6ed65e861ff

Comment by Edward McNealy [ 28/Dec/23 ]

Thanks sergey.petushkov@mongodb.com! I never really noticed that option for opening the collection in a new tab from the menu, I'm just so used to doing it in the workflow I described.

Comment by Sergey Petushkov [ 28/Dec/23 ]

Hey edward.mcnealy@ocelotbot.com, thanks for the report, this is a slight regression that was introduced recently and we will address it. While we are working on a fix, the flow you are describind is not the only one to open a new tab and there is a more straightforward one available: you can use "Open in new tab" menu item in the sidebar, this will always open a new tab with whatever namespace you are trying to open.

Comment by PM Bot [ 27/Dec/23 ]

Hello edward.mcnealy@ocelotbot.com, 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:46:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.