NAM-APJATEL-BACKEND/model/entity
unknown 9ae9de471d fix: make fishbone dev_end_id optional (nullable)
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>
2026-04-11 16:56:23 +07:00
..
activity_logs.go adding more complex response and more readable also adding some feature like rbac 2025-06-11 08:24:42 +07:00
backbone.go adding more complex response and more readable also adding some feature like rbac 2025-06-11 08:24:42 +07:00
cable_connections.go adding bulking for images, devices, and add cable connections logics 2025-10-10 17:14:16 +07:00
count_assets.go adding more complex response and more readable also adding some feature like rbac 2025-06-11 08:24:42 +07:00
device_details.go adding for towerID response and request 2025-06-24 15:11:42 +07:00
device_inspection.go adding nearest device and some addtion feature more complex 2025-06-11 22:48:11 +07:00
device_port.go fix: port assignment bulk update 2025-07-16 08:58:19 +07:00
device_with_distance.go adding nearest device and some addtion feature more complex 2025-06-11 22:48:11 +07:00
devices.go adding for towerID response and request 2025-06-24 15:11:42 +07:00
fishbone.go fix: make fishbone dev_end_id optional (nullable) 2026-04-11 16:56:23 +07:00
olt.go adding olt 2025-06-23 10:21:00 +07:00
roles.go adding more complex response and more readable also adding some feature like rbac 2025-06-11 08:24:42 +07:00
tower.go adding nearest device for towers 2025-06-18 16:42:03 +07:00
tower_inspection.go adding nearest device and some addtion feature more complex 2025-06-11 22:48:11 +07:00
users.go fixing validation for username and full name 2025-06-22 17:19:18 +07:00