Skip to content

Batch import streams from CSV (internal tool) #41

@greatest0fallt1me

Description

@greatest0fallt1me

Description

Admin bulk import endpoint parsing CSV with validation and per-row error reporting.

Requirements and context

  • Transaction per batch or clear partial failure semantics.
  • Size limits.

Suggested execution

  • Fork the repository and create a branch (example below).
  • Implement changes in StreamPay-Backend (TypeScript / Express per package.json).
  • Keep the service secure, tested, and documented; prefer small, reviewable PRs.
git checkout -b feature/batch-import-streams-csv

Implementation targets

  • POST /api/v1/admin/streams/import.
  • Parser + row validator.

Tests and validation

  • Tests: mixed valid/invalid rows.

  • Run npm test and npm run lint in StreamPay-Backend.

  • Cover edge cases; include test output and brief security notes in the PR description.

Guidelines

  • Target minimum 95% test coverage on new or changed backend code (or justify gaps).
  • Clear documentation (OpenAPI / README / inline docs as specified).
  • Timeframe: 96 hours from assignment.

Example commit message

feat(backend): admin CSV batch import for streams

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions