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

Marking a notification as read: couple of fixes #10184

Merged

Conversation

eduardoj
Copy link
Member

Preserve page and show_all parameters after marking a notification as read. Fixes #10173 and fixes #10181.

Also related, take the user to the last pagination page, when the only notification of the last page is marked as read. Reported in #10173.

And last, after clicking in a page of several notifications (not the first page), and then clicking on the "Show all" button, show the first page of all the results. It makes no sense to preserve the page paramenter in the "Show all"/"Show less" button link.

I will setup a lot of notifications on the review-app instance, to make it easier to do a review.

@eduardoj eduardoj added Frontend Things related to the OBS RoR app review-app Apply this label if you want a review app started Notifications Issues about notifications feature labels Sep 21, 2020
@obs-bot
Copy link
Collaborator

obs-bot commented Sep 21, 2020

... a notification. This will preserve the current pagination page and
if all the results are shown, when a notification is marked as read.
... from "Show all" to "Show less", and viceversa.

For example, keeping the second page of results when they change
from being paginated from bunchs of 25 to bunchs of 300 results, brings
no value.
... marking as read the only notification of the last page. This way,
a page with no results will not be shown.
@eduardoj eduardoj force-pushed the fix_10173_notifications_preserve_pagination branch from 0ede7a8 to e0adca5 Compare September 21, 2020 14:40
@dmarcoux dmarcoux merged commit 993e9c1 into openSUSE:master Sep 21, 2020
@eduardoj eduardoj deleted the fix_10173_notifications_preserve_pagination branch September 21, 2020 20:13
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 Notifications Issues about notifications feature review-app Apply this label if you want a review app started
Projects
None yet
3 participants