Split db::devices update into seen/update and expose PUT endpoint

Scanners now call seen() (sighting semantics: stamp last_seen, preserve
registration, conditional vendor/device_type/name writes). update() is
the user-editable mutation (owner, device_type, vendor) wired to
PUT /api/devices/{mac_address}.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-30 09:27:44 -04:00
co-authored by Claude Opus 4.7
parent 792a309136
commit 54211c57d7
7 changed files with 254 additions and 92 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
- [x] One event for each device appearance
- [x] Add date filter to device event list method (from)
- [x] Add a data set (json) to store maps from vendors -> device type; modify the device creation so that it uses it automatically
- [ ] Separate the devices "update" method into update and seen (one for API edit one for scanners)
- [x] Separate the devices "update" method into update and seen (one for API edit one for scanners)
## Frontend