- Receiving a CSV file from the research container with the results of the code job
- Saving that CSV to memory (TBD) for the lifespan of this container
- Setting up results to be reviewed and sent to the Management App in one of two ways
This happens if there are Member Reviewer public keys (from the Member Reviewer Keypair) in the Management App's database.
- This app encrypts the results in a zip using the (encryption)[https://github.com/safeinsights/encryption] library and the Member Reviewers' public keys
- Then, it sends the encrypted results to the Management App at
/api/job/<jobId>/results
This happens if there are 0 results encryption keys for that organization in the Management App database.
- This app allows members(TM) to log in and approve the results of the code job (AKA the CSV files)
- Once the members approve the results, it will post the CSV file to the Management App at
/api/job/<jobId>/results
Set the HTTP_BASIC_AUTH
variable in .env
. Example values username:password
or admin:password
-
Create a study on the Management App
-
Get the UUID of the study here: http://localhost:4000/member/openstax/studies/review
-
Alternatively, you can run
docker compose exec postgres psql -U mgmnt mgmnt_dev -c 'select id,created_at from study_job;'
-
Take that uuid and upload it manually like so:
curl -X POST http://localhost:3002/api/job/:jobId/upload -F "file=@test-data/industry.csv" -u <HTTP_BASIC_AUTH> curl -X POST http://localhost:3002/api/job/:jobId/upload -F "file=@test-data/currency.csv" -u <HTTP_BASIC_AUTH>
-
Approve the study with the UUID you just uploaded
In .env
, set the value of MANAGEMENT_APP_PRIVATE_KEY
using key you set up to authenticate member routes on the Management App.
echo "MANAGEMENT_APP_PUBLIC_KEY='`cat ./public_key.pem`'" >> .env
echo "MANAGEMENT_APP_PRIVATE_KEY='`cat ./private_key.pem`'" >> .env
aws configure list-profiles
aws sso login --profile your-profile
AWS_PROFILE=your-profile AWS_REGION=your-region npm run deploy:ecr