DeviceEndID was uuid.UUID (non-nullable) in entity, DTO, and response. Sending empty string from the frontend caused "invalid uuid" parse error. Changed to *uuid.UUID throughout. CreateFishbone now skips end device lookup, type validation, port check, and port-usage update when DeviceEndID is nil. UpdateFishbone pointer comparisons fixed accordingly. Run once on DB: ALTER TABLE fishbone ALTER COLUMN dev_end_id DROP NOT NULL; Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| AGENTS.md | ||
| activity_logs_usecase.go | ||
| auth_usecase.go | ||
| backbone_usecase.go | ||
| cable_connections_usecase.go | ||
| count_assets_usecase.go | ||
| devicePort_usecase.go | ||
| device_details.go | ||
| device_inspection.go | ||
| device_usecase.go | ||
| fishbone_usecase.go | ||
| nearest_device.go | ||
| nearest_device_test.go | ||
| olt_usecase.go | ||
| tower_usecase.go | ||
| users_usecase.go | ||