From c716dcbc1376a223dbc84a11fe1c8913841527a5 Mon Sep 17 00:00:00 2001 From: ividito Date: Tue, 18 Jul 2023 14:18:38 -0300 Subject: [PATCH 1/2] Tuning cicd frequency --- .github/workflows/cicd.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 163cc01..124a466 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,6 +1,11 @@ name: CICD on: + push: + branches: + - 'main' + - 'dev' + - 'production' pull_request: types: [ opened, reopened, edited, synchronize ] From 5a7a7472914fcafc51a6996869b7dff2bdd28137 Mon Sep 17 00:00:00 2001 From: anayeaye Date: Mon, 14 Aug 2023 14:00:59 -0600 Subject: [PATCH 2/2] correct the pgstac update collection extent method to use pgstac > v0.7 inbuilt collection_extent utility --- api/src/vedaloader.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/api/src/vedaloader.py b/api/src/vedaloader.py index 594b1af..99e0010 100644 --- a/api/src/vedaloader.py +++ b/api/src/vedaloader.py @@ -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) WHERE collections.id=%s; """, (collection_id,),