height in inches and feet#83
Open
daveffr wants to merge 1 commit into
Open
Conversation
wwick
requested changes
Apr 6, 2023
wwick
left a comment
Member
There was a problem hiding this comment.
Hi, David. I appreciate your work on this, and sorry that I'm just now reviewing.
I appreciate that this is a small change. At my work, our general rule is that the great majority of changes should be <100 lines, and changes >200 lines won't be reviewed. This allows early feedback and higher quality feedback since you can be more focused on each line that has changed. So good job on that part.
Some points of feedback:
- It's not clear to my what problem this PR is trying to solve, and why this was selected as the approach. I assume you're looking for a way for clinics to easily enter height in feet and inches, but the PR summary should make this clear.
- It's best practice from a systems design perspective to keep backend and frontend as separate as possible. In this case, how users input a patient's height/weight, and how that height is stored in the backend should not depend on one another.
- This change does not include unit tests, and it doesn't include pictures or other end-to-end proof that it is doing what it is supposed to.
- From what I can tell from the generated migration file, this would delete all previous height fields from the database, which doesn't seem right to me. Regardless, since the migration would act on a production database at some point, you should test with sample databases to make sure it's doing what you intend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Right now, a patient’s height on a workup can’t be input in both feet and inches at the same time. I added a field to the workup model to make this possible, then made migrations.