Skip to content

Conversation

@florentc
Copy link
Member

@florentc florentc commented Oct 17, 2025

This PR introduces the subscriptions center. From this page on the user profile (the eye icon), the end goal is to have all the settings for which packages/channels/whatever the user wants to watch and get notifications about.

Resolves #174

Subscription center

2025-10-17 21-10-22

For the time being, this is only about subscribing/unsubscribing to packages manually.

I think there may be discussions to have about the approach.

For now, as with the concept of PackageEdit that is used to customize suggestions before creating issues, here the packages are actually the attributes of derivations. They don't exist as entities inside the database at the moment. Hence why the list of subscribed packages is a simple string array for now. Attributes have been added as an index (hence one of the two migrations you will notice) to optimize searching for an attribute among all the derivations.

Automatic notification

When a new suggestion is published, users who have subscribed to one of the packages this suggestion is related to receive a new notification. For now, it uses plain text notifications but in the future we can introduce dedicated notification type to display info in a better rendered way, have links, etc

Individual subscription pages

Each package has its own url /subscriptions/package/{package_name} to be used externally, and allows the user to subscribe/unsubscribe (and in the future more actions related to the package or finer notification settings).

2025-10-23 18-04-26 2025-10-23 18-04-30

@florentc florentc marked this pull request as ready for review October 20, 2025 14:28
@florentc florentc requested a review from yannham October 20, 2025 14:28
@florentc florentc force-pushed the package-subscription branch from b09436a to c3edd5c Compare October 22, 2025 17:14
@florentc florentc marked this pull request as draft October 30, 2025 17:26
@florentc florentc force-pushed the package-subscription branch from 6e437e6 to 126619b Compare October 31, 2025 13:24
@florentc florentc marked this pull request as ready for review October 31, 2025 13:33
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.

Notifications overview

2 participants