CSV Uploader - CDCgov/prime-simplereport GitHub Wiki

Starting in 3/30/22, SimpleReport took over the CSV uploader feature that previously was handled by ReportStream. As of this writing on 8/23/22, the feature is still being developed. Below are the steps to get access to the feature in local dev.

The CSV Uploader feature is made available to all users who have access to the TEST_RESULT_UPLOAD_USER role as defined in OrganizationRole.java. In live environments, this is handled through Okta and therefore can be simulated locally by adding this role to your Spring profile config.

  1. Follow the instructions outlined here to create an application-local.yaml file if one does not exist already. If it does, add TEST_RESULT_UPLOAD_USER to the granted-roles configuration. Multiple roles can be added together separated by commas if you wish to combine this role with other existing ones.
  2. Add a seperate block in your yaml file with the following properties. Reach out to another engineer for the secret values
datahub:
  url: https://staging.prime.cdc.gov/
  api-version: "2021-09-21"
  api-key: $API_KEY_SECRET
  csv-upload-api-client: $API_CLIENT_SECRET
  jwt-scope: $API_JWT_SECRET
  signing-key: $API_SIGNING_KEY
  1. Start a local version of the app. If configured correctly, you should be able to navigate to the /results/upload/submit page.
  2. Try uploading a file in the file upload screen. A correctly formatted example file is available here
  3. If all goes well, you should get a success confirmation and be able to navigate to the upload history page and drill into the detailed view of the result you uploaded.