Skip to content

feat: Email notifications#1017

Open
florentc wants to merge 1 commit intoNixOS:mainfrom
tweag:feat-170-email-notification
Open

feat: Email notifications#1017
florentc wants to merge 1 commit intoNixOS:mainfrom
tweag:feat-170-email-notification

Conversation

@florentc
Copy link
Copy Markdown
Member

@florentc florentc commented Apr 29, 2026

  • control panel in subscriptions page to opt in and select mail address
  • simplification of pgpubsub channels (now notification in sequence with caching)
  • emails mention affected packages, matching packages, and useful links
  • 1-1 correspondance between email and notification
2026-04-29 12-58-54

In the above screenshot my user has no github email attached, when you have one, it says "Use default GitHub email" instead of "Clear email"

2 notes:

  • now that notification is done after caching in sequence, we have access to cached info when notifying. It was not the case before so in create_package_subscription_notifications we could optimize by using cached info instead of performing redundant db queries
  • email notification assumes we only have notifications about suggestions. It is true in practice for new suggestions. Text notifications are old notifications that some people still have and they won't trigger an email anyway, but still we may want to handle the various types of notifications in the future

Comment on lines +14 to +16
# def expire_cached_suggestions(old: CVEDerivationClusterProposal, new: CVEDerivationClusterProposal) -> None:
# if new.status != CVEDerivationClusterProposal.Status.PENDING:
# CachedSuggestions.objects.filter(pk=new.pk).delete()
@florentc florentc force-pushed the feat-170-email-notification branch from 0099535 to a97efc9 Compare April 29, 2026 11:13
- control panel in subscriptions page to opt in and select mail address
- simplification of pgpubsub channels (now notification in sequence with
  caching)
- emails mention affected packages, matching packages, and useful links
- 1-1 correspondance between email and notification
@florentc florentc force-pushed the feat-170-email-notification branch from a97efc9 to 54fca42 Compare April 29, 2026 11:18
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.

2 participants