-
Notifications
You must be signed in to change notification settings - Fork 1
BDMS-464 #378
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
BDMS-464 #378
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.
Pull request overview
This PR adds the nma_formation_zone field to the Thing model to preserve the raw FormationZone value from legacy WellData for audit and fidelity purposes, alongside the existing normalized formation code.
Changes:
- Added
nma_formation_zonecolumn to Thing and thing_version tables - Updated well transfer logic to populate the new field from legacy data
- Exposed the field in Thing schemas for create, update, and response operations
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| db/thing.py | Added nma_formation_zone column definition to Thing model |
| schemas/thing.py | Exposed nma_formation_zone in CreateWell, UpdateWell, and WellResponse schemas |
| transfers/well_transfer.py | Updated well transfer logic to populate nma_formation_zone from legacy FormationZone |
| alembic/versions/f1a2b3c4d5e6_add_nma_formation_zone_to_thing.py | Migration to add nma_formation_zone to thing and thing_version tables |
| tests/test_thing.py | Added unit test for UpdateWell schema with nma_formation_zone |
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2dc12b9363
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
The |
|
The formation zone of the well's completion is found in the |
|
@ksmuczynski @jacob-a-brown although Ocotillo has a place for FormationZone, a large number of the formation zones in NMA are not in the Ocotillo lexicon, and in many cases there are multiple formation zones for a given well, e.g. 211DKOT/217PRGR/110AVMB. nma_formation_zone is to facilitate bringing this data over as is. Refactoring into the GeologicFormation model will be done later |
Add nma_formation_zone to Thing
Why
What changed
Files touched
Testing