jic-dtool / dservercore

Given a dataset UUID returns a URI to where the dataset is stored
MIT License
4 stars 5 forks source link

Lenient dataset registration #51

Open jotelha opened 11 months ago

jotelha commented 11 months ago

We should catch any errors and convert them to warnings when iterating the register_dataset methods over all plugins as done in https://github.com/jic-dtool/dtool-lookup-server/blob/8b1071b3bae85b0dd29de2923dccb06444456b37/dtool_lookup_server/utils.py#L566-L586. We don't want the registration in the core server or in any other plugin to fail just because of one poorly written plugin.

At some point in the future, we might want to introduce some bookkeeping functionality on registration errors in the server core.

jotelha commented 11 months ago

Fixable by pinning flask < 3, https://github.com/jic-dtool/dtool-lookup-server/pull/53/commits/5de14c40ffb383741b9005d06c7898c126979062