Skip to content

[P1] [bug] FR-7.2.4 Replication monitoring — no implementation, no commands, no UI #434

Closed

Description

@EVWorth

[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".

Needs human verify

Yes

Labels: audit, area/admin, severity/p1, kind/bug

Activity

  1. added
    audit
    severity/p1
    kind/bug
    area/admin
    on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/adminauditkind/bugseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions