scalableminds / webknossos

Visualize, share and annotate your large 3D images online
https://webknossos.org
GNU Affero General Public License v3.0
125 stars 23 forks source link

Avoid Onboarding screen when WK thinks DB is not schema-compliant #8056

Open philippotto opened 2 weeks ago

philippotto commented 2 weeks ago

In the past, we had at least two occurrences where a WK production system showed the onboarding system, because it considered the DB to be empty. No data was lost, but nevertheless the screen is scary.

We should do the following two things:

Some notes on when this happened:

fm3 commented 1 week ago

Some first insights: The onboarding screen was not shown because of the schema compliance check, but because the organization list query failed (since the columns of the organization table were changed in that particular migration). This means that

Do you know in what circumstances the other of the two occurrences happened?

fm3 commented 1 week ago

I managed to reproduce the issue and for me the /api/organizationsIsEmpty request correctly replies with 400 when the database access for the organizations table fails. Looks like the frontend catches this 400, and then displays the onboarding screen.

So I’d exchange the backend for the frontend label for this issue. Let me know if you think the backend should behave differently.