Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix Publication pub type max length #336

Merged
merged 4 commits into from
Nov 8, 2023

Conversation

mberacochea
Copy link
Member

@mberacochea mberacochea commented Nov 7, 2023

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 mberacochea self-assigned this Nov 7, 2023
@mberacochea mberacochea force-pushed the bugfix/europepmc-api-fields-lenlimit branch from 73894c1 to 3ee7e1d Compare November 7, 2023 23:26
@mberacochea mberacochea marked this pull request as ready for review November 7, 2023 23:26
@mberacochea
Copy link
Member Author

Copy link
Member

@SandyRogers SandyRogers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

emgapi/models.py Show resolved Hide resolved
@mberacochea mberacochea changed the title WIP Bugfix Publication pub type max length Nov 8, 2023
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 mberacochea force-pushed the bugfix/europepmc-api-fields-lenlimit branch from e3757c5 to c3dc316 Compare November 8, 2023 09:58
@mberacochea mberacochea merged commit 103568d into develop Nov 8, 2023
4 checks passed
@mberacochea mberacochea deleted the bugfix/europepmc-api-fields-lenlimit branch February 29, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants