populationgenomics / metamist

Sample level metadata system
MIT License
1 stars 1 forks source link

Create Template Endpoint Takes ID as first field #779

Open vivbak opened 4 months ago

vivbak commented 4 months ago

And yet, this field must always be None. It has to do with a model not being fit for purpose for the endpoint.

ID defined on model here https://github.com/populationgenomics/metamist/blob/d21e39903ff06d650bedf91b4fc71a4f9e29c285/models/models/cohort.py#L134

And is immediately asserted to be None https://github.com/populationgenomics/metamist/blob/d21e39903ff06d650bedf91b4fc71a4f9e29c285/db/python/layers/cohort.py#L137

The user experience here is not ideal.