-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(notification): informer les abonnés des nouvelles questions dans…
… un forum (#835) ## Description 🎸 Informer les utilisateurs abonnés à un forum lorsqu'une nouvelle question est posée 🎸 La notification est incluse dans le digest quotidien 🎸 Le `EmailSentTrackKind` du digest quotidien est désormais `BULK_NOTIFS` ## Type de changement 🎢 Nouvelle fonctionnalité (changement non cassant qui ajoute une fonctionnalité). ### Points d'attention 🦺 refactor des tests impactés en pytest 🦺 ajout de `Trait` à `NotificationFactory`, hydratation dynamique de `recipient` 🦺 dynamisation du contenu généré par la méthode `get_serialized_messages` 🦺 prise en compte de la création du premier `post` d'un `topic` par le signal `create_post_notifications` 🦺 ajustement de la méthode `get_grouped_notifications` lors de l'appel à `send_email`
- Loading branch information
1 parent
e929c19
commit 432fec2
Showing
12 changed files
with
291 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...munaute/notification/migrations/0011_alter_emailsenttrack_kind_alter_notification_kind.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Generated by Django 5.0.9 on 2024-11-27 13:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("notification", "0010_alter_emailsenttrack_kind_alter_notification_kind"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="emailsenttrack", | ||
name="kind", | ||
field=models.CharField( | ||
choices=[ | ||
("first_reply", "Première réponse à un sujet"), | ||
("following_replies", "Réponses suivantes"), | ||
("onboarding", "Onboarding d'un nouvel utilisateur"), | ||
("pending_topic", "Question sans réponse"), | ||
("magic_link", "Lien de connexion magique"), | ||
("bulk_notifs", "Notifications groupées"), | ||
], | ||
max_length=20, | ||
verbose_name="type", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="notification", | ||
name="kind", | ||
field=models.CharField( | ||
choices=[ | ||
("first_reply", "Première réponse à un sujet"), | ||
("following_replies", "Réponses suivantes"), | ||
("onboarding", "Onboarding d'un nouvel utilisateur"), | ||
("pending_topic", "Question sans réponse"), | ||
("magic_link", "Lien de connexion magique"), | ||
("bulk_notifs", "Notifications groupées"), | ||
], | ||
max_length=20, | ||
verbose_name="type", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.