Skip to content

[P1] [doc-drift] FR-7.2.2 inline variable edit + description — unimplemented #438

Closed

Description

@EVWorth

[P1] [doc-drift] FR-7.2.2 "inline editing for settable variables; show variable description" — no inline edit, no description

Context

FR-7.2.2 acceptance: "inline editing for settable variables; show variable description".

Problem

Per docs/audits/admin.md F10.

(a) No inline edit — value is read-only text; no SET GLOBAL <var> = <value> UI. (b) No description — ServerVariable struct (mas-admin/src/lib.rs:23-27) carries only name/value; description from performance_schema.variables_info not fetched. SET GLOBAL vs SET SESSION distinction unaddressed. Persistence-warning for SET GLOBAL ("does not persist past server restart unless you use SET PERSIST") not surfaced.

Files

  • src/components/admin/AdminPanel.tsx:281-490
  • src-tauri/crates/mas-admin/src/lib.rs:73-94

Repro (if applicable)

Static analysis only.

Expected

Click max_connections value → input → set 200 → apply → MySQL SHOW VARIABLES LIKE 'max_connections' returns 200 → row shows warning icon with tooltip.

Proposed fix

Scope L. (1) Extend mas-admin to query performance_schema.variables_info joined on variable_name for description + settability; return richer ServerVariable { ..., description, scope, default_value, min_value, max_value }. (2) Add set_server_variable(connection_id, name, value, scope) Tauri command. (3) Frontend: click value → inline edit → Apply; warning icon for GLOBAL scope.

Acceptance

Click max_connections → input → set 200 → MySQL returns 200 → warning icon visible. Read-only variable (e.g. version) renders edit affordance disabled.

Needs human verify

Yes

Labels: audit, area/admin, severity/p1, kind/doc-drift

Activity

  1. added
    audit
    severity/p1
    kind/doc-drift
    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/doc-driftseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions