From ab684a20ad776f5d573880c3520d783f62dcd2a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 21 Jan 2025 23:06:30 +0100 Subject: [PATCH] Release version v3.7.1 --- .../unreleased/Fixed-20250121-225838.yaml | 6 -- .changes/v3.7.1.md | 3 + CHANGELOG.md | 65 ++++++++++++++++++- 3 files changed, 66 insertions(+), 8 deletions(-) delete mode 100644 .changes/unreleased/Fixed-20250121-225838.yaml create mode 100644 .changes/v3.7.1.md diff --git a/.changes/unreleased/Fixed-20250121-225838.yaml b/.changes/unreleased/Fixed-20250121-225838.yaml deleted file mode 100644 index f22ed2697..000000000 --- a/.changes/unreleased/Fixed-20250121-225838.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixed -body: Fix legacy configuration processor for notifier component -time: 2025-01-21T22:58:38.805800688+01:00 -custom: - Issue: "" - SchemaChange: No schema change diff --git a/.changes/v3.7.1.md b/.changes/v3.7.1.md new file mode 100644 index 000000000..ee2fabfd1 --- /dev/null +++ b/.changes/v3.7.1.md @@ -0,0 +1,3 @@ +## v3.7.1 - 2025-01-21 +### Fixed +* Fix legacy configuration processor for notifier component diff --git a/CHANGELOG.md b/CHANGELOG.md index 2856904c6..4bfbc4757 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,72 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). +## v3.7.1 - 2025-01-21 +### Fixed +* Fix legacy configuration processor for notifier component + ## v3.7.0 - 2025-01-21 ### Feature -* Use the Notifier component from Symfony to sens short messages (SMS). This allow to use more provider. +* Use the Notifier component from Symfony to sens short messages (SMS). This allow to use more provider. ### Fixed -* ([#348](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/348)) [export] Fix aggregation of referrer's scope and job: fix the date range comparison +* ([#348](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/348)) [export] Fix aggregation of referrer's scope and job: fix the date range comparison + +### Warning on configuration of Notifier component + +If installed in an symfony app where the recipes are activated, this configuration should be added automatically: + +```yaml +framework: + notifier: + chatter_transports: + texter_transports: + ovhcloud: '%env(OVHCLOUD_DSN)%' + channel_policy: + # use chat/slack, chat/telegram, sms/twilio or sms/nexmo + urgent: ['email'] + high: ['email'] + medium: ['email'] + low: ['email'] + admin_recipients: + - { email: admin@example.com } +``` + +Actually, you should either: + +- remove the configuration of ovhcloud added by the recipe +- or remove the previous configuration of chill, to avoid keeping legacy configuration + +#### Remove the added configuration and keep the legacy configuration + +To remove the configuration: + +```diff +framework: + notifier: + chatter_transports: + texter_transports: +- ovhcloud: '%env(OVHCLOUD_DSN)%' +``` + +In that case, the previous configuration, which was stored under the `chill_main.short_messages.dsn` will be reconfigured into the Notifier component's configuration. + +#### Properly configure SMS + +You can also properly configure it, as [described in the OVH cloud provider repository](https://github.com/symfony/ovh-cloud-notifier/tree/5.4?tab=readme-ov-file#dsn-example) (where the scheme is `ovhcloud`): + +**NOTE**: You have access to all notifier available with the [Notifier component](https://symfony.com/doc/current/notifier.html#notifier-sms-channel). You are not restricted to use OVH as a provider. + +```diff +framework: + notifier: + chatter_transports: + texter_transports: ++ ovhcloud: '%env(OVHCLOUD_DSN)%' # this value should be located in a variable, and have `ovhcloud://` as a scheme + +chill_main: +- short_messages: +- dsn: '%env(string:SHORT_MESSAGE_DSN)%' +``` ## v3.6.0 - 2025-01-16 ### Feature