Skip to content

fix: a list of items of a named type is paged through too - #78

Merged
MarkRosemaker merged 1 commit into
mainfrom
fix/named-slice-items
Nov 15, 2026
Merged

MarkRosemaker merged 1 commit into
mainfrom
fix/named-slice-items

Conversation

@MarkRosemaker

Copy link
Copy Markdown
Owner

Detection of paginated lists (#77) asked for items of a literal []T. A list whose items are a named list type, such as type Templates []Template, now gets its iterators too, with T as the item type. A named slice is assignable to []T, so the generated code returns the field as it is.

In notion this adds iterators for users (with a cursor fix in notion itself), data source templates, skills plugins and sessions: 14 operations instead of 10. I checked that against notion locally with a replace.

TestPaginate covers a named list. make ready passes.


Generated by Claude Code

A list whose items are of a named list type, as type Templates []Template, gets
its iterators as one of []Template does: Notion's templates, plugins and
sessions are such lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y
@MarkRosemaker
MarkRosemaker merged commit 81cb09b into main Nov 15, 2026
1 check passed
@MarkRosemaker
MarkRosemaker deleted the fix/named-slice-items branch November 15, 2026 11:17
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.

2 participants