Skip to content

Conversation

fettuccinae
Copy link

@fettuccinae fettuccinae commented Sep 23, 2025

  1. Added a notifications_enabled column in user_preference table and related code in the endpoint, so that a user can set their notification preference, i.e if they want to receive email notifications immediately or in a digest.
    They have 3 options now:
    If notifications are disabled, they will be receiving only the important mails.
    If notifications are enabled and digest is disabled, they will be receiving the mails(important and non important) immediately
    If notifications are enabled and digest is enabled, they will be receiving the important mails directly and non-important mails in a digest.

  2. Fixed linting issues (unused import and a semi colon)

  3. Fixed the uuid extension missing bug by creating extensions in metabrainz db as the postgres user instead of creating them in the default postgres db.

@fettuccinae
Copy link
Author

@mayhem PR ready for review.

@mayhem
Copy link
Member

mayhem commented Sep 25, 2025

I'll try and have a look tomorrow -- I'm "mostly" on vacation this week.

@mayhem
Copy link
Member

mayhem commented Sep 29, 2025

Sorry, not feeling great right now. Hopefully tomorrow.

@fettuccinae
Copy link
Author

Sorry, not feeling great right now. Hopefully tomorrow.

No worries !

@mayhem
Copy link
Member

mayhem commented Oct 1, 2025

This PR looks good to me, but the bits about the PG extension need to have a quick review from @amCap1712

@fettuccinae fettuccinae requested a review from amCap1712 October 6, 2025 10:49
@fettuccinae fettuccinae force-pushed the notification_preference branch from 037a942 to 21b6d0c Compare October 8, 2025 06:11
@fettuccinae fettuccinae mentioned this pull request Oct 9, 2025
Copy link
Member

@amCap1712 amCap1712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@mayhem mayhem merged commit 7a801c8 into metabrainz:metabrainz-notifications Oct 15, 2025
2 checks passed
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