Skip to content

Notifications: Correction de la liste d'envoi de la notification de rappel périodique pour s'assurer que les membres de sa structure sont bien actifs et autorisés#5956

Merged
tonial merged 1 commit into
masterfrom
alaurent/fix_notifications
Apr 15, 2025
Merged

Notifications: Correction de la liste d'envoi de la notification de rappel périodique pour s'assurer que les membres de sa structure sont bien actifs et autorisés#5956
tonial merged 1 commit into
masterfrom
alaurent/fix_notifications

Conversation

@tonial
Copy link
Copy Markdown
Contributor

@tonial tonial commented Apr 14, 2025

🤔 Pourquoi ?

Le queryset actuel récupère la liste de tous les membres des organisations qui sont admin d'au moins une organization.
On se retrouve donc à envoyer la notification à des membres non admin ou même des anciens members d'une organization parce qu'ils sont admin d'une autre organization.

🍰 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.

🚨 À vérifier

  • Mettre à jour le CHANGELOG_breaking_changes.md ?
  • Ajouter l'étiquette « Bug » ?

🏝️ 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.

💻 Captures d'écran

@tonial tonial added the bug label Apr 14, 2025
@tonial tonial requested review from EwenKorr and xavfernandez April 14, 2025 12:57
@tonial tonial self-assigned this Apr 14, 2025
@tonial tonial added the modifié Modifié dans le changelog. label Apr 14, 2025
Comment thread tests/users/test_management_commands.py
@tonial tonial force-pushed the alaurent/fix_notifications branch from 01056c3 to d1c75ec Compare April 14, 2025 13:42
If a user is still an admin in at least one organization, we used to
send him notifications for all the organization he was a member of
@tonial tonial force-pushed the alaurent/fix_notifications branch from d1c75ec to 01c2e44 Compare April 14, 2025 13:56
@tonial tonial requested a review from xavfernandez April 15, 2025 05:23
@tonial tonial added this pull request to the merge queue Apr 15, 2025
Merged via the queue into master with commit f477fc7 Apr 15, 2025
@tonial tonial deleted the alaurent/fix_notifications branch April 15, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants