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

[back] feat: add mgmt command to notify users without contribution #1884

Merged
merged 47 commits into from
Feb 22, 2024

Conversation

GresilleSiffle
Copy link
Collaborator

@GresilleSiffle GresilleSiffle commented Jan 18, 2024

related issues #1677


Description

This PR adds a new management command that sends email notifications to users that haven't contributed since their registration. The Ansible recipe has been updated to deploy a new service running this command on a daily basis.

To receive an email notification the user:

  • must have created his/her account ten days ago
  • must not have made any comparison after the registration day

To run the command

python manage.py remind_registrations

Preview

Email received by users without comparison:

capture

Email received by users with comparisons:

capture

to-do

mgmt command

  • notify users created 10 days ago who have made comparisons only the first day
  • notify users created 10 days ago who have not yet made a comparison
  • clearly say that this message is automatic
  • translate the template signup_contrib
    • the email title
    • the email body txt
    • the email body html
  • translate the template no_contrib
    • the email title
    • the email body txt
    • the email body html
  • use the user's preferred language
  • add new tests
  • do not hardcode the extension URLs

front end

  • update the terms of service

infra

  • create the systemd timer

Checklist

  • I added the related issue(s) id in the related issues section (if any)
    • if not, delete the related issues section
  • I described my changes and my decisions in the PR description
  • I read the development guidelines of the CONTRIBUTING.md
  • The tests pass and have been updated if relevant
  • The code quality check pass

@GresilleSiffle GresilleSiffle linked an issue Jan 18, 2024 that may be closed by this pull request
@GresilleSiffle GresilleSiffle added the Backend Back-end code of Tournesol label Jan 18, 2024
@GresilleSiffle GresilleSiffle self-assigned this Jan 18, 2024
@GresilleSiffle GresilleSiffle added Frontend Front-end code of Tournesol Infra labels Jan 23, 2024
@GresilleSiffle GresilleSiffle changed the title WIP / [back] feat: add mgmt command to notify users without contribution [back] feat: add mgmt command to notify users without contribution Jan 24, 2024
@GresilleSiffle
Copy link
Collaborator Author

GresilleSiffle commented Feb 21, 2024

to-do

  • reword the video suggestion links

@GresilleSiffle GresilleSiffle marked this pull request as draft February 21, 2024 17:14
@GresilleSiffle GresilleSiffle marked this pull request as ready for review February 22, 2024 10:09
@GresilleSiffle GresilleSiffle merged commit 2f10d07 into main Feb 22, 2024
8 checks passed
@GresilleSiffle GresilleSiffle deleted the 1677-auto_reminder branch February 22, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Back-end code of Tournesol Frontend Front-end code of Tournesol Infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3: [back] feat: automatic reminder after account creation
2 participants