-
Notifications
You must be signed in to change notification settings - Fork 655
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
Setup Wizard - Devices that are not fully setup are showing up in the 'Select device' modal #12066
Comments
We should be careful how we approach this, for performance reasons. Ideally we provide this information about learners being available in the public facility API since we sometimes already check facility information in the device modal. Although, this means it wouldn't be backwards compatible. |
Better error management related to the console error could be a good next step. It looks like the problem is that this.facilities is just empty |
Hi @pcenov - I've gone through a few different setups that I've tried, to see if I can reproduce this for manual QA purposes and confirming the fix I have in mind, and so far I haven't been able to create it. I just want to be sure that I have the same scenario. Can you you describe specifically how you created the "device that's not fully setup"? Did you start a setup of a full facility and disconnect/hard stop the setup so that it didn't complete? Or something else? Thank you! |
Hi @marcellamaki, on one of your devices you need to install Kolibri by going through Setup Wizard > Full facility (or On my own) and have it running without having created any learners on that facility. Since there aren't any learners on it, when you try to import learners from it while setting up a LOD you will get the error shown above. :) |
Also, if you've previously run this setup in your browser, be sure to delete the cookies before trying it again, or it'll skip the modal. |
Hi @pcenov - I am not sure how to create a facility that has no learners, because even if there is just one user in the full facility, the admin, I think that that user could be available for import as a learner to another facility. I am sorry to be having such trouble with this, but could you explain the exact setup that you used for this first facility that you were doing the import from? I still haven't been able to recreate it 🙃 I also tried running two kolibris (A and B) and not completing the setup for A (i.e. having it be at the end of the setup wizard, but not continuing through to "finish"), and then trying to import from kolibri A. It didn't appear in the list of devices, which I think is actually the expected/correct behavior. (or @jredrejo if you have another suggestion of something I am missing, please chime in). |
Hi @marcellamaki - sorry for the trouble, apparently my memory has mislead me, and I was also having difficulties replicating it today... Turns out that you need to do a fresh install of Kolibri on the first device and just start the Setup Wizard and leave it there. Then when you try to import a LOD on your second device you will see the issue. device.mp4 |
Ah great, thank you @pcenov - I've been able to reproduce it now and think I have some ideas for how to fix. Thanks!! |
Fixed in #12397 |
Observed behavior
While attempting to setup a Learn-only device I noticed that in the 'Select device' modal we are showing devices that are not yet fully setup (specifically there are no learners that we can import from them). If I select such a device I am getting an error and have to start again. This can cause some confusion if there are multiple devices in the network that are in the same state.
2024-04-09_13-47-38.mp4
Expected behavior
A device that's not fully setup should not be displayed in the list with the available devices.
Steps to reproduce the issue
Logs
logs.zip
Usage Details
Kolibri 0.16.1 official
Windows 11, Ubuntu 22 - Chrome
The text was updated successfully, but these errors were encountered: