CDCgov / dibbs-query-connector

A FHIR client allowing public health agencies to query health care organizations directly or via a TEFCA QHIN
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

Dev dump #158

Open bamader opened 1 week ago

bamader commented 1 week ago

Mount a pg_dump extract to docker dev

Summary

This PR creates a .sql dump of the PG database just after the eRSD has successfully been loaded via a local docker compose run. It has been mounted into the docker dev volume to automatically run as an entrypoint script when running in dev mode.

Related Issue

Fixes #122

Additional Information

Added a readme with the command needed to create the dump file in case we ever want to update the dev dump. Code tested by nuking all images, docker system pruneing, then just running npm run dev and verifying values were in the DB via DBeaver.

bamader commented 6 days ago

Actually that reminds me that we need to also call the valueset insertion functions for the DIBBs hardcoded values / JSON dump file that you wrote at /src/app/assets/DIBBS_Custom_ValueSets.json in the create DB functions overall. This dump doesn't include those so our e2e's will totally fail. I'll update the code and the dump mount.

bamader commented 6 days ago

@robertandremitchell I believe we'll need to upload it for tests to pass once we take the migrations out. I'll have to modify the github workflow to take advantage of it. I think it's also probably good to commit it in case anyone else needs to pull things down and be able to iterate quickly, e.g. a designer who wants to test out a new feature's appearance.