Skip to content

Conversation

@xavfernandez
Copy link
Contributor

@xavfernandez xavfernandez commented Jun 18, 2024

🤔 Pourquoi ?

Pour que les membres des DDETS/DREETS soient au courant.

🍰 Comment ?

Décrivez en quelques mots la solution retenue et mise en oeuvre, les difficultés ou problèmes rencontrés. Attirez l'attention sur les décisions d'architecture ou de conception importantes.

💻 Captures d'écran

🚨 À vérifier

  • Mettre à jour le CHANGELOG_breaking_changes.md ?

🏝️ Comment tester

Les instructions pour reproduire le problème, les profils de test, le parcours spécifique à utiliser, etc. Si vous disposez d'une recette jetable, mettre l'URL pour tester dans cette partie.

@xavfernandez xavfernandez added the ajouté Ajouté dans le changelog. label Jun 18, 2024
@xavfernandez xavfernandez self-assigned this Jun 18, 2024
@notion-workspace
Copy link

Copy link
Member

@francoisfreitag francoisfreitag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu n’oublieras pas de mettre à jour le whimsical ?

context = {
"assessment": self.assessment,
}
return get_email_message(to, context, self.subject_template, self.body_template)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dans une version prochaine, il faudra découper les to plutôt que d’avoir les mails découpés de manière silencieuse par l’utilitaire d’envoi de mail.
Peut-être envoyer individuellement ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bah je trouve cela bien dans certain cas (comme celui-ci) que les différents destinataires voient qui est également en copie, cela permet de se répartir le boulot directement.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dans ce cas, je pense qu’il faudrait gérer le cas >= 50 destinataires.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh pour le moment on est très loin d'avoir 50 mails en combinant des ddets/dreets division GEIQ 😅 .

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Donc, c’est OK si :

  1. L’email n’est pas envoyé si un destinataire est invalide ? (il me semble bien que c’est le comportement de mailjet)
  2. Ça casse le jour où on a 50+ destinataires ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

De ma compréhension, ça splitera en 2 emails le jour où il y aura 50+ destinataires non ?
https://github.com/gip-inclusion/les-emplois/blob/master/itou/emails/tasks.py#L47

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oui, mais c’est sur le point de changer : #4180 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Héhé on verra à ce moment-là avec le métier ce qu'ils souhaitent pour les différents mails impactés (et celui-ci en fera partie).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ça continue d’empiler du travail pour plus tard 😞

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oui mais je pense que la solution choisie sera globalement la même pour la plupart des notifications dans ce cas.
(peut-être juste rajouter une phrase indiquant "Ce message a également été envoyé à Jean Pierre de la DDETS 35 et Nathalie de la DREETS Bretagne" 🤷‍♂️ ).

@xavfernandez xavfernandez force-pushed the xfernandez/geiq_notification branch 4 times, most recently from f24f062 to 08188b4 Compare June 19, 2024 08:41
@xavfernandez xavfernandez force-pushed the xfernandez/geiq_notification branch from 08188b4 to b1c4b66 Compare June 19, 2024 08:56
@xavfernandez xavfernandez added the 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC label Jun 19, 2024
@github-actions
Copy link

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

@xavfernandez xavfernandez enabled auto-merge June 19, 2024 15:12
@xavfernandez xavfernandez added this pull request to the merge queue Jun 19, 2024
Merged via the queue into master with commit 49c04b8 Jun 19, 2024
@xavfernandez xavfernandez deleted the xfernandez/geiq_notification branch June 19, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC ajouté Ajouté dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants