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/collection summaries and extents #78

Closed
wants to merge 2 commits into from

Conversation

anayeaye
Copy link
Contributor

What

Use inbuilt pgstac utility function pgstac.collection_extent(collection_id text) to apply the maximum date range from the items partitions instead of the outdated collection_temporal_extent utility that uses only the nominal item datetime.

How tested

I executed and verified this method in a test database deployed for this backend pr. I'm still trying to think of ways to test the actual changes in the ingestor but the updating dev deployment and running an actual ingest may be the easiest way to go.

UPDATE collections set content = content || pgstac.collection_extent(collections.id)
WHERE collections.id = :_collection;

NASA-IMPACT/veda-backend#211

@anayeaye
Copy link
Contributor Author

Meant to open a PR against dev

@anayeaye anayeaye closed this Aug 14, 2023
@anayeaye anayeaye deleted the fix/collection-summaries-and-extents branch August 16, 2023 19:29
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