Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: convert action to TypeScript #297

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

pvlugter
Copy link
Member

Refs #293. Convert action and action-support to TypeScript.

Trying to be a direct and faithful translation of what's there. Not sure the test coverage would pick up on everything.

With the way that the contexts for unary and streamed calls are created and used, have forced expectations with some casts and non-null assertions.

There was also a cancel on the streaming in, but there is no cancel on these server-side interfaces, so I've commented that out for now. The cancel method should be removed from the streaming-in context, if cancelling is only client-side.

this.streamDebug('cancel invoked when already cancelled.');
} else {
this.call.cancel();
// FIXME: there doesn't seem to be any server-side cancel, only client-side, so what was this doing before?
// call.cancel();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. Tried looking into the grpc-js interfaces but I can't find anything suitable-cancel-like either.

@johanandren johanandren merged commit 675fdf1 into lightbend:kalix-main Apr 19, 2022
@pvlugter pvlugter deleted the typescript-action branch April 26, 2022 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants