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

Ability to opt out of email updates #122

Open
4 tasks
rajdip-b opened this issue Feb 8, 2024 · 3 comments
Open
4 tasks

Ability to opt out of email updates #122

rajdip-b opened this issue Feb 8, 2024 · 3 comments
Labels
difficulty: 3 foss hack Clustering all the curated issues for Foss Hack 2024 good first issue Good for newcomers help wanted Extra attention is needed priority: medium scope: api Everything related to the API type: enhancement New feature or request
Milestone

Comments

@rajdip-b
Copy link
Member

rajdip-b commented Feb 8, 2024

Description

Users should be able to update their email preferences. One might not be interested in being spammed with mails all the time. We would like to add the feature so that the users can set their preferences of emails they want to receive. They include:

  • promotional (our marketing stuff and update news)
  • operational (mails about their work)
  • critical (critical updates, such as anomaly detection)

Solution

  • Add a model in prisma schema. Name it EmailPreference and tie it with User in a one-to-one relation.
  • Add relevant field names to store the preferences
  • Update the service layer to allow modification of these fields
  • Make the mail service check the preference of the receiver, and only then, send it.
@rajdip-b rajdip-b added type: enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed scope: api Everything related to the API labels Feb 8, 2024
@rajdip-b rajdip-b added this to the Release v1 milestone Feb 8, 2024
@rajdip-b rajdip-b moved this to Todo in keyshade-api Feb 8, 2024
@rajdip-b rajdip-b added difficulty: 3 priority: medium foss hack Clustering all the curated issues for Foss Hack 2024 labels Jun 6, 2024
@MelloB1989
Copy link

Hey I am Kartik Deshmukh. I am one of the participants in the FOSS Hack. We want to contribute to this issue and I feel confident my contribution will help!

@manasveer6
Copy link

/attempt

Copy link

Assigned the issue to @manasveer6!

@rajdip-b rajdip-b moved this from Todo to Backlog in keyshade-api Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: 3 foss hack Clustering all the curated issues for Foss Hack 2024 good first issue Good for newcomers help wanted Extra attention is needed priority: medium scope: api Everything related to the API type: enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

3 participants