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

New Release v1.28.0 - #minor #473

Merged
merged 43 commits into from
Nov 25, 2024
Merged

New Release v1.28.0 - #minor #473

merged 43 commits into from
Nov 25, 2024

Conversation

sami-nouidri-swisstopo
Copy link
Contributor

@sami-nouidri-swisstopo sami-nouidri-swisstopo commented Nov 22, 2024

The deployment on DEV has been done and tested (locally) successfully. As such, I want to merge develop into master to conduct further integration tests.

For reminder, this is the feature being added.

benschs and others added 30 commits September 24, 2024 13:37
In #440 we added
CommonMiddlewareWithInternalRedirect to respond to URLs that don't end
with a trailing slash without user-visible redirection. This was primarily
done to handle a limitation of AWS API Gateway v1. We eventually decided to
use API Gateway v2 which does not have this limitation.

Hence, we remove this code that is not useful and update the tests accordingly.
This is basically a revert of #440
although we keep some of the test refactoring/improvements.
This should fix the following failure:

```
app/tests/test_admin_page.py:337:25: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation)
```
PB-796: remove CommonMiddlewareWithInternalRedirect.
Endpoint to get list of items is sometimes slow. This is due to the sql query
that the postgresql planner does not optimize properly, even though the indexes
seem to be set as expected. Using a subquery to filter greatly improves the
performance (up to 1 second reduction in query execution time).
Fix unapplied changes to spec.
Add optional href field to request body of create/update asset.
PB-1071: add new mime types for Zipped LAS and Cloud Optimized Point
LukasJoss and others added 13 commits November 6, 2024 13:35
We are delegating the authentication to API Gateway which sets the
`Geoadmin-Username` header. However due to how API Gateway and JWT-based
authentication work, the header is only set at login time. It is on the service
to keep track of the user afterwards.

This change updates service-stac in Dev to trust the `Geoadmin-Username` header
if it is present. Then service-stac persists the user across their whole session.

Relevant documentation is at https://docs.djangoproject.com/en/5.1/howto/auth-remote-user/
PB-1009: trust API Gateway to authenticate users.
…y provider

The response from the /collections route can now be filtered by provider. The
get method of COllectionList has also been re-factored to reduce code
repetition.

In order to achieve this, filter_queryset has been overwritten in CollectionList
to read the provider argument and filter the dataset accordingly.
…by-provider

PB-224: Added a query parameter on the /collections route to filter by provider
@sami-nouidri-swisstopo sami-nouidri-swisstopo merged commit 9aa5625 into master Nov 25, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants