-
Notifications
You must be signed in to change notification settings - Fork 0
Use ogsi model #32
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
Open
AlexAxthelm
wants to merge
56
commits into
main
Choose a base branch
from
use-ogsi-model
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Use ogsi model #32
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
2fa6e45
Add dependency on stitch models for API
AlexAxthelm 2d08ac8
remove previous source model in favor of generic
AlexAxthelm 5ef1c25
Remove domain model from init_job seed data
AlexAxthelm e68fcd7
linting: unused object
AlexAxthelm 6ec0a17
update tests
AlexAxthelm 0b55dd9
Merge branch 'main' into use-ogsi-model
AlexAxthelm 5a7b844
remove country from data model
AlexAxthelm 4d67828
Add OilGasField endpoint
AlexAxthelm 85fddad
Get OGfields in frontend
AlexAxthelm c47fc77
add OGfields in init_job
AlexAxthelm 7fd4a71
match path between frontend and api
AlexAxthelm 5bfbb24
update path to kebab case
AlexAxthelm e904786
Trigger CI
AlexAxthelm 344e99b
style: ruff
AlexAxthelm da251d8
add domain model to DB
AlexAxthelm 6113520
require user for fetching
AlexAxthelm faaf88f
rename source field file
AlexAxthelm 2c2de18
use OilGasFieldSourceModel
AlexAxthelm 87b30fe
seed ogfield source table
AlexAxthelm cbe3f12
wip: fetching resources, no constituents
AlexAxthelm ac8781b
style: format
AlexAxthelm da6b8a0
wip; adding in og_field memberships
AlexAxthelm 2179929
wip: restore api-level Source info
AlexAxthelm 7b6a299
wip: more source memberships
AlexAxthelm 50423b7
restore mixins
AlexAxthelm 4a71045
wip: source model
AlexAxthelm 77fd8f5
remove unused mixins, formatting, initial OilGasFieldSourceModel impl
mbarlow12 dde7e73
revert og_field_source_actions
mbarlow12 5fa3800
revert entities
mbarlow12 e11158b
fix(tests): align test doubles with BarSource[UUID] and 2-param Resource
mbarlow12 6846c6d
feat: remove payload from ogsi -> Sequence now, integrate tests
mbarlow12 ba09c8b
Merge pull request #33 from RMI/integrate-og-field-source
mbarlow12 b813ee8
merge sources into `oil_gas_field_source`, add errors, membership
mbarlow12 e9d7607
feat: rename actions files, split source/resource calls, add utils
mbarlow12 30ae2cd
update routers
mbarlow12 90e6a35
Merge pull request #34 from RMI/tweak-member-pkgs
AlexAxthelm f6872fc
Merge pull request #35 from RMI/ogsi-db-models
AlexAxthelm b91c6ed
fix(ogsi): flatten OGSISrcKey Literal union for SQLAlchemy compatibility
mbarlow12 41fed36
fix(api): use resource_id param instead of builtin id, handle empty s…
mbarlow12 85850ad
fix(tests): update imports and route paths to match restructured modules
mbarlow12 f67a975
Merge pull request #37 from RMI/tests/integrate-models-test-fixes
AlexAxthelm bfbbfa2
Merge pull request #36 from RMI/ogsi-db-rest
AlexAxthelm 0d5220b
linting: unused imports
AlexAxthelm 2831af7
style: format
AlexAxthelm 1964611
update args for entity creation to match mixin
AlexAxthelm 5320ea0
iselect sources in load with resource
AlexAxthelm 53d09d3
Explicitly query source members
AlexAxthelm 4e447f6
use correct type
AlexAxthelm d7e3541
style: format
AlexAxthelm 3ae0694
Cast single GET as OGFieldView
AlexAxthelm 91f8e9f
linting/formatting
AlexAxthelm f0ad029
Add provenance data to model output
AlexAxthelm 02cf08b
style: format
AlexAxthelm bf430f1
require user to get source data
AlexAxthelm 8af20d9
Merge branch 'main' into use-ogsi-model
AlexAxthelm b420bae
Remove `Self` from project
AlexAxthelm 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| from stitch.api.errors import StitchAPIError | ||
|
|
||
|
|
||
| class ResourceNotFoundError(StitchAPIError): ... | ||
|
|
||
|
|
||
| class ResourceIntegrityError(StitchAPIError): ... | ||
|
|
||
|
|
||
| class SourceNotFoundError(StitchAPIError): ... | ||
|
|
||
|
|
||
| class SourceIntegrityError(StitchAPIError): ... |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,13 @@ | ||
| from .common import Base as StitchBase | ||
| from .sources import ( | ||
| GemSourceModel, | ||
| RMIManualSourceModel, | ||
| CCReservoirsSourceModel, | ||
| WMSourceModel, | ||
| ) | ||
| from .oil_gas_field_source import OilGasFieldSourceModel | ||
| from .resource import MembershipStatus, MembershipModel, ResourceModel | ||
| from .user import User as UserModel | ||
|
|
||
| __all__ = [ | ||
| "CCReservoirsSourceModel", | ||
| "GemSourceModel", | ||
| "MembershipModel", | ||
| "MembershipStatus", | ||
| "RMIManualSourceModel", | ||
| "ResourceModel", | ||
| "StitchBase", | ||
| "UserModel", | ||
| "WMSourceModel", | ||
| "OilGasFieldSourceModel", | ||
| ] |
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.
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.