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

Ingest the value of the special key 'private' into the corresponding column #327

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

drnextgis
Copy link
Collaborator

@drnextgis drnextgis commented Nov 28, 2024

Fixes #243

This change enables the ingestion of the content from the private key into the private column of the database in hydrated mode (the default). For example, for a STAC item like:

{
    "id": "pgstac-test-item-0003",
    "private": {"created_by": "stac-task"},
    ...
}

The {"created_by": "stac-task"} json document will be ingested into the private column and will not appear in the content column.

Example:

postgis=# select private, content from items where id = 'pgstac-test-item-0003';
-[ RECORD 1 ]-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
private | {"created_by": "stac-task"}
content | {"bbox": [-85.4501, 36.1249, -85.4249, 36.1501], "links": [{"rel": "collection", "href": "joplin", "type": "application/json"}], "assets": {"cog": {"href": "s3://noaa-eri-pds/2020_Nashville_Tornado/20200307a_RGB/20200307aC0852700w360900n.tif", "type": "image/tiff; application=geotiff; profile=cloud-optimized"}}, "properties": {"event": "Nashville Tornado", "datetime": "2020-03-07T00:00:00Z"}, "stac_extensions": []}

@drnextgis drnextgis force-pushed the private-ingest branch 2 times, most recently from 9b6ec54 to f8d14cc Compare November 28, 2024 13:25
@drnextgis drnextgis marked this pull request as ready for review November 28, 2024 15:44
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.

Unable to ingest private metadata
1 participant