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

Upgrade data7 to 0.7.0 & improve Enum output #170

Merged
merged 3 commits into from
Sep 10, 2024
Merged

Conversation

jmaupetit
Copy link
Member

@jmaupetit jmaupetit commented Sep 9, 2024

Purpose

As described in #135, when exporting database Statique records using Data7, enum fields are exported as their enum representation and not their related value.

Proposal

  • improve enums representation for the statiques dataset using raw SQL
  • fix field name case (e.g. coordonneesXY)

While working on this PR we also:

  • upgrade data7 to 0.7.0

In order to respect the transport.data.gouv.fr data schema for IRVE
static data, exported enums values now fit with schema-authorized
values.

Fix #135
@jmaupetit jmaupetit self-assigned this Sep 9, 2024
@jmaupetit jmaupetit added feature opendata Item related to the opendata service labels Sep 9, 2024
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.

Ah oui !!

@jmaupetit jmaupetit merged commit 5fcd206 into main Sep 10, 2024
12 checks passed
@jmaupetit jmaupetit deleted the upgrade-data7-0.7.0 branch September 10, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature opendata Item related to the opendata service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exported Statique dataset cannot be imported back using the API (invalid enum fields and field names)
2 participants