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

[NOTIFICATION] informer les abonnés d'un forum des nouvelles questions #718

Closed
vincentporte opened this issue Jul 30, 2024 · 4 comments · Fixed by #833 or #835
Closed

[NOTIFICATION] informer les abonnés d'un forum des nouvelles questions #718

vincentporte opened this issue Jul 30, 2024 · 4 comments · Fixed by #833 or #835
Assignees
Labels
python Pull requests that update Python code

Comments

@vincentporte
Copy link
Contributor

faire état des lieux

@vincentporte vincentporte self-assigned this Aug 6, 2024
@vincentporte
Copy link
Contributor Author

UpVote.objects.values('content_type').annotate(count=Count('id'))
<QuerySet [{'content_type': 8, 'count': 313}, {'content_type': 7, 'count': 457}]>

@vincentporte
Copy link
Contributor Author

vincentporte commented Nov 26, 2024

  • get_serialized_messages : dynamiser le contenu de action selon que le post est topic_head ou non

  • mails_to_notify dans le modele Topic : ajouter les personnes qui ont upvoté le forum du post.

  • save dans le modele Post : retirer la condition not self.is_topic_head

  • create_post_notifications : tenir compte si le post est topic_tail pour hydrater delay et kind

  • send_messages_notifications : hydrater kind dans send_email avec une nouvelle valeur ie GROUPED_NOTIFICATIONS

  • check send_messages_notifications management command & task

  • supprimer collect_users_from_list

  • modifier send_notifs_on_unanswered_topics, hydrater les contacts avec les user staff

@vincentporte
Copy link
Contributor Author

nettoyer la liste de template dans Brevo :

SIB_MAGIC_LINK_TEMPLATE = 31
SIB_UNANSWERED_QUESTION_TEMPLATE = 10
SIB_ONBOARDING_LIST = 5
SIB_NEW_MESSAGES_TEMPLATE = 28

@vincentporte vincentporte added the python Pull requests that update Python code label Nov 26, 2024
@vincentporte
Copy link
Contributor Author

inclus dans #833 :

  • supprimer collect_users_from_list
  • modifier send_notifs_on_unanswered_topics, hydrater les contacts avec les user staff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment