Skip to content

Filter notifications by package#19771

Draft
danidoni wants to merge 1 commit into
openSUSE:masterfrom
danidoni:filter-notifications-by-package
Draft

Filter notifications by package#19771
danidoni wants to merge 1 commit into
openSUSE:masterfrom
danidoni:filter-notifications-by-package

Conversation

@danidoni
Copy link
Copy Markdown
Contributor

@danidoni danidoni commented Jun 1, 2026

This PR implements a filter in the Notifications page to filter those notifications by package.

This is a second attept, the first one was reverted due to performance issues on production.

This one addresses the performance issues by implementing an intermediate model called NotifiedPackage that stores the relationships between notifications and the several notifiables having associations with packages.

hat way, when fetching the notifications, filtering by packages and while getting results for the autocomplete in the filter we just look for precomputed packages for the notifications we want to show. Much faster than the previous attempt.

We fill the NotifiedPackage model when the notifications are being created.

There's also a backfilling task to be run just after deploying to ensure previous notifications benefit from this mechanism.

@github-actions github-actions Bot added the Frontend Things related to the OBS RoR app label Jun 1, 2026
@danidoni danidoni force-pushed the filter-notifications-by-package branch 4 times, most recently from 5254e3d to 5d2d060 Compare June 3, 2026 13:48
This change adds a new filter in My Notifications to filter
notifications by package name
@danidoni danidoni force-pushed the filter-notifications-by-package branch from 5d2d060 to 65c102c Compare June 3, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Things related to the OBS RoR app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant