Docs: retrieving historical read positions outside the channel state window

Offen
#328 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
40/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
documentation

Rechercherichtung

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".

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
25
Forks
16
Ø Merge
20 Std. 8 Min.
Gemergte PRs (30 T.)
11

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus GetStream/stream-py

Alle Issues in GetStream/stream-py

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.