fix(unifi): tolerate odd device details and reject blank lookups #70
No reviewers
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter!70
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/55-unifi-lookups"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
PR #70 fixes Nye's two #55 nits: device details with interfaces/uplink as lists no longer crash the device lookup, and blank client/device lookups return a clear error instead of matching everything. Red-then-green test C50, precommit C51 (1056).
Red, then green
export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && unset $(env | grep -oE '^(FORGEJO|GITHUB_ISSUES)[A-Z_]*'); MIX_TEST_PARTITION=_55b mix test test/lamplighter/sources/unifi_test.exs9df19b7): exit 188e67f9): exit 0Checks
88e67f9(warnings as errors, format, full suite of 1056). (Upper Wolfjaw):export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && unset $(env | grep -oE '^(FORGEJO|GITHUB_ISSUES)[A-Z_]*'); git rev-parse --short HEAD && MIX_TEST_PARTITION=_55b mix precommit 2>&1 | tail -2 && git diff --exit-code, exit 0portslist with non-map entries still raises BadMapError (off-spec, left alone). Not tested: a real UniFi console. I didn't rerun full precommit. (Prover):export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && unset $(env | grep -oE '^(FORGEJO|GITHUB_ISSUES)[A-Z_]*'); MIX_TEST_PARTITION=_55b mix test test/lamplighter/sources/unifi_test.exs, exit 0Risks
Backend only, no UI. Stacked on #69, so it merges after #69 (and the D27 stack before it). Still untested against a real UniFi console.
Prover
Passed (Sonnet): Read the diff and ran the UniFi tests. List or odd interfaces/uplink/details no longer crash, and blank or whitespace lookups error before any request. I couldn't break those two fixes; a
portslist with non-map entries still raises BadMapError (off-spec, left alone). Not tested: a real UniFi console. I didn't rerun full precommit.Every command above was run by Fortysix's Basecamp itself, on the branch named.
Effects show collapsed under their root on the dashboard and in history ("+ N affected"). A root's report page lists what it affects, an effect's says what caused it, and reports that opened within a minute without a link are shown as probably related. Settings → Dependencies adds links between sources with the item picker, and lists suggested links to confirm or dismiss: Find suggestions matches hosts across sources, and a diagnosis can suggest links with "Link: report X depends on report Y" lines, which are kept out of its text.88e67f9a4d30d5fecfc7Rebased onto main
1d67708after #64 (relay agent) merged, now at30d5fec. The only conflicts were where both added to the same list: the Settings tabs (Agents now sits after Sources), the settings routes, the server's supervision tree (silence sweeper added to server_children), and the API auth test's route check. No feature code changed.mix precommitpasses on every branch in the stack and CI is green.