-
Notifications
You must be signed in to change notification settings - Fork 3
BDMS 113 & 114: sample & observation updates & revisions | other updates and revisions #141
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
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
839c924
refactor: type-hint observation table
jacob-a-brown fb8dbc5
feat: update waterlevels transfer for model revisions
jacob-a-brown fea2535
Merge branch 'staging' into jab-observation-updates
jacob-a-brown 4f90b5e
feat: rename measurement_method to sample_method for new style
jacob-a-brown 6dc2d7a
refactor: use sample_type instead of observation_class
jacob-a-brown d17bce6
note: note validations that need to be written
jacob-a-brown e259f72
refactor: update tests for new sample fixtures
jacob-a-brown 7ce9114
refactor: rename sample_type to activity_type
jacob-a-brown 5613e9d
refactor: update qc_sample lexicon
jacob-a-brown fb3765f
feat: update wl observation and sample transfers
jacob-a-brown 16997b4
note: add developers note to model_patcher
jacob-a-brown 04759de
WIP: sample, field, observation updates
jacob-a-brown 0ee9b04
feat: implement POST for new sample/field
jacob-a-brown 6044b68
refactor: revise test_409_add_sample_ivnalid_sample_name for updates
jacob-a-brown bf843f2
feat: enable many-to-many fieldevent/contact
jacob-a-brown 3dff2fa
feat: enable many-to-many fieldevent/contact
jacob-a-brown ec550c0
refactor: remove sample helper - use association proxies instead for DRY
jacob-a-brown bb7b26d
note: remove old notes
jacob-a-brown 85d19f5
refactor: update sample API and tests for revised schema
jacob-a-brown f94f51a
note: note validations required for sample
jacob-a-brown fb167f7
refactor: update PATCH sample tests for revised schema
jacob-a-brown 85d36ac
feat: add field_activity to sample response for frontend use
jacob-a-brown 95c65c8
note: note reusable utc converter function for schemas
jacob-a-brown 63623ff
refactor: remove outdate note
jacob-a-brown 2d12e78
refactor: update all sample tests for revised schema
jacob-a-brown a962de3
Merge branch 'staging' into jab-observation-sample-field-revisions
jacob-a-brown 2b6637a
refactor: use joinedload to prevent N+1 issues with lazy loading
jacob-a-brown 9dab2fb
refactor: revise observation models for revised schemas
jacob-a-brown c0d0e4a
test: skip geochronology tests for now
jacob-a-brown 8a5d0c3
refactor: deprecate geothermal for now
jacob-a-brown d967c5b
refactor: only enable event contacts to relate to a sample
jacob-a-brown 23c4567
WIP: water level transfers
jacob-a-brown 7ebd8b8
refactor: PR 141 feedback
jacob-a-brown 8a518e5
refactor: remove cascade behavior of field event contact association
jacob-a-brown 9cf0efe
fix: ensure correct relationships for FieldEventContactAssociation
jacob-a-brown 61301ef
refactor: update FieldEvent documentation per PR feedback
jacob-a-brown 31df3ec
refactor: PR 141 feedback - update documentation
jacob-a-brown b4ae588
refactor: address PR 141 feedback
jacob-a-brown 955831e
refactor: infer collecting organization from contact
jacob-a-brown File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
I worry about the fragility of this. If the error text ever changes even slightly this breaks. No action needed now but let's consider ways to improve the database error handler
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.
I see what you mean - it's another place where we need to keep track of names. Instead of having separate if statements for each potential error, we can keep track of all constraints - most often
foreign keyandunique- and then catch those errors if they happen and return appropriate messages by decoding the error message.