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

[QA] Suppression de ActivityListener #3629

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

emilschn
Copy link
Collaborator

Ticket

#3610

Description

Finalisation du nouveau service d'envoi de mails et notifications internes. Déplacement de l'enregistrement des suivis dans un événement spécifique.
Suppression du ActivityListener.

Tests

(désolé, je préfère rester vague, parce que si je suis trop précis sur une liste d'actions, j'ai peur d'en louper certaines qui ne seraient pas testées...)

  • Faire des actions qui génèrent des suivis et vérifier que les mails et les notifications sont bien envoyées aux bonnes personnes

@@ -134,7 +134,7 @@ public function addSuiviSignalement(

$this->addFlash('success', 'Suivi publié avec succès !');
} else {
$this->addFlash('error', 'Une erreur est survenue lors de la publication.');
$this->addFlash('error', 'Une erreur de jeton est survenue lors de la publication.');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

j'ai précisé cette erreur ici, parce qu'il y avait une erreur similaire juste au-dessus, et j'aime pas quand deux erreurs différentes retournent le même texte :)

@emilschn emilschn force-pushed the feature/3610-remove-activity-listener branch from 0d5baff to 042a987 Compare January 28, 2025 15:01
src/Service/NotificationAndMailSender.php Outdated Show resolved Hide resolved
private function send(NotificationMailerType $notificationMailerType, ArrayCollection $recipients, bool $isInAppNotificationCreated = false): void
{
if ($isInAppNotificationCreated) {
foreach ($recipients as $user) {
$this->createInAppNotification($user);
if ($user instanceof User) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

est-ce qu'on ne fait pas le ticket #3626 dans la foulée ici ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Je suis pas trop pour modifier des comportements dans cette PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ouais je suis d'accord ; dans l'idéal, il faudrait presque que celle-ci soit en prod avant d'entamer l'autre :p ça facilite la détection d'erreur

Copy link
Collaborator

@numew numew left a comment

Choose a reason for hiding this comment

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

Lecture et test me semble ok, mais vu le sujet délicat j'ai quelques questions

src/Entity/Notification.php Outdated Show resolved Hide resolved
src/Entity/Tag.php Outdated Show resolved Hide resolved
@emilschn emilschn force-pushed the feature/3610-remove-activity-listener branch from 43d6bcf to 1f5f0d9 Compare January 30, 2025 10:18
@emilschn emilschn force-pushed the feature/3610-remove-activity-listener branch from 1a82229 to 89f3f11 Compare February 3, 2025 08:54
Copy link

sonarqubecloud bot commented Feb 3, 2025

Copy link
Collaborator

@numew numew left a comment

Choose a reason for hiding this comment

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

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants