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

Performance improvements and ordering rework #2850

Merged
merged 7 commits into from
Oct 29, 2024

Conversation

wofferl
Copy link
Collaborator

@wofferl wofferl commented Oct 27, 2024

Summary

This PR changes the way when the sorted item list is updated, to prevent sorting the whole list for every click or twice for changing to next item when navigating with keyboard.
Also the item list now shows the correct items immediately after changing, the feed or global sort order.

Checklist

Actual filterSortedItems() is called multiple times through different events where it is not necessary (mark read, starred) and it is called extra every time using key navigation.

Signed-off-by: Wolfgang <[email protected]>
* prevent first items api call using incorrect ordering
* use out of scope filter also in feed view
* refresh itemlist and show correct items when changing feed or global sort order

Signed-off-by: Wolfgang <[email protected]>
@wofferl wofferl marked this pull request as draft October 28, 2024 18:47
@wofferl wofferl marked this pull request as ready for review October 28, 2024 22:33
…ed in the item list

This is a follow up fix for the change to the filtered sorted item list

Signed-off-by: Wolfgang <[email protected]>
@SMillerDev SMillerDev enabled auto-merge (rebase) October 29, 2024 22:38
@SMillerDev SMillerDev merged commit 2ad0dcd into nextcloud:master Oct 29, 2024
23 of 24 checks passed
@wofferl wofferl mentioned this pull request Oct 29, 2024
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.

j shortcut doesn't load more items in infinite scroll Feed ordering uses wrong values
2 participants