[FEATURE]: Import Service Module Skeleton #330

Closed
opened 2026-01-07 13:43:55 +01:00 by carla · 0 comments
Owner

Description

Create service API and error types.

API (recommended):

  • prepare/2 — parse + map + limit checks, returns import_state
  • process_chunk/3 — process one chunk (pure-ish), returns per-chunk results

Tasks:

  • Create lib/mv/membership/import/member_csv.ex
  • Define public function: prepare/2 (file_content, opts \\ [])
  • Define public function: process_chunk/3 (chunk_rows_with_lines, column_map, opts \\ [])
  • Define error struct: %MemberCSV.Error{csv_line_number: integer, field: atom | nil, message: String.t}
  • Document module + API

Acceptance criteria

  • API end error types are dfined
  • erverything is documented
## Description Create service API and error types. **API (recommended):** - `prepare/2` — parse + map + limit checks, returns import_state - `process_chunk/3` — process one chunk (pure-ish), returns per-chunk results **Tasks:** - [ ] Create `lib/mv/membership/import/member_csv.ex` - [ ] Define public function: `prepare/2 (file_content, opts \\ [])` - [ ] Define public function: `process_chunk/3 (chunk_rows_with_lines, column_map, opts \\ [])` - [ ] Define error struct: `%MemberCSV.Error{csv_line_number: integer, field: atom | nil, message: String.t}` - [ ] Document module + API ## Acceptance criteria - [ ] API end error types are dfined - [ ] erverything is documented
carla added this to the I can import members milestone 2026-01-07 13:43:55 +01:00
carla added the
S
label 2026-01-07 13:43:55 +01:00
carla added this to the Sprint 11: 08.01-29.01 project 2026-01-08 12:57:28 +01:00
carla closed this issue 2026-01-14 12:31:32 +01:00
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: local-it/mitgliederverwaltung#330
No description provided.