BDMS 626: mp height#610
Merged
ksmuczynski merged 7 commits intokas-well-BDMS-626-inventory-ingestion-updates_v2from Mar 18, 2026
Merged
BDMS 626: mp height#610ksmuczynski merged 7 commits intokas-well-BDMS-626-inventory-ingestion-updates_v2from
ksmuczynski merged 7 commits intokas-well-BDMS-626-inventory-ingestion-updates_v2from
Conversation
…ft for non-null observations Either of these should be required when a non-null observation is being added to the DB so that dtw bgs can be calculated
Contributor
There was a problem hiding this comment.
Pull request overview
Adds validation and normalization around measuring point height fields during well inventory CSV import so groundwater-level observations can reliably compute DTW/BGS, and extends unit test coverage for the new rules.
Changes:
- Validate that
mp_heightandmeasuring_point_height_ftdo not conflict when both are provided. - Normalize a single
universal_mp_heightvalue (prefermeasuring_point_height_ft, fallback tomp_height) for well creation and observations. - Add tests covering precedence, blank values, conflict errors, and required-height behavior when depth-to-water is provided.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
services/well_inventory_csv.py |
Adds mp-height conflict validation, derives a unified height value, enforces requirement when depth_to_water_ft is present, and uses unified height for CreateWell + Observation. |
tests/test_well_inventory.py |
Updates existing fixtures to avoid new conflicts and adds targeted tests for mp-height selection and validation failures. |
You can also share your feedback on Copilot code review. Take the survey.
ksmuczynski
reviewed
Mar 18, 2026
ksmuczynski
reviewed
Mar 18, 2026
ksmuczynski
reviewed
Mar 18, 2026
ksmuczynski
reviewed
Mar 18, 2026
ksmuczynski
requested changes
Mar 18, 2026
Contributor
ksmuczynski
left a comment
There was a problem hiding this comment.
Very minor comments, none of which are required to be addressed. One thought I had was about the BDD tests and feature files - should they be updated to reflect these changes, too? This is the only reason I am requesting changes and not approving.
6fe2bc1
into
kas-well-BDMS-626-inventory-ingestion-updates_v2
5 checks passed
ksmuczynski
added a commit
that referenced
this pull request
Mar 19, 2026
…6-mp-height" - This revert removes the conflict check between mp_height and measuring_point_height_ft - Removes the requirement that one of those heights be present for non-null DTW observations - Removes the importer’s use of the merged universal_mp_height logic - Removes all of the new mp-height-specific tests - This reverts commit 6fe2bc1, reversing changes made to 6fb61cf.
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.
…ft for non-null observations
Either of these should be required when a non-null observation is being added to the DB so that dtw bgs can be calculated
Why
This PR addresses the following problem / context:
measuring_point_height_ftormp_heightshould be required if there is a non-null observationHow
Implementation summary - the following was changed / added / removed:
mp_height != measuring_point_height_ftmeasuring_point_height_ft, otherwise usemp_height, forObservationandMeasuringPointHistoryNotes
Any special considerations, workarounds, or follow-up work to note?