Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5301

Handle `app:disconnect` event outside of `compass-connect`

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.31.0
    • None
    • Connectivity
    • None
    • 3
    • Not Needed
    • 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.

      Attachments

        Activity

          People

            rhys.howell@mongodb.com Rhys Howell
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: