-
Notifications
You must be signed in to change notification settings - Fork 3
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
🐛 Fix Homo sapiens casing #575
Conversation
ba712d5
to
6749308
Compare
6749308
to
2876836
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
depends_on = None | ||
|
||
|
||
def upgrade(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, was this migration completely autogenerated from the change you made to the default for species? Or did you have to manually add the data migration code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did flask db revision
and a template file populated with the followings was created:
revision = '12850dab14e9'
down_revision = '025cf1ee0adf'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I mean did you have to modify what came out of flask db migrate
at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, so I modified the following sections:
- module imports: https://github.com/kids-first/kf-api-dataservice/blob/fix-homo-sapiens-casing/migrations/versions/12850dab14e9_.py#L8-L9
- upgrade: https://github.com/kids-first/kf-api-dataservice/blob/fix-homo-sapiens-casing/migrations/versions/12850dab14e9_.py#L22-L29
- downgrade: https://github.com/kids-first/kf-api-dataservice/blob/fix-homo-sapiens-casing/migrations/versions/12850dab14e9_.py#L35-L42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think anything does data migrations automatically
2876836
to
57e054d
Compare
## Release 1.13.1 ### Summary - Emojis: 🐛 x1 - Categories: Fixes x1 ### New features and changes - [#575](#575) - 🐛 Fix Homo sapiens casing - [97ea96d](97ea96d) by [liberaliscomputing](https://github.com/liberaliscomputing)
## Release 1.13.1 ### Summary - Emojis: 🐛 x1 - Categories: Fixes x1 ### New features and changes - [#575](#575) - 🐛 Fix Homo sapiens casing - [97ea96d](97ea96d) by [liberaliscomputing](https://github.com/liberaliscomputing)
This PR changes/migrates the species enum value of human from
"Homo Sapiens"
to"Homo sapiens"
.