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

Gs 2736 upgrade stac api #5

Merged
merged 35 commits into from
Mar 24, 2023
Merged

Gs 2736 upgrade stac api #5

merged 35 commits into from
Mar 24, 2023

Conversation

ishiland
Copy link

  • upgrade to latest version of stac-fastapi
  • provide valid stac collections for testing

mmcfarland and others added 30 commits October 25, 2022 15:35
* Queryables 404's for non-existent collection

Return a not-found response if pgstac does not return a queryable
object when passed a non-existing collection id.

* Changelog
…s#477)

* Add bbox and datetime to ItemCollectionUri

Imported str2list function from stac_fastapi.types.search
as already have dependency on it.

* Add bbox and datetime to ABC item_collection

Using same type signature as get_search

* Add bbox and datetime to PgStac item_collection

Used the same base_args -> clean from the search routes
Probably not necessary in this situation but thought
I'd keep it similar (and extensible).

* Update CHANGES.md

* Add bbox and datetime to SQLAlchemy item_collection

Copy the bbox and datetime filtering from the search routes

* Fix: convert SQLAlchemy bbox to list[int]

* Add item_collection bbox/datetime tests
* bump allowable versions of pygeofilter to include .2.x

* deps: floor pygeofilter at v0.2

* deps: ceil fastapi belowe 0.87

Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
* fix: items endpoint is geojson

* chore: update changelog

Co-authored-by: Jeff Albrecht <geospatialjeff@gmail.com>
* update changelog

* bump versions

* formatting

* gitlab -> github

* add if

* roll our own pre-commit action

* formatting
… `pgstac` app (stac-utils#495)

* Add environment variable to disable Transaction ext in pgstac app

* revert disable transactions env var

* Add ENABLED_EXTENSIONS env var for pgstac app

* fix quotes
* bump versions

* update changelog
* Correct path in register_update_item docstring

* Add stac-utils#507 to changelog
Adds link targets and dates
* deps: update pgstac to v0.6.12

We have a floating v0.6.* dependency in code, but our CI contains deps on (two
different) older pgstac versions. This commit updates those references to point
to https://github.com/stac-utils/pgstac/releases/tag/v0.6.12, and contains some
sidecar yaml linting.

* chore: update changelog
* feat: add validation via stac-api-validator

Includes a local validation script and a CI job.

* fix: get_item response is geojson

* fix, pgstac: self link, item collection endpoint

* fix: don't add context extension to landing page

* deps: update uvicorn to non-yanked version

* fix: exclude optional collection values

If we're not using response models, we can't automagically exclude none values.

* fix: add required links to item collection

sqlalchemy
* Add 3.11 to test matrix

* gitlab -> github

* add if

* dont install server extra

* roll our own pre-commit action

* pin dev version of pypgstac[psycopg]

* remove pypgstac from dev, add psycopg extra to install

* pin pypgstac

* revert change sto pgstac deps

* bump uvicorn to 0.19.0

* whoops

* fix: define __str__ for Queryables

Needed for 3.11 support.

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
* deps: bump pre-commit dep versions

Needed to pick up PyCQA/isort#2078

* lint: rename some ambiguous variables
* fix, pgstac: delete items with collection id

* chore: update changelog
* Rework update_openapi function.

* Update changelog.

* Additional documentation and add removed code back as deprecated.

* chore: fixup changelog

* refactor: move VndOaiResponse back to old location

---------

Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
* fix: support intersects for GET requests

* chore: update changelog
* Set limit to max value rather than error. Fixes stac-utils#496.

* Update limit tests.

* Update changelog.
)

* fix: return 404 for missing collection on /items

sqlalchemy

* chore: update changelog
* ci: bump pgstac

* ci, docker: add backend-specific dockerfiles

* Add changelog entry

---------

Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com>
We'll need to change these to tagged versions once a tagged version is released.
* add nginx service to docker-compose, proxy pgstac and sqlalchemy apps

* Update docker-compose.yml

Co-authored-by: Christian Wygoda <103508637+c-wygoda@users.noreply.github.com>

* feat: add nginx proxy in own docker-compose file

Includes a Makefile rule to run it, and some documentation in README.md. Also
adds a markdownlint silencer and one or two touchups to the whitespace.

* Update changelog

---------

Co-authored-by: Christian Wygoda <103508637+c-wygoda@users.noreply.github.com>
Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
Co-authored-by: Nathan Zimmerman <npzimmerman@gmail.com>
These were all the references to it that I could find.
* fix: update filter conformance uris

* fix: names, add more conformance
* deps: bump pgstac to v0.7.1

* ci: only build packages on main or tags

* ci: don't log on services

* ci: up timeout minutes

* chore: update changelog

* test: add sorting test

Confirming that stac-utils#514 is fixed with pgstac v0.7.0.
* release: v2.4.4

* fix, docs: tag naming scheme in RELEASING
@ishiland ishiland requested a review from workmap March 20, 2023 17:15
@ishiland ishiland merged commit 6756777 into develop Mar 24, 2023
@ishiland ishiland deleted the GS-2736_upgrade-stac-api branch March 24, 2023 12:42
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.