Skip to content

Build Batch Record Import from CSV #371

Description

@success-OG

Description
Implement a CSV import tool for bulk importing pet medical records, allowing vet clinics to migrate existing records into PetChain with validation, error reporting, and blockchain anchoring.

Requirements and context

  • Define and document the PetChain CSV import schema
  • Validate all rows before import with detailed error reporting
  • Support partial imports: skip invalid rows, import valid ones
  • Anchor all imported records to Stellar blockchain in batch
  • Provide import progress UI with success/failure summary

Suggested execution

  • Branch: feature/csv-batch-import
  • Key files: backend/services/csvImportService.ts, src/screens/ImportScreen.tsx, backend/src/routes/import.ts
  • Use csv-parse for CSV parsing
  • Write tests for validation logic with malformed CSV inputs

Guidelines

  • Assignment required before starting
  • PR must include: Closes #72
  • Timeframe: 96 hours

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions