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

[codegen/typescript] Call site defaults for plain Pulumi Object types #8400

Merged
merged 30 commits into from Nov 18, 2021

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Nov 11, 2021

Description

Apply a default function when a object type is passed as an argument to Resource.

Partial fix for: #8132

Note: the massive number of files changes is because I needed to change the name of our registration inputs to resourceInputs. The old name (just inputs) conflicted with the inputs package. Changes were made to nodejs/gen.go and the test added is called env-helper (in codegen/internal/test/testdata).

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@iwahbe iwahbe marked this pull request as draft November 11, 2021 01:57
@github-actions
Copy link

Diff for pulumi-azuread with merge commit 1c61fa9

@github-actions
Copy link

Diff for pulumi-random with merge commit 1c61fa9

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit 1c61fa9

@github-actions
Copy link

Diff for pulumi-gcp with merge commit 1c61fa9

@github-actions
Copy link

Diff for pulumi-azure with merge commit 1c61fa9

@github-actions
Copy link

Diff for pulumi-aws with merge commit 1c61fa9

@iwahbe iwahbe changed the title iwahbe/8132/env variable helpers [codegen/typescript] iwahbe/8132/env variable helpers Nov 11, 2021
@github-actions
Copy link

Diff for pulumi-random with merge commit b646444

@github-actions
Copy link

Diff for pulumi-azuread with merge commit b646444

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit b646444

@github-actions
Copy link

Diff for pulumi-azuread with merge commit b30049e

@github-actions
Copy link

Diff for pulumi-random with merge commit b30049e

@github-actions
Copy link

Diff for pulumi-gcp with merge commit b646444

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit b30049e

@github-actions
Copy link

Diff for pulumi-gcp with merge commit b30049e

@github-actions
Copy link

Diff for pulumi-azure with merge commit b646444

@github-actions
Copy link

Diff for pulumi-azure with merge commit b30049e

@github-actions
Copy link

Diff for pulumi-aws with merge commit b646444

@github-actions
Copy link

Diff for pulumi-aws with merge commit b30049e

@github-actions
Copy link

Diff for pulumi-azuread with merge commit be80baf

@github-actions
Copy link

Diff for pulumi-random with merge commit f6f5c95

@github-actions
Copy link

Diff for pulumi-azuread with merge commit f6f5c95

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit f6f5c95

@github-actions
Copy link

Diff for pulumi-gcp with merge commit f6f5c95

@github-actions
Copy link

Diff for pulumi-azure with merge commit f6f5c95

@github-actions
Copy link

Diff for pulumi-aws with merge commit f6f5c95

@github-actions
Copy link

Diff for pulumi-azure-native with merge commit f6f5c95

@iwahbe iwahbe requested a review from t0yv0 November 17, 2021 20:47
@@ -1957,8 +1957,14 @@ func (dctx *docGenContext) generatePackage(tool string, pkg *schema.Package) (ma

glog.V(3).Infoln("generating package docs now...")
files := fs{}
for _, mod := range dctx.modules() {
if err := mod.gen(files); err != nil {
modules := []string{}
Copy link
Member

Choose a reason for hiding this comment

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

Oof nice find. Anything else using dctx.modules() like this?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only one

Copy link
Member

@t0yv0 t0yv0 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link

Diff for pulumi-random with merge commit 5306448

@github-actions
Copy link

Diff for pulumi-azuread with merge commit 5306448

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit 5306448

@github-actions
Copy link

Diff for pulumi-gcp with merge commit 5306448

@github-actions
Copy link

Diff for pulumi-azure with merge commit 5306448

@github-actions
Copy link

Diff for pulumi-aws with merge commit 5306448

@github-actions
Copy link

Diff for pulumi-azuread with merge commit bf51d5d

@github-actions
Copy link

Diff for pulumi-random with merge commit bf51d5d

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit bf51d5d

@github-actions
Copy link

Diff for pulumi-gcp with merge commit bf51d5d

@github-actions
Copy link

Diff for pulumi-azure with merge commit bf51d5d

@github-actions
Copy link

Diff for pulumi-aws with merge commit bf51d5d

@github-actions
Copy link

Diff for pulumi-azure-native with merge commit bf51d5d

@iwahbe iwahbe merged commit 3e2f365 into master Nov 18, 2021
@pulumi-bot pulumi-bot deleted the iwahbe/8132/env-variable-helpers branch November 18, 2021 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/codegen SDK-gen, program-gen, convert language/javascript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants