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

Make item geometry and bbox nullable for sqlalchemy backend #398

Merged

Conversation

yellowcap
Copy link
Contributor

@yellowcap yellowcap commented Apr 29, 2022

Related Issue(s):

Description:
Geometry and bbox fields of the Item table need to be nullable to be compliant with the stac standard. This PR makes the two fields nullable for the sqlalchemy backend.

Most upstream fixes in the pydantic classes have already been merged. One bug fix here stac-utils/stac-pydantic#114 is still in review.

The stac-pydantic library needs to have a new release before this PR can be merged, as the updates in the pydantic validator classes need to be installed so they accept null values for these two fields.

The new test of this PR will pass with the next release of stac-pydantic.

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable, and docs build successfully (run make docs)
  • Changes are added to the CHANGELOG.

@yellowcap yellowcap force-pushed the sqlalchemy-make-item-field-nullable branch from 18a9649 to 98c4399 Compare July 12, 2022 08:15
@yellowcap yellowcap force-pushed the sqlalchemy-make-item-field-nullable branch from 98c4399 to ba3ea09 Compare July 12, 2022 08:17
@yellowcap
Copy link
Contributor Author

Ok so the upstream changes are all merged. Since version 2.0.3 of stac-pydantic, the geometry validator includes the nullable option. So the tests pass now and this change is ready for merging from my point of view.

@lossyrob would you mind having a look? Thanks!

@lossyrob lossyrob merged commit 0e4fea3 into stac-utils:master Jul 13, 2022
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.

2 participants