[COMPASS-6434] User stays in the same view after dropping a database Created: 17/Jan/23  Updated: 29/Oct/23  Resolved: 15/Feb/23

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

Type: Task Priority: Major - P3
Reporter: Le Roux Bodenstein Assignee: Le Roux Bodenstein
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File after-delete.png     PNG File confirm.png     PNG File db-in-sidebar.png     PNG File error-after-click.png     PNG File on-the-db.png    
Issue Links:
Related
is related to COMPASS-6018 User lands on an empty view after del... Closed
Story Points: 2
Documentation Changes: Not Needed
Sprint: Iteration Seahorse, Iteration Turtle, Iteration Unicornfish, Iteration Velvet Crab

 Description   

If you drop a database (either from the sidebar or the databases list), the view stays wherever it was. Then if you click on a collection or otherwise try and interact with that deleted database you get errors (see screenshot).

Rather redirect the user to the instance's databases list. Similar to what we now do when dropping a collection. Or how we redirect to the new collection when adding one.



 Comments   
Comment by Githook User [ 01/Mar/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat(collections): when dropping a collection or database, redirect to either the database or databases view COMPASS-6018, COMPASS-6434 (#3972)

  • when deleting a collection, redirect to either the database or databases view
  • e2e test for the redirect
  • redirect to databases when dropping a database
  • active database/collection dropped only
  • e2e test tweaks
  • Update packages/compass-e2e-tests/tests/instance-sidebar.test.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • linting
  • fix selector used in e2e tests
  • WIP test outline
  • e2e tests for redirects after dropping collections and databases

---------

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Branch: github-link
https://github.com/mongodb-js/compass/commit/dffa686d00cda7becbc1ba0338d4e5d0e18b0361

Comment by Githook User [ 27/Feb/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat(collections): when dropping a collection or database, redirect to either the database or databases view COMPASS-6018, COMPASS-6434 (#3972)

  • when deleting a collection, redirect to either the database or databases view
  • e2e test for the redirect
  • redirect to databases when dropping a database
  • active database/collection dropped only
  • e2e test tweaks
  • Update packages/compass-e2e-tests/tests/instance-sidebar.test.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • linting
  • fix selector used in e2e tests
  • WIP test outline
  • e2e tests for redirects after dropping collections and databases

---------

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Branch: 1.35-releases
https://github.com/mongodb-js/compass/commit/dffa686d00cda7becbc1ba0338d4e5d0e18b0361

Comment by Githook User [ 15/Feb/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat(collections): when dropping a collection or database, redirect to either the database or databases view COMPASS-6018, COMPASS-6434 (#3972)

  • when deleting a collection, redirect to either the database or databases view
  • e2e test for the redirect
  • redirect to databases when dropping a database
  • active database/collection dropped only
  • e2e test tweaks
  • Update packages/compass-e2e-tests/tests/instance-sidebar.test.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • linting
  • fix selector used in e2e tests
  • WIP test outline
  • e2e tests for redirects after dropping collections and databases

---------

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Branch: remove-tracking-defaults
https://github.com/mongodb-js/compass/commit/dffa686d00cda7becbc1ba0338d4e5d0e18b0361

Comment by Githook User [ 15/Feb/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat(collections): when dropping a collection or database, redirect to either the database or databases view COMPASS-6018, COMPASS-6434 (#3972)

  • when deleting a collection, redirect to either the database or databases view
  • e2e test for the redirect
  • redirect to databases when dropping a database
  • active database/collection dropped only
  • e2e test tweaks
  • Update packages/compass-e2e-tests/tests/instance-sidebar.test.ts

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>

  • linting
  • fix selector used in e2e tests
  • WIP test outline
  • e2e tests for redirects after dropping collections and databases

---------

Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Branch: main
https://github.com/mongodb-js/compass/commit/dffa686d00cda7becbc1ba0338d4e5d0e18b0361

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