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

Fix NodeJS SDK when a component is using another component from the same schema as a property #11467

Merged
merged 1 commit into from Dec 9, 2022

Conversation

pasqualet
Copy link
Contributor

Description

The code generated for the NodeJS SDK is broken when a component is using another component from the same schema as a property where the token doesn't start with <provider-name>:index:.

Fixes #11466

I've created a test project to verify the issue and to verify the fix:

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@github-actions
Copy link

PR is now waiting for a maintainer to take action.

Note for the maintainer: Commands available:

  • /run-acceptance-tests - used to test run the acceptance tests for the project
  • /run-codegen - used to test the Pull Request against downstream codegen
  • /run-docs-gen - used to test the Pull Request against documentation generation

@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2022-11-25)

Bug Fixes

  • [sdkgen/nodejs] Fix NodeJS SDK when a component is using another component from the same schema as a property

@iwahbe
Copy link
Member

iwahbe commented Dec 6, 2022

/run-codegen

Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. LGTM!

@iwahbe
Copy link
Member

iwahbe commented Dec 9, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 9, 2022

Build succeeded:

@bors bors bot merged commit 0e07033 into pulumi:master Dec 9, 2022
iwahbe added a commit that referenced this pull request Dec 9, 2022
iwahbe added a commit that referenced this pull request Dec 9, 2022
Adjust CL for multiple languages.
bors bot added a commit that referenced this pull request Dec 9, 2022
11606: Remove .NET type imports and add a test for #11467 r=iwahbe a=iwahbe

This is follow up for #11467. It adjusts a SDK generation test to include the new feature. I also remove the resource import code for .NET, since it broke the test and we use absolute paths at this point.

Co-authored-by: Ian Wahbe <ian@wahbe.com>
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.

The NodeJS SDK is broken when a component is using another component from the same schema as a property
3 participants