PublicDataWorks / complaint-manager

Apache License 2.0
5 stars 0 forks source link

Process mass upload #629

Open christina-luong opened 5 months ago

christina-luong commented 5 months ago

User Story

As a user of either NO or Hawaii I want to be able to mass upload information about officers or inmates (respectively) So that the database is kept up to date

Business Context:

Occasionally, we are provided by either organization a spreadsheet containing the updated roster of officers or inmates. The uploads have been a manual process (see #592) with some research previously done on mass uploading (see #529). This story will build the functionality needed to process this information on the backend.

In Scope

  1. Flag errors (see Open Questions for guidance).
  2. Update and run the script from an uploaded file received via server handler

Out of Scope

  1. Implement a scheduled upload.

Open Questions

Mockups

Acceptance Criteria

  1. Scenario: Given that the user is on the Admin Portal When they input a csv with the correct headers Then our database is updated with information from the csv

  2. Scenario: Given When Then

Notes

Checklist

Kickoff

Deskcheck

andrew-rist-tw commented 4 months ago

Officers' script: src/server/seeder_jobs/createSeedOfficerDataFromS3.js Inmates' script: src/server/seeder_jobs/createSeedInmateDataFromS3.js

andrew-rist-tw commented 4 months ago

Only the ids are required (employeeId, inmateId)

claireholt-tw commented 3 months ago

Here is the link to the how-to docs regarding the mass upload: https://docs.google.com/document/d/1mdOOv5pzH682rabBEG56Rq2OQ-4Fh0e4lASzkVlTWNw/edit?usp=sharing