fractal-analytics-platform / fractal-server

Fractal backend
https://fractal-analytics-platform.github.io/fractal-server/
BSD 3-Clause "New" or "Revised" License
10 stars 3 forks source link

Introduce user settings #1774

Closed tcompa closed 3 days ago

tcompa commented 1 week ago

Branching from https://github.com/fractal-analytics-platform/fractal-server/issues/1769#issuecomment-2357734952 with a more specific plan.

Database

Two-steps rollout (and update-db-data script)

The two-steps rollout is described in #1786. Running update-db-data for v2.6.0 should lead to a state which is fully usable, and where all relevant information has already been moved to user_settings.

API

User API

Settings API

Task-collection and job-execution API

Task-collection and job-execution subpackages

tcompa commented 1 week ago

New UserSettings columns: slurm_user, slurm_accounts, cache_dir

UserSettingsUpdateStrict is the same as current UserUpdateStrict, while UserSettingsUpdate may modify all columns.

For the moment, we do not modify the User API/schemas.