-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev dump #158
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I believe we need to mount the same volume to the db docker-compose-e2e so that the data is available for end to end tests.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me. I wonder if we actually want to commit the vs_dump.sql
to github or just have it locally? or do we need to upload it for tests to pass successfully?
@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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
running into some issues getting this to run either in dev mode or docker. I ran into some of these docker issues on Marcelle's old PRs, so not sure how much this is new, but attached is what I am currently running into. It is working to...some degree for me in dev, while it's breaking entirely in docker. below is the screenshot of what happens when I click the Create Query button.

@robertandremitchell Actually your error log helped me find a problem! In dev mode, we should never need to be accessing those seeding scripts because it loads everything from the DB mount--i.e. we only seed from a docker run where we're trying to do the data dump, not once we're already in dev mode. I've moved those inserts into the |
thanks! that seems to have fixed dev mode for me. still trying to figure out what is happening with my docker error when I click the button. This is the same as I was getting on Marcelle's prior PR so idk if it's something specific to my docker. I'll try updating, pruning, then building fresh 🤞🏽
|
@bamader , with some help from Marcelle and a fresh Docker install, I seem to have made some progress. Based on the log (attached), it broadly seems to have worked. I have a count of 226 conditions, 33810 conditions, and 1390 valuesets, which broadly seems right. However, category is NULL for all conditions, which is leading to a weird display: ![]() I'm not sure if this is a sequencing issue with the migrations and the creation of the eRSD data, or something else. At some point, I had gotten this to render correctly on |
@robertandremitchell Yeah it looks like a sequencing problem. Migration 7 is the category data which currently in main relies on a staging table that's a bit harder to use than standard pulldowns. I think I should be able to just make this an additional asset during seeding though, so let me give that a try. Good find! |
I ran into no errors and things started up super quickly when I ran |
I've run it a few different times and sometimes get Newborn Screening and Cancer back, which are the two missings ones and I think responsible for the downwind deltas. I...could not tell you why I sometimes get them 😓 , I've tried a few times to try to replicate. |
@robertandremitchell Okay category data should be tracked now (and as an added plus, we get to delete off the last non-setup migration!). Also, from a fully fresh load on both docker compose and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! worked for me, accept these two conditions had no categories, for me:
Invasive Group B beta-hemolytic streptococcal disease
Invasive Group A beta-hemolytic streptococcal disease
@robertandremitchell Ah good find, the parsing script I used must've clipped a code or something. I'll add that back in! |
Okay missing condition categories should now be fixed. @robertandremitchell Want to give you a final checking chance before I merge anything so let me know when you're satisfied! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! thanks to you both @m-goggins and @bamader for helping me debug!
Mount a pg_dump extract to docker dev
Summary
This PR does a lot of things:
.sql
dump of the PG database after all eRSD data has been parsed and all DIBBs custom cases have been loadedRelated 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 prune
ing, then just runningnpm run dev
and verifying values were in the DB via DBeaver.