This repository was archived by the owner on Jun 18, 2024. It is now read-only.
forked from NASA-IMPACT/veda-stac-ingestor
-
Notifications
You must be signed in to change notification settings - Fork 0
Update staging to ligneup with dev #20
Open
amarouane-ABDELHAK
wants to merge
12
commits into
main
Choose a base branch
from
dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
18fbd43
Upgrade pypgstac to 0.7.10 (#7)
slesaad be05a40
Support multi-asset items, update summaries method (#11)
slesaad e81396b
Pin pydantic version
slesaad ecc0d75
add a manual trigger to the cicd workflow to use when env vars are up…
Caden-Helbling dd1130f
Merge pull request #16 from US-GHG-Center/manual-workflow-trigger
Caden-Helbling 2bee9aa
update subnet type of lambda
Caden-Helbling 2a1e335
Merge pull request #17 from US-GHG-Center/lambda-subnet
Caden-Helbling 2b7699a
update lambda subnet type to PRIVATE_WITH_EGRESS
Caden-Helbling ca8bcfd
Merge pull request #18 from US-GHG-Center/lambda-subnet
Caden-Helbling cd60a0c
update cdk version
Caden-Helbling ed3ff56
Merge pull request #19 from US-GHG-Center/lambda-subnet
Caden-Helbling b8ef667
Update README.md
slesaad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ permissions: | |
| contents: read | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,18 +30,7 @@ def update_collection_summaries(self, collection_id: str) -> None: | |
| logger.info(f"Updating extents for collection: {collection_id}.") | ||
| cur.execute( | ||
| """ | ||
| UPDATE collections SET | ||
| content = content || | ||
| jsonb_build_object( | ||
| 'extent', jsonb_build_object( | ||
| 'spatial', jsonb_build_object( | ||
| 'bbox', collection_bbox(collections.id) | ||
| ), | ||
| 'temporal', jsonb_build_object( | ||
| 'interval', collection_temporal_extent(collections.id) | ||
| ) | ||
| ) | ||
| ) | ||
| UPDATE collections set content = content || pgstac.collection_extent(collections.id) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For veda-backend we are overriding the default pgstac collection extent with a new user defined function that captures the max end datetime of items in a collection (when this matters is for annual items that have a nominal datetime of January 1 but you want the collection extent to include the full year so a November search will also intersect that item). https://github.com/NASA-IMPACT/veda-backend/blob/develop/database/runtime/handler.py#L260-L268 |
||
| WHERE collections.id=%s; | ||
| """, | ||
| (collection_id,), | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| aws-cdk-lib==2.21.1 | ||||||
| aws-cdk-lib==2.128.0 | ||||||
| aws-cdk.aws-lambda-python-alpha==2.21.1a0 | ||||||
| black | ||||||
| boto3-stubs[essential] | ||||||
|
|
@@ -8,7 +8,7 @@ httpx | |||||
| isort | ||||||
| moto[s3,dynamodb] | ||||||
| pytest | ||||||
| pydantic | ||||||
| pydantic==1.10.12 | ||||||
| python-dotenv | ||||||
| python-multipart | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| pytest-mock | ||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.