Sangeetha-Grantha

Track: Bulk Import Revamp (Holistic Fix)

ID: TRACK-005 Status: Completed Owner: Sangita Grantha Architect Created: 2026-01-22 Updated: 2026-01-22

Problem Statement

The initial Bulk Import implementation (TRACK-001, TRACK-003) delivered a “technical” MVP that is operationally brittle and user-unfriendly. Key Deficiencies:

  1. Manual Path Entry: Users must manually type server-side file paths.
  2. Lack of Feedback: No real-time progress updates (requires manual refresh).
  3. Opaque Errors: Failures in early stages (Manifest Ingest) are hard to diagnose.
  4. Brittle CSV Handling: Manual parsing is error-prone.

Goal

Deliver a production-grade Bulk Import capability that is intuitive (“Drag & Drop”), transparent (Real-time Progress), and robust.

Implementation Plan

Phase 1: Robust Import API (Backend)

Phase 2: Reactive Admin UI (Frontend)

Phase 3: Operational Safety

Technical Approach

  1. Uploads: Use Ktor ContentNegotiation and MultiPartData to handle uploads.

  2. Polling: Stick to short-polling (simple, robust) over WebSockets for now.

  3. CSV: Use a standard library to handle edge cases (quotes, newlines).

Dependencies