This lightweight little PR hooks up the button Marcelle created with the DB Creation functions I wrote. Took longer than anticipated to get set up because of debugging some connectivity issues, though they've since been resolved. The only main thing to note is the use server declaration on dbCreation, which forces all the retrieval to occur server-side and keep the API load on the client low.
Notes
Since this PR doesn't actually delete the migrations or modify the first one, hitting the button right now isn't needed. The task of actually deleting the migrations will require an overhaul of our end to end tests (which currently rely on seeded data), as well as will make things painful for local devs until or if an extract is prepared that circumvents the need to hit press the button every spinup.
This PR was tested through console logs and tunneling in via DBeaver to verify valuesets were inserted.
Make DB Creation Button Work
Summary
This lightweight little PR hooks up the button Marcelle created with the DB Creation functions I wrote. Took longer than anticipated to get set up because of debugging some connectivity issues, though they've since been resolved. The only main thing to note is the
use server
declaration on dbCreation, which forces all the retrieval to occur server-side and keep the API load on the client low.Notes
Since this PR doesn't actually delete the migrations or modify the first one, hitting the button right now isn't needed. The task of actually deleting the migrations will require an overhaul of our end to end tests (which currently rely on seeded data), as well as will make things painful for local devs until or if an extract is prepared that circumvents the need to hit press the button every spinup.
This PR was tested through console logs and tunneling in via DBeaver to verify valuesets were inserted.