mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 07:02:01 -05:00
[PR #22] [MERGED] [core] Fix Update of Read State for Large List of Items #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/22
Author: @ricoberger
Created: 10/8/2023
Status: ✅ Merged
Merged: 10/8/2023
Merged by: @ricoberger
Base:
main← Head:core-fix-update-of-read-status-for-large-list-of-items📝 Commits (1)
f7efda4[core] Fix Update of Read State for Large List of Items📊 Changes
1 file changed (+15 additions, -6 deletions)
View changed files
📝
app/lib/repositories/items_repository.dart(+15 -6)📄 Description
When a user scrolls through a list of items and loads more items via the "Load More" button and then clicks on the mark all items as read button, it could happen that the request fails, because Supabase can not handle the update filter with a large list of item ids.
To avoid this error we are splitting the list of item ids provided in the "updateReadStates" into chunks of 25 items for the in clause in the update filter.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.