Prevent notifications for blocked users#13689
Merged
andreslucena merged 11 commits intodecidim:developfrom Jan 7, 2025
Merged
Conversation
andreslucena
requested changes
Dec 19, 2024
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
andreslucena
approved these changes
Jan 7, 2025
Member
andreslucena
left a comment
There was a problem hiding this comment.
Reading it again it was what I had in mind. Thanks for the PR!
Also I realized that we have the same problem with deleted users:
- Sign in as "user@example.org"
- Check that I have the notifications sending frequency set to "daily"
- Delete my account
- Open a rails console and run "Decidim::User.where.not(deleted_at: nil).first.notifications_sending_frequency". See that it's daily
@alecslupu can you open another PR to fix this related bug? As I think we should handle that in another PR, I'll merge this as is. Thanks
This was referenced Jan 8, 2025
mllocs
pushed a commit
that referenced
this pull request
Jan 9, 2025
* Block notifications for blocked users * Add tests for fix_blocked_user_notification task * Remove trailing whitespaces * Update RELEASE_NOTES.md * Update decidim-core/lib/tasks/upgrade/clean.rake * RELEASE_NOTES.md lint fix * Remove line 24 from RELEASE_NOTES.md * Apply suggestions from code review Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> --------- Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro> Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevent sending notifications to blocked users
📌 Related Issues
Testing
Previous conditions for "User X"
Steps to follow as a site administrator:
Expected behavior: