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
{{ message }}
Repository navigation
[P1] [bug] FR-7.2.4 Replication monitoring — no implementation, no commands, no UI #434
[P1] [bug] Replication monitoring (FR-7.2.4) is completely missing
Context
DESIGN_REQUIREMENTS FR-7.2.4: "Show replication status for source and replica servers; lag indicators; error highlighting". ARCHITECTURE §3.6 mentions SHOW MASTER STATUS / SHOW SLAVE STATUS.
Problem
Per docs/audits/admin.md F6.
Zero presence replications: grep -rn "REPLICA\|REPLICATION\|SHOW SLAVE\|SHOW MASTER\|SHOW REPLICA" src-tauri/crates/ returns no matches. No Replication tab, no get_replication_status Tauri command, no seconds_behind_master display. A DBA using SQLPilot has no replica visibility — pushes them back to MySQL Workbench.
Files
src/components/admin/AdminPanel.tsx (no Replication tab)
src-tauri/crates/mas-admin/src/lib.rs (no replica methods)
src-tauri/src/commands/mod.rs:424-478 (no replica commands)
Repro (if applicable)
Static analysis only.
Expected
Connect to a replica → Admin tab shows Replication panel with Seconds_Behind_Source: 0 colored green. Simulate lag → panel turns yellow. Primary (non-replica) shows "Not a replica".
Proposed fix
Scope L. Add get_replication_status(connection_id) running SHOW REPLICA STATUS (MySQL 8.0.22+) with fallback to SHOW SLAVE STATUS for older versions. Parse into ReplicationStatus struct. Add 5th tab to AdminPanel.
Acceptance
Replica connection → Replication panel with green lag indicator. Simulated lag → yellow. Primary → "Not a replica".
Activity