Docs: show a v2 channel export JSONL example and reconcile batch limits

Open Beginner friendly
#329 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start from the linked Python export guide and locate its source in the repository docs; the payload does not name the file. Read ExportChannelsRequest.channels in the Chat OpenAPI schema to compare maxItems with the guide's 25-channel limit. Done means the guide shows a minimal v2 JSONL example for channel, member, message and reaction rows with linking ids, documents soft-deleted/truncated fields and ordering guarantees, and states the correct batch limit per route.

Written by the indexing model from the issue text.

Description

Could the Python channel export guide include a small synthetic v2 JSONL result and clarify the supported batch size? We used the guide to implement a restore and had to inspect completed exports to learn what each line represents.

  • File format. The guide describes one entity per line. In completed Chat exports with version="v2", we observed a type discriminator and an item object for channel, member, message and reaction rows. A minimal example with the identifiers that link a reaction to its message and a member to its channel would make it possible to implement a parser. Please indicate which row types are guaranteed or optional and whether consumers can rely on any ordering.
  • Deleted records. For include_soft_deleted_channels and include_truncated_messages, please describe what happens to soft-deleted messages and retained fields. A tombstone example alongside a live message would help consumers preserve deletion on restore.
  • Batch size. The guide gives a maximum of 25 channels per request. The published Chat OpenAPI schema for ExportChannelsRequest.channels says maxItems: 100. Which limit should an SDK caller use? If the legacy and v2 HTTP routes have different limits, please identify each. We have not tested above the documented 25.

Python export guide · Chat OpenAPI schema, search for ExportChannelsRequest

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.