Save mounted sample on logout
Created by: meguiraun
I reproduce the behaviour you describe only if I mount a sample before signing out.
this line mxcube.CURRENTLY_MOUNTED_SAMPLE = ''
in the signout api would do the fix.
I am a bit confused with how this affects the sample changer operation. I understand that currently only a unload command clears that attribute.
So, for the cases where unload
is not used and a sample was mounted before logout, the user logouts, If anyone logs in again, he/she does not see anything mounted but on the sample changer page. So, no queue at all but a sample mounted.
We could send and unload together with the signout, but it will probably make any test problematic. An alternative could be to create a queue with that single sample (no tasks)