-
Notifications
You must be signed in to change notification settings - Fork 3
BDMS 55: asset coverage #97
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
53 commits
Select commit
Hold shift + click to select a range
c65920e
refactor: update observation model
jacob-a-brown a29cf20
feat: udpate observation schemas
jacob-a-brown 14a5351
refactor: simplify adding observations
jacob-a-brown eefc32d
fix: remove field_sample_id from observation
jacob-a-brown de3ad5c
refactor: make only the id the primary key
jacob-a-brown 3560028
refactor: inherit from AutBaseMixin
jacob-a-brown 544b910
feat: add temperature and Calcius to lexicon
jacob-a-brown 9b697a4
refactor: update C to deg C for clarity
jacob-a-brown 79ae468
refactor: update observation POST tests
jacob-a-brown 153fc11
note: noting thoughts on query parameters
jacob-a-brown c86e2ba
fix: fix observation fixtures
jacob-a-brown d9f58bc
refactor: order observed properties by observation type
jacob-a-brown d0fe51e
feat: implement get groundwater level observations
jacob-a-brown bd450f4
refactor: observation responses should inherit from ORMBaseModel
jacob-a-brown c39d120
feat: implement GET water chemistry observations
jacob-a-brown 3ded376
refactor: specify URL for 404 wrong observation class
jacob-a-brown dc4f5a1
feat: implement get observations for observation classes
jacob-a-brown 4db3473
feat: implement general GET for /observation
jacob-a-brown 75a54c4
feat: add auth to GET endpoints
jacob-a-brown edda50b
feat: implement PATCH for groundwater level observations
jacob-a-brown 1ab5c49
feat: create observation helpers for sub tables in observation table
jacob-a-brown 4944871
refactor: update error msg for wrong observation class ok id
jacob-a-brown c626ea3
refactor: update observation fixtures dt for testing order
jacob-a-brown 202a63e
feat: implement PATCH for water chemistry observations
jacob-a-brown caf541a
feat: implement PATCH for geothermal observations
jacob-a-brown 39be19f
feat: implement DELETE observation by ID
jacob-a-brown 11e9205
Merge branch 'jab-api-coverage-contact' into jab-api-coverage-observa…
jacob-a-brown 2ed59d1
Merge branch 'pre-production' into jab-api-coverage-observation
jacob-a-brown c4458c6
refactor: use simple_get_by id for /asset/{asset_id}
jacob-a-brown c8fdc3e
refactor: update database error handler
jacob-a-brown cd4fdbe
feat: implement POST endpoints for asset
jacob-a-brown 511341c
feat: endpoint and tests for GET asset by ID
jacob-a-brown 6c779d9
refactor: apply transformer to every item in list if asset is list of…
jacob-a-brown eac0c31
feat: type hint add_signed_url
jacob-a-brown e357b0e
refactor: simplify method to specify observation class
jacob-a-brown 48684d4
Merge branch 'pre-production' into jab-api-coverage-observation
jacob-a-brown 0df0815
Merge branch 'pre-production' into jab-api-coverage-observation
jacob-a-brown 6d6d837
Merge branch 'jab-api-coverage-observation' into jab-api-coverage-asset
jacob-a-brown 4f46bb7
refactor: use <observation class>:<observed_property> in observed pro…
jacob-a-brown 7f7d473
Merge branch 'pre-production' into jab-api-coverage-asset
jacob-a-brown 5c8c3b0
Merge branch 'jab-api-coverage-observation' into jab-api-coverage-asset
jacob-a-brown e63b04e
fix: add signed urls to all retrieved records
jacob-a-brown 600d3bf
refactor: get observation class from path
jacob-a-brown 658b8fa
Merge branch 'jab-api-coverage-observation' into jab-api-coverage-asset
jacob-a-brown e397d1b
feat: implement patch asset schema and test
jacob-a-brown 52e4d06
feat: implemetn DELETE asset and remove from gcs
jacob-a-brown b619f1a
fix: add back thing_id fk error handler for post/patch contact
jacob-a-brown 1a6bbe5
refactor: don't add signed url to asset without existing thing
jacob-a-brown a3ac5d0
refactor: only add signed url for assets with thing associations
jacob-a-brown 71aba67
fix: delete fixtures
jacob-a-brown d48ee3e
refactor: address PR 97 feedback
jacob-a-brown 90cee54
refactor: get_storage_bucket should not be dependency in GET /asset
jacob-a-brown 611ca3d
feat: add developer's note about signed urls for assets
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.
Lets add a comment explaining this behavior e.g.
Do not generate signed urls when listing ALL assets. There is a reason to generate signed urls when listing assets for a given `thing_id` because this is used by the front end to display a gallery of images all at once. This is the only case in which signed urls should be generated for a list of assets. A signed url is always generated when retrieving assets individuallyThere 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.
This note was added at the beginning of the
GETsection of the file since it applies to both GET/assetand GET/asset/{asset_id}