homelabby/internal/netbox
Mikkel Georgsen 4fc9362519 feat(02-03): POST /api/intake handler with orchestrator and NetBox wiring
- IntakeHandler with IntakeOrchestrator/IntakeNetBoxClient/IntakeCatalogUpdater/IntakeWAQ interfaces
- Validates 1-3 photos, base64-encodes, calls Analyze, allocates HW-ID
- Quick-add mode: confidence >= threshold skips review, creates NetBox record immediately
- WAQ enqueue on NetBox failure returns 202 with queued=true
- nil WAQ + NetBox down returns 503
- Six unit tests: reject-0, reject-4, high-confidence, low-confidence, quick-add, netbox-down
- [Rule 1 - Bug] PatchCustomFields signature changed int -> int64 to match NetBoxOpsClient interface
- [Rule 1 - Bug] UpdateCatalogStatus signature changed int -> int64 for consistency with CreateDevice return type
2026-04-10 05:54:33 +00:00
..
client.go feat(02-01): install go-openai and add CreateDevice to NetBox client 2026-04-10 05:42:51 +00:00
client_test.go feat(02-01): install go-openai and add CreateDevice to NetBox client 2026-04-10 05:42:51 +00:00
custom_fields.go feat(02-03): POST /api/intake handler with orchestrator and NetBox wiring 2026-04-10 05:54:33 +00:00
custom_fields_test.go feat(02-03): POST /api/intake handler with orchestrator and NetBox wiring 2026-04-10 05:54:33 +00:00
hwid.go feat(01-04): HW-XXXXX sequential ID allocation 2026-04-10 05:20:41 +00:00
hwid_test.go feat(01-04): HW-XXXXX sequential ID allocation 2026-04-10 05:20:41 +00:00
provision.go feat(01-03): implement custom field provisioning with go-netbox v4 2026-04-10 05:21:23 +00:00
provision_test.go test(01-03): add failing tests for custom field spec and provisioning 2026-04-10 05:20:37 +00:00
tags.go feat(01-04): quality gate state machine, tag sync, catalog updater 2026-04-10 05:22:22 +00:00
tags_test.go feat(01-04): quality gate state machine, tag sync, catalog updater 2026-04-10 05:22:22 +00:00
types.go feat(01-02): NetBox client wrapper with device CRUD (NB-01) 2026-04-10 05:16:17 +00:00