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

Fix /statique/bulk database session commit #169

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

jmaupetit
Copy link
Member

Purpose

Database transaction for the /statique/bulk endpoint is never committed to the current database session. As a consequence, sending API requests to this endpoint with valid data returns no error and no changes are performed in database.

Proposal

  • fix /statique/bulk database transaction
  • release 0.12.1 API patch

Extra:

  • select only entries with code_insee_commune in test dataset (development only)

As we recently made the code_insee_commune field required for statique
entries, the `seed-api` makefile rule broke silently.

We've only selected entries from the original dataset with a non-null
`code_insee_commune` field. Only half of the original dataset remains
(23522 entries).
The transaction was never committed in database leaving changes pending
at vitam aeternam.
Fixed:

- Commit `/statique/bulk` database transaction
@jmaupetit jmaupetit added bug Something isn't working critical release API Item related to the API service labels Sep 9, 2024
@jmaupetit jmaupetit self-assigned this Sep 9, 2024
@jmaupetit jmaupetit merged commit e29bfd1 into main Sep 9, 2024
12 checks passed
@jmaupetit jmaupetit deleted the fix-bulk-session-commit branch September 9, 2024 12:36
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 critical release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant