Skip to content
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

Include collection ID in ItemURI #138

Merged
merged 4 commits into from
Jun 8, 2021

Conversation

moradology
Copy link
Collaborator

This PR ensures all URL parameters provided to get a STAC item are available for implementing get_item methods. Previously, only the item id was available.

Closes #135

@geospatial-jeff
Copy link
Collaborator

This will be a breaking change because we are changing the signature of the base class. I'm fine with this because it's more explicit and it's better to forward all path parameters included in the request.

@geospatial-jeff geospatial-jeff merged commit 4b991a7 into stac-utils:master Jun 8, 2021
@geospatial-jeff geospatial-jeff mentioned this pull request Jun 8, 2021
bitner added a commit to bitner/stac-fastapi that referenced this pull request Jun 14, 2021
geospatial-jeff added a commit that referenced this pull request Jun 18, 2021
* add .envrc to .*ignore

* submodules all as one package

* submodules all as one package

* use namespace packages

* remove setup.py from pgrest

* update cicd workflow

* cherry pick pgstac branch to updated package layout

* allow async endpoints

* core modifications needed for pgstac

* cleanup

* cleanup

* setup console scripts

* get transaction api working

* bring in pgstac

* remove old pgrest

* bring Dockerfile over

* cherrypicks

* add removed readme back

* linting, add gzip middleware

* move mangum to awslambda extras

* sorts

* fixes for precommit

* fixes for precommit

* uggh pydocstyle

* pgstac tests and fixes from tests

* get test runners working

* linting

* tag for db compatible with pgstac

* db docker uses different ENV vars

* linted too hard

* test cleanup

* docker env fixes, documentation

* docker env fixes, documentation

* switch from gzip to brotli

* Update stac_fastapi/api/stac_fastapi/api/app.py

Co-authored-by: Kyle Barron <kylebarron2@gmail.com>

* Update stac_fastapi/pgstac/setup.py

Co-authored-by: Kyle Barron <kylebarron2@gmail.com>

* Update stac_fastapi/pgstac/README.md

Co-authored-by: Kyle Barron <kylebarron2@gmail.com>

* fix issues in links for base_url and items relations type

* fix docstring quotes

* add item_id, collection_id in response to #138

* update pypgstac version

* fix parent link

* change id key to items_id in delete_item

* update version of pgstac

* Update docker-compose.yml

call pgstac app as python module rather than using the cli command

Co-authored-by: Jeff Albrecht <jeff@arturo.ai>

* Update stac_fastapi/pgstac/README.md

Co-authored-by: Jeff Albrecht <jeff@arturo.ai>

* Update stac_fastapi/pgstac/stac_fastapi/pgstac/models/links.py

Co-authored-by: Jeff Albrecht <jeff@arturo.ai>

* Update stac_fastapi/pgstac/tests/clients/test_postgres.py

Co-authored-by: Jeff Albrecht <jeff@arturo.ai>

* Update stac_fastapi/pgstac/tests/clients/test_postgres.py

Co-authored-by: Jeff Albrecht <jeff@arturo.ai>

* Apply suggestions from code review

remove unused load_test_data fixtures

Co-authored-by: Jeff Albrecht <jeff@arturo.ai>

* fixes from code review. remove unused/debug logging. remove unused functions. add type hints.

* add import for asyncpg.pool for type hint

* add default for initial pool and connection value

* use request.json() because we are adding in the paging token to the POST request

* linting fixes

* make docker-compose use reload=false for uvicorn to avoid any issues with venvs

* increase number of connections on pg instance, only mount scripts and stac_fastapi directories

* move test data and add test data to both pgstac and sqlalchemy in docker, make no collections return empty array

* fix test for collections returning empty array rather than not found

* add exclude_unset=True when dumping data to json to add in transactions extension

Co-authored-by: Kyle Barron <kylebarron2@gmail.com>
Co-authored-by: Jeff Albrecht <jeff@arturo.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ItemUris should provide collection IDs as well as item IDs
2 participants