2023-03-12 - ImportData CSV Process

From Izara Wiki
Revision as of 12:15, 12 March 2023 by Sven the Barbarian (talk | contribs) (Created page with "Service - Import Data = Process = == Client sends file == # Frontend chooses CsvImportConfig (and can create new), selects file to upload # After clicking submit client requests permission to upload to S3, then sends request to create new importBatchMainId (if can do both in same request is better), then sends file to S3 with indicator of the importBatchMainId, eg as a tag on the file # Can perhaps open a websocket to be notified when complete, or have a page that...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Service - Import Data

Process

Client sends file

  1. Frontend chooses CsvImportConfig (and can create new), selects file to upload
  2. After clicking submit client requests permission to upload to S3, then sends request to create new importBatchMainId (if can do both in same request is better), then sends file to S3 with indicator of the importBatchMainId, eg as a tag on the file
  3. Can perhaps open a websocket to be notified when complete, or have a page that polls for status

Process CSV file

  1. Upload to S3 triggers Lambda in ImportData service to begin processing file
  2. Read the file in sections for batch processing, maybe as a set section size and handling multiple sections per invocation depending on resource use
  3. Field order might come from CsvImportConfig or might come from title row, organize these first
  4. Skip any ignoreRows