Skip to content

feat: add camera location hierarchy - #498

Open
matteius wants to merge 1 commit into
feat/fleet-camera-uuidfrom
feat/fleet-locations
Open

feat: add camera location hierarchy#498
matteius wants to merge 1 commit into
feat/fleet-camera-uuidfrom
feat/fleet-locations

Conversation

@matteius

@matteius matteius commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add stable, adjacency-list camera locations with a seeded immutable Unassigned root
  • preserve camera assignments through ordinary config changes and expose location UUIDs through camera APIs and backups
  • add cycle-safe hierarchy CRUD and UUID-based camera assignment endpoints, initially admin-only pending scoped authorization
  • add database and handler coverage for hierarchy moves, conflicts, assignments, migration defaults, metadata, and auth

API

  • GET /api/locations
  • POST /api/locations
  • GET|PUT|DELETE /api/locations/{location_uuid}
  • PUT /api/cameras/{camera_uuid}/location

Validation

  • test_config
  • test_db_streams
  • test_db_locations
  • test_api_handlers_locations
  • test_api_handlers_system
  • upgrade smoke test: existing cameras backfilled to the seeded Unassigned location
  • git diff --check

Stack

Part of FLEET 01 P1.

@matteius
matteius force-pushed the feat/fleet-locations branch from fa4aa34 to 0e5a72c Compare August 22, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant