scalableminds / webknossos

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

Backend should generate random orga id, not frontend #8216

Open fm3 opened 5 days ago

fm3 commented 5 days ago

Quoting @MichaelBuessemeyer in https://github.com/scalableminds/webknossos/pull/8193#discussion_r1849844859:

To me it is also kinda strange, why the frontend generates this id string and not the backend 🤔. Maybe this could be changed in the future?

I think this has historical reasons only and could indeed be moved to the backend. Not sure I know all relevant cases, though.

We could also discuss if a random string is the best choice. Since this is already not a mongoId and some old organizations have human-readable (albeit sanitized) ids, maybe a new format would be a good idea. We could also concat a random part and a human-readable part to prevent collisions?