tftsr-devops_investigation/src-tauri/src
Shaun Arman 68439bcd64
All checks were successful
Test / frontend-typecheck (pull_request) Successful in 2m19s
Test / frontend-tests (pull_request) Successful in 2m10s
PR Review Automation / review (pull_request) Successful in 8m50s
Test / rust-fmt-check (pull_request) Successful in 16m20s
Test / rust-clippy (pull_request) Successful in 17m51s
Test / rust-tests (pull_request) Successful in 19m20s
fix: address PR review findings — race condition, real ping, atomic edit, listener cleanup
Race condition in get_proxmox_client_for_cluster: two concurrent callers
for an uncached cluster could both authenticate and insert, with the second
overwriting the first. Re-check under write lock before inserting so the
later caller returns the already-stored client instead of overwriting it.

handleConnectRemote used getProxmoxCluster (a DB-only lookup) to set status
'connected', which passed even when the Proxmox API was unreachable. Replace
with pingProxmoxCluster, a new command that authenticates and calls
GET /api2/json/version, providing a real end-to-end connectivity test.

handleEditRemote used remove-then-add, leaving a gap where the record was
absent and silently lost if addProxmoxCluster failed. Replace with
updateProxmoxCluster, a new command that issues a single SQL UPDATE (plus
in-memory pool eviction) so the record is never transiently missing.

ActionsMenu useEffect added the mousedown listener only when open=true but
the dependency array contained open, causing ambiguity about cleanup timing.
Attach the listener unconditionally on mount (empty dep array) so there is
always exactly one add and one remove with no conditional branches.

New Rust tests cover update_proxmox_cluster not-found logic and ping error
message format (420 Rust + 386 frontend, zero failures).
2026-06-19 22:26:33 -05:00
..
ai fix(ci): remove actions/cache steps to fix Node.js requirement 2026-06-05 16:18:35 -05:00
audit fix(security): harden secret handling and audit integrity 2026-04-04 23:37:05 -05:00
cli feat: Implement Proxmox Datacenter Manager feature parity - Phases 1-11 2026-06-11 09:38:36 -05:00
commands fix: address PR review findings — race condition, real ping, atomic edit, listener cleanup 2026-06-19 22:26:33 -05:00
db fix(proxmox): remove dummy data, fix add-remote, fix updater 2026-06-13 17:33:23 -05:00
docs fix: comprehensive trcaa→tftsr conversion and URL corrections 2026-06-05 15:38:29 -05:00
integrations fix(clippy): fix Rust nightly clippy lints 2026-06-05 17:35:09 -05:00
kube fix(kubernetes): remove redundant TS cast and fix cargo fmt failures 2026-06-07 11:37:17 -05:00
mcp fix: implement v1.2.1 fixes 2026-06-12 21:20:09 -05:00
metrics fix(security): address automated code review findings 2026-06-09 18:08:58 -05:00
ollama fix(windows): link memset_shim object directly and suppress dead_code warning 2026-06-19 11:23:12 -05:00
pii fix(security): expand Password PII patterns; add regression tests 2026-05-31 20:47:59 -05:00
proxmox fix(proxmox): fix add-remote IPC failure and URL construction 2026-06-19 16:44:50 -05:00
shell fix(ci): resolve libsodium pkg-config detection across all platforms 2026-06-14 04:36:44 -05:00
lib.rs fix: address PR review findings — race condition, real ping, atomic edit, listener cleanup 2026-06-19 22:26:33 -05:00
main.rs feat: full copy from apollo_nxt-trcaa with complete sanitization 2026-06-05 14:12:43 -05:00
memset_shim.rs fix(build): add memset_shim for Windows MinGW and rpm for Linux ARM64 2026-06-18 22:08:30 -05:00
state.rs fix(build): resolve libsodium linking failures across all CI targets 2026-06-14 02:07:38 -05:00