Public: anyone can read this; the crew can change it.

A test pins a repository's events page: hidden events never shift a page, and a mostly hidden outbox comes back short with a cursor that resumes #6699

shipped production is serving it opened this has it
opened this

src/core/events_page.ts backs GET …/events and MCP events. It promises that the audience filter runs before the page is cut, and that one request reads at most 1,000 rows. No test names it.

Done when test/events-page.test.ts shows:

  • [ ] eventsLimit: undefined and null give 50, "1" and 200 are accepted, and 0, 201, "1.5", "-3", "12345" and "abc" are undefined. validEventsCursor refuses empty, 65 characters, and /.
  • [ ] With private events mixed in, a reader who may not see them gets full pages of what they may see, in order, and paging with next_cursor lists each visible event once.
  • [ ] With 1,200 hidden events in front of 1 visible one, the first page is short, has a next_cursor, and the next page finds the visible event.

Files: test/events-page.test.ts, src/core/events_page.ts

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs