Store Path._directions as a JSON array #18

Merged
alexander merged 2 commits from directions-json into develop 2026-12-02 11:43:02 +01:00
Owner

The JSON column held a JSON-encoded string, so the data was encoded twice.

  • Store Path._directions as a JSON array
  • Data migration for the 42 existing rows (from research/08_google_maps.ipynb); the downgrade restores them exactly

Run alembic upgrade head right after merging. The live database is already migrated.

The `JSON` column held a JSON-encoded string, so the data was encoded twice. - Store `Path._directions` as a JSON array - Data migration for the 42 existing rows (from `research/08_google_maps.ipynb`); the downgrade restores them exactly Run `alembic upgrade head` right after merging. The live database is already migrated.
The column is of type `JSON`,
but the code stored a JSON-encoded string in it;
so, the data was encoded twice.

A later data migration converts the existing rows.
Store the directions of paths as JSON arrays
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 2m46s
664dccee02
The data migration converts the 42 existing rows
from a JSON-encoded string into a JSON array.
alexander merged commit ef7b41e675 into develop 2026-12-02 11:43:02 +01:00
alexander deleted branch directions-json 2026-12-02 11:43:02 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
alexander/velofy!18
No description provided.