-
Notifications
You must be signed in to change notification settings - Fork 4
BDMS-112 Add missing fields to Thing model, schema, and tests
#166
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
670737e
feat: import mixins into `Thing` model
ksmuczynski 362ca0d
reformat: updated fields to comform to SQLAlchemy 2.0 notation. Reorg…
ksmuczynski c53bc5d
reformat: rename code sections for clarity
ksmuczynski c13129a
reformat: move well-related and spring-related columns under the `col…
ksmuczynski 431884b
feat: add versioning to Thing table
ksmuczynski 8c68fa0
refactor: add descriptions to relationships in `Thing` model
ksmuczynski 602ae6a
refactor: update relationships in `Thing` and `Group` tables.
ksmuczynski 46333ae
feat: add `thing` relationship to `WellScreen` model
ksmuczynski af284d6
feat: add `screens` relationship to `Thing` model
ksmuczynski f6a5460
refactor: update `screens` relationship to `Thing` model
ksmuczynski 36a8f43
refactor: add 'passive_deletes=True' parameter to necessary relations…
ksmuczynski b494e4b
refactor: add 'ondelete=CASCADE' to thing_id foreign key
ksmuczynski c9ad45f
refactor: add 'passive_deletes=True' to `asset_associations` relation…
ksmuczynski 1f01dcc
refactor: move `ondelete` parameter into foreign key constraint in De…
ksmuczynski 2c96c0c
refactor: add TYPE_CHECKING to `Contact` model to mitigate circular r…
ksmuczynski 6106c68
feat: add `first_visit_date` field to the `Thing` model
ksmuczynski 98a0d64
refactor: rename `well_type` field to `well_purpose` as decided with …
ksmuczynski 94bd103
feat: add `first_visit_date` field to applicable tests in `test.thing…
ksmuczynski c18a341
feat: add `first_visit_date` field to `tests/conftest.py`
ksmuczynski 64b2cba
refactor: correct polymorphic parent relationship on `Permission` tab…
ksmuczynski 0995492
fix(models): Correct primaryjoin condition in `PermissionMixin` and `…
ksmuczynski 680ac5d
feat: add `permission` and `status` history models to `db/__init__.py`
ksmuczynski 275ae12
fix(models): Use string-based join in Permission model
ksmuczynski c3650f3
fix(models): Correct ForeignKey reference for `contact_id` in `Permis…
ksmuczynski 01127a3
feat: Add `Permission` relationship to `Contact` table
ksmuczynski e9bedf3
refactor: Add 'cascade="all, delete, delete-orphan"' to phone, emails…
ksmuczynski dc93b6a
refactor: reorganize `Contact` model
ksmuczynski dd0c927
fix(models): Explicitly mark foreign keys in polymorphic joins
ksmuczynski 57c5500
feat(models): Update column name in the `search_vector`.
ksmuczynski f5ea3b4
fix(model): resolve errors to allow tests to run without issue.
ksmuczynski cfe8829
refactor: update instance of `well_type` to `well_purpose`.
ksmuczynski d370f3b
refactor: remove `tkinter` import
ksmuczynski a2e781a
refactor (schema): update data type
ksmuczynski c560d13
refactor (schema): update `first_visit_date` field to be required (no…
ksmuczynski b8fff0e
refactor (model): update relationship name
ksmuczynski 8699695
refactor (model): remove # noqa: F821 calls
ksmuczynski a727f74
refactor: update instances of `FieldEventContactAssociation` to `Fie…
ksmuczynski d08c565
fix: resolve foreign key reference
ksmuczynski 440d639
refactor: update data type
ksmuczynski 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
Some comments aren't visible on the classic Files Changed page.
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.