bihealth / sodar-core

SODAR Core: A Django-based framework for building scientific data management web apps
MIT License
9 stars 1 forks source link

Make ID field a UUID / replace by sodar_uuid #1471

Open holtgrewe opened 2 weeks ago

holtgrewe commented 2 weeks ago

Problem

All sodar-core based apps inherit the expected behaviour that id is a plain integer primary key while sodar_uuid is a UUID. The sodar_uuid is used for everything facing the outside world, in particular URLs and REST APIs. This behaviour works well for internal code but for code such as drf-writable-nested this is problematic.

Solution

Create migrations for the models that:

This is a huge change and should not be considered before a 2.0 version.

Alternative Solutions

N/A

Additional Context