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

Remove `data-service-initialized` event or move it after we have successfully connected

    • Not Needed
    • Iteration Tangerine

      Currently the `data-service-initialized` emitted in compass-connect emits the connecting dataservice to the appregistry. This event is listened to in a few places and the data-service is stored. However if it fails to connect, this data-service object is a risk because any actions on it may introduce errors or side effects.

      This ticket involves either removing the `data-service-initialized` event, and just using the `data-service-connected` event if it works for the use cases of the `data-service-initialized` listeners, or we see if we can change where the `data-service-initialized` event is emitted so it only emits for successfully connected connections. If we go with this second approach we should also ensure any handlers don't need to be using the dataservice while it is still being connected to.

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

              Created:
              Updated:
              Resolved: