EBI-Metagenomics / emgapi

MGnify RESTful API
https://www.ebi.ac.uk/metagenomics/api
Apache License 2.0
10 stars 0 forks source link

Bugfix Publication pub type max length #336

Closed mberacochea closed 10 months ago

mberacochea commented 10 months ago

Truncate the fields in the Publication model if longer than expected.

I've increased the max len of the pub_type in the Publication model. To prevent the import to fail in the future I've implemented a brute truncation mechanism when a Publication is saved.

mberacochea commented 10 months ago

Will fix https://www.ebi.ac.uk/panda/jira/browse/EMG-5033