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

feat: Unconfirmed votes cleaner #86

Merged
merged 14 commits into from
Dec 6, 2023

Conversation

Quentinchampenois
Copy link
Contributor

@Quentinchampenois Quentinchampenois commented Dec 6, 2023

🎩 Description

Please describe your pull request.

Create 2 jobs for unconfirmed users :

  • ConfirmationReminderJob run every day at 09:00. It fetches all unconfirmed users where creation_date is equal to to DECIDIM_REMINDER_UNCONFIRMED_EMAIL_DAYS (default: 2) days. It sends an email with confirm message
  • UnconfirmedVotesCleanerJob run every day at 09:00. It fetches all unconfirmed users where creation_date is equal to Decidim.unconfirmed_access_for (default: 0 = DECIDIM_UNCONFIRMED_ACCESS) and has at least one Decidim::InitiativesVote : It destroys all initiatives vote for the given user and send an email
Screenshot 2023-12-06 at 12 39 14 Screenshot 2023-12-06 at 12 39 40

@Quentinchampenois Quentinchampenois changed the base branch from master to develop December 6, 2023 14:16
@AyakorK AyakorK marked this pull request as ready for review December 6, 2023 16:21
@AyakorK AyakorK requested review from moustachu, luciegrau, AyakorK and a team December 6, 2023 16:21
@Quentinchampenois Quentinchampenois merged commit 8c15073 into develop Dec 6, 2023
13 checks passed
@Quentinchampenois Quentinchampenois deleted the feat/unconfirmed_votes_cleaner branch December 6, 2023 18:04
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