CDCgov / phdi

https://cdcgov.github.io/dibbs-site/
Creative Commons Zero v1.0 Universal
34 stars 14 forks source link

Update seed-data script to use save data endpoint #2368

Closed emmastephenson closed 1 month ago

emmastephenson commented 2 months ago

What needs to be done

Right now the seed script for the eCR Viewer manually saves data to the database, rather than using the endpoint on the eCR Viewer to do so. It needs to use the endpoint.

Why it needs to be done

In a deployed scenario, the eCR Viewer is the final phase of the pipeline - it saves both metadata and blob storage for future reading. Right now our seed script doesn't match this user pattern, and instead directly saves data to the database without using the Viewer's endpoint. Since the seed script is the backbone of our local development, this means we're not testing and using the application in the way our users will - which we need to fix.

Acceptance Criteria

Technical Notes

Handy links:

emmastephenson commented 2 months ago

Considerations from Planning:

angelathe commented 2 months ago

One more acceptance criteria - Need to remove extraneous schema definitions in 01-init.sql in this ticket (see link)

angelathe commented 2 months ago

Putting this back into the backlog - still blocked by 2367