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

Fix conformance classes #39

Merged
merged 5 commits into from
Jan 21, 2022
Merged

Fix conformance classes #39

merged 5 commits into from
Jan 21, 2022

Conversation

lossyrob
Copy link
Contributor

@lossyrob lossyrob commented Jan 21, 2022

Description

The upgrade to stac_fastapi, which included a change in how conformance classes were calculated, caused some code we had to manually define conformance classes to produce duplicate classes from two different STAC API versions.

These changes use the new stac_fastapi mechanism and default conformances classes, which produce the correct set. The default Filter extension conformance classes are modified to remove cql-text, which we do not yet support, which coming soon!

Test were added to catch if conformance classes are of an incorrect STAC API version. This would have caught this issue, which resulted in two of the same conformances classes with the only difference being the STAC version.

Additionally, the advertised STAC API version advertised on the api docs was updated and set to use the single configured STAC_API_VERSION.

The API version that is found in the OpenAPI docs was moved from 1.1 to 1.2

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Viewing the conformances classes produced in the landing page of the development server and unit tests.

Checklist:

Please delete options that are not relevant.

  • I have performed a self-review
  • Changelog has been updated
  • Unit tests pass locally (./scripts/test)
  • Code is linted and styled (./scripts/format)

Move to using only the default conformance classes and
extension-provided conformance classes.

Refactor extensions to be located in pcstac.config,
so that tests can share the same extensions.
Do this by checking that any conformance class coming
from api.stacspec.org has the correct STAC API version.
The only place this is used is in the API documentation.
@lossyrob lossyrob requested a review from mmcfarland January 21, 2022 05:45
@lossyrob lossyrob merged commit accc90f into main Jan 21, 2022
@lossyrob lossyrob deleted the fix/rde/conformance branch January 21, 2022 22:24
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