[COMPASS-5301] Handle `app:disconnect` event outside of `compass-connect` Created: 17/Nov/21  Updated: 20/Dec/21  Resolved: 03/Dec/21

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

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Rhys Howell
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: COMPASS-4948
Story Points: 3
Documentation Changes: Not Needed
Sprint: Iteration Q, Iteration Reno

 Description   

Currently `compass-connect` handles the `app:disconnect` event and emits a `data-service-disconnected` event. Since we have a new `connections` package replacing `compass-connect` we need to handle this same behavior. We should either keep it feature flagged or ensure that the event is only handled once.

In this case, however, we should move this event handling to `compass-home` with the intent being that `connections` only handles creating/configuring a connection and connecting. This will reduce some coupling and preserving the state of this unmounted component. This ticket involves handling the disconnect event in Compass home and resetting the view to the connect screen, and ensuring the `data-service-disconnected` event is emitted since some plugins listen to it.



 Comments   
Comment by Githook User [ 20/Dec/21 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: chore(compass-home): handle disconnect in compass-home with new connect form COMPASS-5301 (#2623)
Branch: COMPASS-5270-connection-list-styling
https://github.com/mongodb-js/compass/commit/b8bd835e180116be5c773ddc61047b021fb95637

Comment by Githook User [ 13/Dec/21 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: chore(compass-home): handle disconnect in compass-home with new connect form COMPASS-5301 (#2623)
Branch: 1.29-releases
https://github.com/mongodb-js/compass/commit/b8bd835e180116be5c773ddc61047b021fb95637

Comment by Githook User [ 09/Dec/21 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: chore(compass-home): handle disconnect in compass-home with new connect form COMPASS-5301 (#2623)
Branch: compass-5212-dbs-colls-grid-async
https://github.com/mongodb-js/compass/commit/b8bd835e180116be5c773ddc61047b021fb95637

Comment by Githook User [ 07/Dec/21 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: chore(compass-home): handle disconnect in compass-home with new connect form COMPASS-5301 (#2623)
Branch: subprocess-exec
https://github.com/mongodb-js/compass/commit/b8bd835e180116be5c773ddc61047b021fb95637

Comment by Githook User [ 03/Dec/21 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: chore(compass-home): handle disconnect in compass-home with new connect form COMPASS-5301 (#2623)
Branch: COMPASS-5231-add-general-tab-contents-to-connect-form
https://github.com/mongodb-js/compass/commit/b8bd835e180116be5c773ddc61047b021fb95637

Comment by Githook User [ 03/Dec/21 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: chore(compass-home): handle disconnect in compass-home with new connect form COMPASS-5301 (#2623)
Branch: main
https://github.com/mongodb-js/compass/commit/b8bd835e180116be5c773ddc61047b021fb95637

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