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

[sdk/nodejs] Support for calling methods #7377

Merged
merged 3 commits into from
Jul 7, 2021

Conversation

justinvp
Copy link
Member

@justinvp justinvp commented Jun 28, 2021

Support for calling methods from Node.js.

Part of #7072

@justinvp justinvp force-pushed the justin/methods_calling_nodejs branch from eb6d244 to 6c836ad Compare June 30, 2021 16:55
@justinvp justinvp marked this pull request as ready for review June 30, 2021 16:55
Copy link
Contributor

@EvanBoyle EvanBoyle left a comment

Choose a reason for hiding this comment

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

overall these changes look good. runtime/* has been a been a bug farm and can fail in exciting ways so it would be good to see some tests that specifically exercise the call failure path if at all possible. We have some runtime register resource tests that do this:

describe("resource error handling", () => {

@@ -101,27 +101,27 @@ export async function streamInvoke(
const req = createInvokeRequest(tok, serialized, provider, opts);

// Call `streamInvoke`.
const call = monitor.streamInvoke(req, {});
Copy link
Member

Choose a reason for hiding this comment

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

Did this change b/c of a lint issue w. shadowing?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes

@emiliza emiliza added this to the 0.59 milestone Jul 7, 2021
`__provider` is already used by the dynamic provider `Resource` class, so we need to use another property name here.
@justinvp justinvp force-pushed the justin/methods_calling_nodejs branch from 6c836ad to 1e300c9 Compare July 7, 2021 21:10
@justinvp justinvp merged commit c1f3e1c into master Jul 7, 2021
@pulumi-bot pulumi-bot deleted the justin/methods_calling_nodejs branch July 7, 2021 23:03
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.

4 participants