Skip to content

Episode list sits on the shared page cache; one eviction guard - #607

Merged
GLinnik21 merged 4 commits into
mainfrom
simplify/page-directory
Oct 11, 2026
Merged

GLinnik21 merged 4 commits into
mainfrom
simplify/page-directory

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Follow-up to #605. No behaviour change.

  • EpisodeList is now PageCache<Episode> plus what is its own: id and revision, is_complete, nearest_loaded, the clip to the season span and the serde wire form, which is byte-identical.
  • PageCache gains set_rows, page_rows, missing_by and evict_by; missing and evict are those with its own page rule, so its other users are unchanged.
  • SecItems::evict shares the budget guard (kept_when_over_budget) instead of repeating it. It is not rebuilt on PageCache: its per-cell fill and copy-on-write read view are a different structure.
  • The episode list keeps its own index rule: an index past the season's end but inside the last page's slack still belongs to the last page. Two tests pin it (a stale range after the list shrank still asks for the last page; a focus in the slack keeps that page on eviction). Both failed on the first version of this branch.

Verification

  • Combined with the other two follow-up branches on main (174f3915): make check exit 0, every test result: line 0 failed, tree clean before and after; make check-replay 3 fixtures, 6 replays, 0 failures; release ARM build exit 0.
  • An independent review of the three branches against main checked each change for an observable behaviour difference; what it found is fixed here and listed above.
  • Not run on the television: no drawing, request or FFI surface changes.

🤖 Generated with Claude Code

GLinnik21 and others added 4 commits October 11, 2026 14:47
…on guard

EpisodeList is now a PageCache<Episode> plus id/rev, is_complete and its wire form;
SecItems::evict and PageCache::evict share kept_when_over_budget.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…lack belongs to that page

Adds PageCache::missing_by and evict_by taking the rule; PageCache's own behaviour is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 02690ec into main Oct 11, 2026
18 checks passed
@GLinnik21
GLinnik21 deleted the simplify/page-directory branch October 11, 2026 13:50
BradSainty added a commit to BradSainty/jf-native that referenced this pull request Oct 11, 2026
Upstream now pages every list to its real end (plxnative#605, plxnative#607): the home hub
list by hub, a season's episodes in windows, and Continue Watching past
its first page. The Jellyfin routes now cut the window a request names
and report the listing's total. Continue Watching reads one row past
its window, since Jellyfin has no count for resume points plus next
episodes, so the row keeps asking until the list really ends.

The window is read through plex::requested_window, so the paging gate
keeps the parameter names in paging.rs, and the four new cap sites are
classed in ci/list-caps.ini.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
BradSainty added a commit to BradSainty/jf-native that referenced this pull request Oct 11, 2026
Upstream now pages every list to its real end (plxnative#605, plxnative#607): the home hub
list by hub, a season's episodes in windows, and Continue Watching past
its first page. The Jellyfin routes now cut the window a request names
and report the listing's total. Continue Watching reads one row past
its window, since Jellyfin has no count for resume points plus next
episodes, so the row keeps asking until the list really ends.

The window is read through plex::requested_window, so the paging gate
keeps the parameter names in paging.rs, and the four new cap sites are
classed in ci/list-caps.ini.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

1 participant