Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users disconnecting and going offline #17

Closed
2 tasks
keithamoss opened this issue Dec 13, 2018 · 0 comments
Closed
2 tasks

Users disconnecting and going offline #17

keithamoss opened this issue Dec 13, 2018 · 0 comments

Comments

@keithamoss
Copy link
Owner

keithamoss commented Dec 13, 2018

Users can opt to stop receiving assignments (going inactive), but we're going to need to handle users going offline and disconnecting. This can happen by:

  • Their own choice (e.g. closes browser tab)
  • At the application level (e.g. we deploy a new build and a new server comes up)
  • Further upstream (e.g. their internet goes down)

We don't want to spam folks with "User is offline/online" notices, so have a think about how to approach this. Off the top of my head:

  • When the user connects to the web socket server update a timestamp on their profile
  • When the user disconnects/closes the web socket connection log a celery task with a delayed start that will set the user as offline and send a notice if it wakes up and finds that the user hasn't reconnected since the disconnection/offline that triggered the task

Discussion from user testing:

  • Being disconnected (in a networking sense) = always show as offline
  • On reconnecting / reloading, if offline show prompt. (Only on the queue view or everywhere?)
  • Give them 30s grace to allow them to reconnect (e.g. if they close the tab by mistake)
  • When reconnecting we'll need to ensure all appropriate state is resynced. I think we're good for everything except the new column state for triage? Think about this to double check :)
@keithamoss keithamoss added this to the Beta Release milestone Dec 18, 2018
@keithamoss keithamoss added the question Further information is requested label Dec 18, 2018
@keithamoss keithamoss removed the question Further information is requested label Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant