Skip to content

Prevent notifications for deleted users#13812

Merged
andreslucena merged 5 commits intodecidim:developfrom
i-need-another-coffee:fix/sending-frequency
Jan 14, 2025
Merged

Prevent notifications for deleted users#13812
andreslucena merged 5 commits intodecidim:developfrom
i-need-another-coffee:fix/sending-frequency

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

🎩 What? Why?

While reviewing #13689, @andreslucena requested that notifications_sending_frequency should be set to "none" also for deleted users.

📌 Related Issues

Link your PR to an issue

Testing

  1. Apply patch
  2. Sign in as "user@example.org"
  3. Check that I have the notifications sending frequency set to "daily"
  4. Delete my account
  5. Open a rails console and run "Decidim::User.where.not(deleted_at: nil).first.notifications_sending_frequency". See that it's daily

♥️ Thank you!

@github-actions github-actions bot added module: core type: fix PRs that implement a fix for a bug labels Jan 8, 2025
@andreslucena andreslucena changed the title Adjust the sending frequency for deleted users Prevent notifications for deleted users Jan 8, 2025
@alecslupu alecslupu marked this pull request as ready for review January 8, 2025 21:07
@alecslupu alecslupu added release: v0.28 Issues or PRs that need to be tackled for v0.28 release: v0.29 Issues or PRs that need to be tackled for v0.29 labels Jan 8, 2025
@andreslucena andreslucena merged commit 08a53ba into decidim:develop Jan 14, 2025
entantoencuanto added a commit that referenced this pull request Jan 14, 2025
* develop: (27 commits)
  WCAG navigation submenu (#13796)
  Update gem dependencies (part 3) (#13849)
  Prevent notifications for deleted users (#13812)
  Retries NPM installation a couple times to prevent network timeouts (#13831)
  Update gem dependencies (part 2) (#13839)
  Enhance signature pdf export (#13778)
  Fix HexaPDF dependency (#13834)
  Fix flaky spec in authentication (#13827)
  Merge upload field for documents and image on proposal admin form (#13735)
  Update gem dependencies (#13835)
  Upgrade erb_lint to 0.8.0 (#13833)
  Fix flaky spec in geocoder (#13820)
  Refactor modules mounting routes (#13294)
  Upgrade check-spelling action (#13825)
  Add missing images in the custom registration emails from meetings (#13632)
  Add missing translations (#13793)
  Fix proposal map performance with hundreds of markers (#13798)
  Create multiple surveys within same Survey component (#13420)
  Accountability bulk actions (#13730)
  Improve UI for sorting options on comments (#13670)
  ...
@alecslupu alecslupu removed the release: v0.28 Issues or PRs that need to be tackled for v0.28 label Jan 15, 2025
@alecslupu alecslupu deleted the fix/sending-frequency branch January 15, 2025 12:24
rsdeus pushed a commit to octree-gva/decidim that referenced this pull request Jan 15, 2025
* Fix notifications_sending_frequency for deleted users

* Add deleted check in email_notification_generator

* Fix rubocop errors
antopalidi pushed a commit to openpoke/decidim that referenced this pull request Feb 12, 2025
* Fix notifications_sending_frequency for deleted users

* Add deleted check in email_notification_generator

* Fix rubocop errors
andreslucena pushed a commit that referenced this pull request Mar 3, 2025
* Fix notifications_sending_frequency for deleted users

* Add deleted check in email_notification_generator

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

Labels

module: core release: v0.29 Issues or PRs that need to be tackled for v0.29 type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust the sending frequency for deleted users

2 participants