Skip to content

Made the stream-service create return the stream itself. - #298

Merged
tconley1428 merged 1 commit into
mainfrom
moe/up/create-stream-returns-stream
Oct 26, 2026
Merged

tconley1428 merged 1 commit into
mainfrom
moe/up/create-stream-returns-stream

Conversation

@moetemp

@moetemp moetemp commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What changed?

This PR makes the stream-service sample's create-stream return the stream resource, not a record that holds it.

  • The resource takes created and status beside its stream-ref, and return binding fills them from CreateStreamResponse.
  • stream-ref stays an identity, so the requests of the resource methods don't carry the status.

Why?

A create should give the caller the stream to use. The facts of the create belong to the handle that it returns, and the ref is what every later call sends.

How did you test it?

The stream-service goldens for Python, TypeScript and .NET. A .NET check now builds a stream from a ref with no facts.
cargo validate passes.

@moetemp
moetemp requested a review from a team as a code owner October 26, 2026 23:21
The stream resource takes created and status beside its ref, and return binding fills them from the response. The ref stays an identity.
@moetemp
moetemp force-pushed the moe/up/create-stream-returns-stream branch from c0d4047 to 87b032f Compare October 26, 2026 23:28
@tconley1428
tconley1428 merged commit a5f3a5c into main Oct 26, 2026
5 checks passed
@tconley1428
tconley1428 deleted the moe/up/create-stream-returns-stream branch October 26, 2026 23:36
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