Docs: retrieving historical read positions outside the channel state window

Open
#328 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
40/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
documentation

Research direction

Start from the three linked Python docs pages (get-channel, query-channels, exporting-channels) and check what the client exposes for channel state read lists and the v2 export. Confirm with a maintainer whether a read-only server-side enumeration exists before drafting anything, since the issue asks a supported-route question rather than naming a file. Done when the docs state the supported route, its snapshot semantics, and how a caller tells "never read" from "position unavailable".

Written by the indexing model from the issue text.

Description

Could the Python Get Channel and export docs describe how to retrieve historical per-member last_read values on large channels, especially for deactivated members? This matters when restoring an inbox. A missing row can otherwise turn previously seen messages into unread items, or hide unseen replies.

In a migration rehearsal, we compared the following observations on existing channels:

  1. Query Channels returned a bounded read list, as documented. On a channel with more than 300 members, the noncreating channel GET with state=true returned 300 read rows when we requested 300 members. Requesting more members or adding a member offset did not reveal the remaining rows. This is an observation for the tested requests, not a proposed API limit.
  2. Some deactivated users had read positions visible in the shared window. For sampled deactivated users outside it, a member-scoped request returned HTTP 404 with Stream error code 16 identifying deactivation. Paging the membership list established that those users were members, but supplied no bookmark for them.
  3. Our v2 channel export included member and message records. We found no per-member read positions in that capture.

Is there a supported server-side, read-only way to enumerate every available bookmark, or query a specific deactivated member without reactivating them? How can a caller distinguish “never read” from “position unavailable through this endpoint”? If a managed export is the supported route, a link describing how to request it and its snapshot semantics would help. We have no evidence that an omitted position was deleted.

Get Channel · Query Channels · Channel export

Dominant language
Python
Stars
25
Forks
16
Avg merge
20h 8m
Merged PRs (30d)
11

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GetStream/stream-py

All issues in GetStream/stream-py

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.