Skip to content

[P0][doc-drift] ARCHITECTURE 5.5 declares import_data, preview_import, export_data Rust commands — none exist #363

Closed

Description

@EVWorth

Context

Import/Export feature spec (DESIGN_REQUIREMENTS FR-8 marked [partial]). Per docs/audits/import.md F1.

Problem

docs/design/ARCHITECTURE.md:1126-1142 declares 3 dedicated Tauri commands: export_data, import_data, preview_import. None exist on disk: grep -n "fn import_data\|fn preview_import\|fn export_data" src-tauri/src/ returns zero hits. Frontend routes everything through generic api.executeQuery per statement.

Files

  • docs/design/ARCHITECTURE.md:1126-1142
  • src-tauri/src/commands/mod.rs (entire file)
  • src/lib/tauri-api.ts:115-117

Repro

Static analysis only. Architecture doc being followed as contract for surface that doesn't exist.

Expected

ARCHITECTURE describes reality. Either implement the 3 commands or amend the doc.

Proposed fix

L: implement in src-tauri/crates/mas-core/src/commands/import.rs — import_data opens transaction + bulk-inserts in batches server-side; preview_import returns parsed rows + inferred column types without touching DB; export_data streams to file via tokio::fs::File. Wire through tauri::command pattern. Refactor ImportDialog. OR amend ARCHITECTURE 5.5 to describe executeQuery-only surface.

Acceptance

grep -rn "fn import_data\|fn preview_import\|fn export_data" src-tauri/ returns >=1 hit per function in handlers, OR ARCHITECTURE 5.5 amended.

Needs human verify

yes (option choice + UX impact)

Activity

  1. added
    audit
    severity/p0
    kind/doc-drift
    area/import
    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/importauditkind/doc-driftseverity/p0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions