From 8f2d1e4c3c37e93c2a6e01764ae5cfc06eb4318f Mon Sep 17 00:00:00 2001 From: Julien Maupetit Date: Wed, 29 Jan 2025 16:59:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96(api:minor)=20bump=20release=20to?= =?UTF-8?q?=200.17.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added: - Activate and configure Sentry profiling by setting the `SENTRY_PROFILES_SAMPLE_RATE` configuration - Set request's user (`username`) in Sentry's context - Add `Localisation.coordonneesXY` unique contraint [BC] 💥 - Implement `Statique` materialized view Changed: - Prefetch user-related groups and operational units in `get_user` dependency - Improve bulk endpoints permissions checking - Cache logged user object for `API_GET_USER_CACHE_TTL` seconds to decrease the number of database queries - CLI: sort groups and operational units alphabetically in the `list-groups` command - Decrease the number of database queries for dynamic endpoints - Cache the "get PointDeCharge id from its `id_pdc_itinerance`" database query - Improve JSON string parsing using pyarrow engine - Add default values for optional Statique model fields - Migrate database enum types from names to values - Improve API performance by integrating the `Statique` materialized view - Upgrade alembic to `1.14.1` - Upgrade geoalchemy2 to `0.17.0` - Upgrade psycopg to `3.2.4` - Upgrade pyarrow to `19.0.0` - Upgrade pydantic to `2.10.5` - Upgrade pydantic-extra-types to `2.10.2` - Upgrade pydantic-settings to `2.7.1` - Upgrade python-multipart to `0.0.20` - Upgrade questionary to `2.1.0` - Upgrade sentry-sdk to `2.20.0` Fixed: - Rename database `raccordementemum` to `raccordementenum` - Run database migrations in a post-deploy hook Removed: - Remove `Localisation.adresse_station` unique constraint --- src/api/CHANGELOG.md | 5 ++++- src/api/pyproject.toml | 2 +- src/api/qualicharge/__init__.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/api/CHANGELOG.md b/src/api/CHANGELOG.md index 03c83281..361df394 100644 --- a/src/api/CHANGELOG.md +++ b/src/api/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to ## [Unreleased] +## [0.17.0] - 2025-01-29 + ### Added - Activate and configure Sentry profiling by setting the @@ -300,7 +302,8 @@ and this project adheres to - Implement base FastAPI app -[unreleased]: https://github.com/MTES-MCT/qualicharge/compare/v0.16.0...main +[unreleased]: https://github.com/MTES-MCT/qualicharge/compare/v0.17.0...main +[0.17.0]: https://github.com/MTES-MCT/qualicharge/compare/v0.16.0...v0.17.0 [0.16.0]: https://github.com/MTES-MCT/qualicharge/compare/v0.15.0...v0.16.0 [0.15.0]: https://github.com/MTES-MCT/qualicharge/compare/v0.14.0...v0.15.0 [0.14.0]: https://github.com/MTES-MCT/qualicharge/compare/v0.13.0...v0.14.0 diff --git a/src/api/pyproject.toml b/src/api/pyproject.toml index 7c60d7aa..625f497d 100644 --- a/src/api/pyproject.toml +++ b/src/api/pyproject.toml @@ -3,7 +3,7 @@ # [project] name = "qualicharge" -version = "0.16.0" +version = "0.17.0" # Third party packages configuration [tool.coverage.run] diff --git a/src/api/qualicharge/__init__.py b/src/api/qualicharge/__init__.py index 2a121d81..866d2cd9 100644 --- a/src/api/qualicharge/__init__.py +++ b/src/api/qualicharge/__init__.py @@ -1,3 +1,3 @@ """QualiCharge package root.""" -__version__ = "0.16.0" +__version__ = "0.17.0"