Closed jzhang20133 closed 2 months ago
@davidbrochart I have added a unit test to make sure two collaborative warning event is not thrown and room and file is deleted when both websocket requests fails due to webserver task group is no longer active.
Awesome work, @jzhang20133!
It looks like PR also fixes #291 by moving the prepare
super
call earlier in this override 🚀
@jzhang20133 thanks for this!
Just a minor comment about the prepare
method. Does everything need to be under the condition that prepare
is an awaitable?
Maybe a simpler approach is to call res = await ensure_async(super().prepare())
.
Addressed comments. @davidbrochart and @Zsailer would you like to review this PR again?
Looks great! Thanks @jzhang20133!
In this PR, we handle exception when websocket server start room failed by cleaning up fileLoader and room and user won't run into the two collaboration pop up due to websocket server task group inactive failure. This PR also move authentication logic ahead of room initialization.
Resolving: https://github.com/jupyterlab/jupyter-collaboration/issues/291 https://github.com/jupyterlab/jupyter-collaboration/issues/245