Commit Graph

28 Commits

Author SHA1 Message Date
unknown 4461aff5c1 feat: add backbone_code to Tower for road routing waypoints
Towers can now be explicitly assigned to a backbone by setting
backbone_code. This field is included in create/update DTOs and
the response. The backbone OSRM routing merges these tower waypoints
with Closure waypoints, sorted by distance from OTB-start.

Run once on DB: ALTER TABLE towers ADD COLUMN backbone_code VARCHAR(255);

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 10:56:57 +07:00
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
areeqakbr 1dbd96eebd adding radiation odp search 2026-04-11 14:25:12 +07:00
unknown 3d5ce0dc72 perf: skip geocoding on list endpoints, add in-memory cache
- GetAllDeviceDetails, GetDevicesWithoutConnections, GetDevicesWithoutTowers
  now pass nil geocoder to avoid Nominatim calls on list requests.
  This reduces GET /device-details response time from ~2 minutes to <1s.
- Added sync.Map cache to nominatimGeocoder so repeated calls for the
  same coordinates (e.g. GetDeviceDetailsByID) hit cache instead of
  Nominatim, preventing HTTP 429 rate limit errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 12:19:52 +07:00
unknown 36cb2bd3e5 fix: handle HTML response from Nominatim geocoding (rate limit)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 11:05:28 +07:00
areeqakbr 1374bfa4bf adding olt on device creation 2025-06-30 11:12:39 +07:00
areeqakbr 7691b87c0e addinng olt 2025-06-30 09:49:57 +07:00
areeqakbr 7259cd1393 adding for towerID response and request 2025-06-24 15:11:42 +07:00
areeqakbr 68fe9dc83e make fishbone ID includes 2025-06-23 17:00:15 +07:00
areeqakbr a2c71ca81e adding bandwidth and status on odp customer assigntment 2025-06-23 16:35:13 +07:00
areeqakbr f48d61d4e2 fixing validation for username and full name 2025-06-22 17:19:18 +07:00
areeqakbr 433512e3da add image_urls to nearest device 2025-06-20 09:28:31 +07:00
areeqakbr f84ec65fbb Adding New Endpoint for register and user management 2025-06-19 13:10:45 +07:00
areeqakbr caee765b8b adding nearest device for towers 2025-06-18 16:42:03 +07:00
areeqakbr 0f034cc332 adding without connection and without towers 2025-06-18 16:14:16 +07:00
areeqakbr 8e69a70092 fixing for device details and logic error on devices 2025-06-16 11:42:58 +07:00
areeqakbr df082319f2 adding multiple images create and update also for the responses 2025-06-15 23:00:25 +07:00
areeqakbr 8afca3054a fix minor issue 2025-06-14 17:32:17 +07:00
areeqakbr ece05cee18 adding more response for port assignments 2025-06-14 15:30:04 +07:00
areeqakbr f1351497d9 delete fishbone count on fishbone 2025-06-12 22:47:18 +07:00
areeqakbr 751461bc34 adding trx operations and more complex features 2025-06-12 22:41:55 +07:00
areeqakbr 32c775ab24 adding nearest device and some addtion feature more complex 2025-06-11 22:48:11 +07:00
areeqakbr d5f611e390 adding more complex response and more readable also adding some feature like rbac 2025-06-11 08:24:42 +07:00
areeqakbr cde3b652a6 adding backbone code 2025-04-03 21:57:40 +07:00
areeqakbr bc6e1f7398 adding additional responses for geocoding 2025-03-27 10:05:45 +07:00
areeqakbr 90d5f4f04a adding new responses and caching for geocoding 2025-03-27 01:25:54 +07:00
areeqakbr 83c8cb4d0d edit responses api for better responses (backbone and devices) 2025-03-24 10:50:18 +07:00
areeqakbr b79701e87c project init 2025-02-13 13:46:06 +07:00