From bed8a7d8fe1ce7dd15cf930730de3a452c2bfc59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20L=C3=BCthi?= Date: Fri, 20 Dec 2024 12:34:45 +0100 Subject: [PATCH 1/2] Update stac-browser reference Requires new proxy settings --- CHANGELOG.md | 1 + Directory.Build.props | 2 +- docker-compose.yml | 2 +- src/Geopilot.Api/appsettings.json | 5 +---- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29dc5e39..9e072803 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changed - The code for this application is now available under the AGPL 3.0 licence. +- **BREAKING** The application updated to STAC-Browser version 3.2.0 and changed how /browser requests are proxied. ## v1.1.143 - 2024-09-30 diff --git a/Directory.Build.props b/Directory.Build.props index 540058b4..274ff6ae 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -10,7 +10,7 @@ git 8.0-recommended false - 1.1 + 2.0 diff --git a/docker-compose.yml b/docker-compose.yml index 46dbe228..c136d292 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: stac-browser: - image: ghcr.io/geowerkstatt/stac-browser:latest + image: ghcr.io/geowerkstatt/stac-browser:3.2.0 ports: - 8080:8080 environment: diff --git a/src/Geopilot.Api/appsettings.json b/src/Geopilot.Api/appsettings.json index 436563f5..115e0d10 100644 --- a/src/Geopilot.Api/appsettings.json +++ b/src/Geopilot.Api/appsettings.json @@ -16,10 +16,7 @@ "ClusterId": "stacBrowserCluster", "Match": { "Path": "/browser/{**catch-all}" - }, - "Transforms": [ - { "PathRemovePrefix": "/browser" } - ] + } } } }, From fb29e2375e2154b1b5db1b574f1acb6f28c23bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20L=C3=BCthi?= Date: Fri, 20 Dec 2024 12:39:31 +0100 Subject: [PATCH 2/2] Update version expectation --- tests/Geopilot.Api.Test/Controllers/VersionControllerTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Geopilot.Api.Test/Controllers/VersionControllerTest.cs b/tests/Geopilot.Api.Test/Controllers/VersionControllerTest.cs index 6be8cd94..9eb26dc4 100644 --- a/tests/Geopilot.Api.Test/Controllers/VersionControllerTest.cs +++ b/tests/Geopilot.Api.Test/Controllers/VersionControllerTest.cs @@ -9,6 +9,6 @@ public void GetVersion() var result = new VersionController().Get(); Assert.IsNotNull(result); Assert.IsTrue(result.Length > 0); - StringAssert.StartsWith(result, "1.1", StringComparison.Ordinal); + StringAssert.StartsWith(result, "2.0", StringComparison.Ordinal); } }