From 2509452c52100341a1814d8320bd7a7779747b94 Mon Sep 17 00:00:00 2001 From: Florent Chehab Date: Thu, 9 Jul 2026 13:33:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F(settings)=20deprecate=20S?= =?UTF-8?q?UMMARY=5FSERVICE=5FVERSION=3D1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a deprecation warning when SUMMARY_SERVICE_VERSION=1 and an endpoint is configured meaning summary service is in use. --- CHANGELOG.md | 5 +++++ src/backend/meet/settings.py | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 942383f5..6b5cf2f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ and this project adheres to ## [Unreleased] +### Changed + +- 🗑️(settings) deprecate SUMMARY_SERVICE_VERSION=1 + + ## [1.23.0] - 2026-07-08 ### Added diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index 86bfc2a1..7faba84e 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -13,6 +13,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/ # pylint: disable=too-many-lines import json +import warnings from os import path from socket import gethostbyname, gethostname @@ -1128,6 +1129,20 @@ class Base(Configuration): "FILE_UPLOAD_TMP_PATH cannot be the same as FILE_UPLOAD_PATH" ) + if ( + cls.SUMMARY_SERVICE_VERSION == 1 + and cls.SUMMARY_SERVICE_ENDPOINT is not None + ): + warnings.warn( + "SUMMARY_SERVICE_VERSION=1 is deprecated. " + "The legacy v1 API has been removed from the experimental " + "Summary service. Please update your Summary service deployment to " + "the v2 API and set SUMMARY_SERVICE_VERSION=2.", + # We use UserWarning to make sure it shows up in production deployment + UserWarning, + stacklevel=2, + ) + # The SENTRY_DSN setting should be available to activate sentry for an environment if cls.SENTRY_DSN is not None: sentry_sdk.init(