towerops/lib/towerops
Graham McIntire 592b99d739
fix: use correct device_id for neighbor discovery
The neighbor discovery was using snmp_device.id instead of the actual
Equipment device.id when creating neighbor records. This caused all
neighbor inserts to fail because the foreign key constraint expected
the Equipment ID, not the SNMP Device ID.

Fixed in two places:
- Discovery: Use snmp_device.device_id (FK to Equipment)
- PollerWorker: Use device.id (Equipment ID) instead of snmp_device.id

Neighbors should now be properly discovered and saved during both
initial discovery and ongoing polling.
2026-01-18 13:00:31 -06:00
..
accounts add user profile settings with name, avatar, and timezone 2026-01-18 10:32:23 -06:00
admin Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
agents Add agent rename functionality 2026-01-17 15:48:47 -06:00
alerts moduledocs 2026-01-17 15:08:49 -06:00
api_tokens refactor: use API token auth for profile imports instead of session cookies 2026-01-18 09:30:21 -06:00
device_profiles profile import now upserts 2026-01-18 11:56:41 -06:00
devices feat: allow device name to be populated from SNMP sysName 2026-01-17 16:28:43 -06:00
ecto_types improve profile import 2026-01-18 11:46:56 -06:00
mobile_sessions Fix datetime truncation for mobile session schemas 2026-01-15 16:17:05 -06:00
monitoring fix: use microsecond precision for ICMP latency measurements 2026-01-18 12:52:29 -06:00
organizations moduledocs 2026-01-17 15:08:49 -06:00
proto rename equipment to device 2026-01-17 14:48:46 -06:00
sites moduledocs 2026-01-17 15:08:49 -06:00
snmp fix: use correct device_id for neighbor discovery 2026-01-18 13:00:31 -06:00
workers fix all credo issues and add flash auto-dismiss 2026-01-18 10:43:23 -06:00
accounts.ex add user profile settings with name, avatar, and timezone 2026-01-18 10:32:23 -06:00
admin.ex rename equipment to device 2026-01-17 14:48:46 -06:00
agents.ex Add agent rename functionality 2026-01-17 15:48:47 -06:00
alerts.ex rename equipment to device 2026-01-17 14:48:46 -06:00
api_tokens.ex fix(imports): handle DateTime microseconds and integer string floats 2026-01-18 11:23:43 -06:00
application.ex fix: merge Redis config directly into PubSub opts instead of nesting under redis_config key 2026-01-18 12:10:31 -06:00
device_profiles.ex profile import now upserts 2026-01-18 11:56:41 -06:00
devices.ex credo cleanup 2026-01-17 15:00:52 -06:00
log_filter.ex Add comprehensive Dialyzer type specifications 2026-01-17 10:52:02 -06:00
mailer.ex moduledocs 2026-01-17 15:08:49 -06:00
mobile_sessions.ex credo cleanup 2026-01-17 15:00:52 -06:00
monitoring.ex feat: add latency graph for ICMP ping monitoring 2026-01-17 16:02:35 -06:00
organizations.ex rename equipment to device 2026-01-17 14:48:46 -06:00
release.ex fix dialyzer things 2026-01-03 12:56:40 -06:00
repo.ex moduledocs 2026-01-17 15:08:49 -06:00
sites.ex rename equipment to device 2026-01-17 14:48:46 -06:00
snmp.ex more renames 2026-01-17 15:13:56 -06:00