You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[P1] [doc-drift] FR-7.2.1 filterable by user/database/state + ARCH §3.6 process monitor architecture — unimplemented
Context
FR-7.2.1 acceptance: "filterable by user, database, state". ARCH §3.6 shows backend tokio background task emitting process_list_update events.
Problem
Per docs/audits/admin.md F9.
Implementation has single free-text input matching across all columns (AdminPanel.tsx:118-131) — not 3 separate filters. Per-tab polling via setInterval means: 5 admin tabs × 5 connections × 2s = 150 req/min to MySQL; refresh jitter; documented start_process_monitor command does not exist; process_list_update event does not exist.
5 admin tabs × 5 connections × 2s interval → 150 events/min from backend (not 150 req to MySQL). Filter dropdowns restrict table to "all root connections on db foo".
Proposed fix
Scope L. (1) Replace single filter with three <select> dropdowns (User, DB, State). (2) Move polling to mas-admin: start_process_monitor(connection_id, interval_ms) / stop_process_monitor(connection_id) with tokio::spawn and process_list_update event emission. (3) Frontend subscribes via @tauri-apps/api/event::listen.
Acceptance
Filter dropdowns restrict by column; per-connection polling shared across admin tabs.
Activity
feat(admin): filter the process list by user, database and state