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

🐛(api) fix administrative boundaries schema column types #188

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

jmaupetit
Copy link
Member

Purpose

Using Pandas' dataframe.to_sql method combined with the if_exists="replace" strategy messed up all administrative boundaries tables with unrelevant column types.

Proposal

  • add a schema/data migration for all column types

@jmaupetit jmaupetit self-assigned this Oct 9, 2024
@jmaupetit jmaupetit added bug Something isn't working API Item related to the API service labels Oct 9, 2024
@jmaupetit jmaupetit force-pushed the fix-area-column-type branch 2 times, most recently from a8b3f89 to 71d23ff Compare October 9, 2024 15:17
Using Pandas' `dataframe.to_sql` method combined with the
`if_exists="replace"` strategy messed up all administrative boundaries
tables with unrelevant column types.
Copy link
Collaborator

@loco-philippe loco-philippe left a comment

Choose a reason for hiding this comment

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

only one comment.

@jmaupetit jmaupetit merged commit cc00a61 into main Oct 10, 2024
15 checks passed
@jmaupetit jmaupetit deleted the fix-area-column-type branch October 10, 2024 05:27
jmaupetit added a commit that referenced this pull request Oct 14, 2024
Recent API database migration [1] fixed administrative level tables
columns types so there is no need to force UUID columns casting in the
indicator computation.

1. #188
jmaupetit added a commit that referenced this pull request Oct 14, 2024
Recent API database migration [1] fixed administrative level tables
columns types so there is no need to force UUID columns casting in the
indicator computation.

We thus had to update test database used in the CI so that it reflects
recent migrations.

1. #188
jmaupetit added a commit that referenced this pull request Oct 14, 2024
Recent API database migration [1] fixed administrative level tables
columns types so there is no need to force UUID columns casting in the
indicator computation.

We thus had to update test database used in the CI so that it reflects
recent migrations.

1. #188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Item related to the API service bug Something isn't working needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

area field in department, region and city has a string type instead of float type
2 participants