Closed tcompa closed 2 weeks ago
Note that this also the reason for how we wrote test_exclude_v1_api
(as part of https://github.com/fractal-analytics-platform/fractal-server). At the moment we don't have a nice way to load the app after updating settings.
One option here is to have the two endpoints (ssh or non-ssh) share the exact same signature, and then switch from one to the other from within the endpoint code.
Right now, we are using an import-time check of settings to determine whether the standard or SSH task-collection endpoints should be included in the API.
This can be improved, and for sure it doesn't play well with this fixture:
TO DO: do not perform the settings check at import time.