-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding Category data to Conditions table #88
Adding Category data to Conditions table #88
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 fine to me as is, though I would probably be in the camp of just using INSERT statements to make that temporary table. I have no problem exposing this file publicly, but we probably aren't looking to do so. Mounting and S3 both seem like overkill to me, but that's more a stylistic and preference thing, I think--I would rather our DB product not establish the pattern of bringing in externally mounted volumes. I think the seeding/creation should be as self-contained as possible. I don't feel strongly either way, and I don't think anything here is blocking though!
I'm torn, I think I lean toward a bunch of happy to look into that option if we think it's cleaner. |
@bamader definitely agree that ultimately all database creation should be handled in a single place (the work you and @m-goggins are doing). I totally forgot about this when reviewing. I'd propose that we move this along so that @robertandremitchell and @fzhao99 aren't blocked on their query building work, but eventually have this along with all other seeding handled at the app layer. |
@DanPaseltiner That sounds good to me--approving with the idea that we revisit the conversation during broader DB creation! |
Makes sense to me. I've created a new issue in the backlog so that we don't lose track of that work (https://linear.app/skylight-cdc/issue/QUE-43/refactor-conditionscategory-migration), but I will work on getting this merged shortly (darn CI tests). Thank you both for your review! |
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.
👍
Agreed that we should probably avoid the mounting / external host route given the (relatively) static nature of this data. Also lean towards just doing it the brute force INSERT
way, but obviously if we could get it through an API call that'd be best
…mation-for-conditions
…mation-for-conditions
requesting a re-review since switching to |
PULL REQUEST
Summary
This adds a new column to the
conditions
table,category
. This is an organizational structure that we need to organize our conditions to display like so: https://www.figma.com/design/Iuw9me6kYftBF4WTCEsCZz/Query-Connector?node-id=475-18708&node-type=frame&t=Lcg6TdahnUvYPBsR-0These are the categories we would end up with:
the three missing are ones we added. Here are my thoughts on how to handle:
Cancer (Leukemia)
, which, probably fairly reasonably, could be coded to coded to be included in theCancer
category.Birth Defects and Infant Disorders
? I don't see an immediately obvious one we would nest Newborn Screening under, otherwise. I can see an argument for it being standalone.a few backend considerations: right now, we are just using INSERT statements to create the temporary
category_data
table that needs to be merged withconditions
.Other ideas:
Related Issue
Fixes #68
Acceptance Criteria
Please copy the acceptance criteria from your ticket and paste it here for your reviewer(s)
For frontend PR’s - include a description (including anything that’s out of scope) for what you want the designers to review
Additional Information
Anything else the review team should know?
Checklist