bookmarks: account-synced saved locations API #117
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Jinemi/thermograph#117
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/location-bookmarks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Backend half of client-side location bookmarks — lets a signed-in user save locations and have them sync across devices, with a bulk import path to absorb a visitor's pre-existing localStorage bookmarks at login.
BookmarkORM model (backend/accounts/models.py), keyed on(user_id, cell_id)likeSubscription, plus alembic revision0004_bookmarks(conditional create, matching the0003_user_discord_onlypattern).backend/accounts/api_accounts.py:GET /bookmarks— list the user's saved locationsPOST /bookmarks— create, or upsert-rename if one already exists for that grid cell (200, not 409)PATCH /bookmarks/{id}/DELETE /bookmarks/{id}— rename / remove, 404 (never 403) on a bookmark that isn't the caller'sPOST /bookmarks/import— bulk import of a visitor's localStorage bookmarks at login, deduped oncell_id(existing labels are never overwritten), capped atBOOKMARK_MAX_PER_USERbackend/accounts/schemas.py.backend/tests/accounts/test_bookmarks.pycovering CRUD, upsert-on-duplicate, ownership isolation, auth, import dedupe/counts, and the per-user cap.The frontend half is coming on this same branch.