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 unknown inputs deserialization #306

Merged
merged 7 commits into from
Jul 25, 2024

Conversation

jkerken
Copy link
Contributor

@jkerken jkerken commented Jul 24, 2024

Fix extracted from #275

I also found the same bug for unkown secrets inputs. Which is also fixed.

I did not copy the intgeration test over since that was done using a c# component provider
But it is present in the other pr, I added some unit tests to cover these edge cases though.

Jan Kerkenhoff and others added 3 commits July 24, 2024 13:41
An unknown Input will be serialized as a OutputReference without the value field in the struct. We now correctly set the value to be a computed PropertyValue in Unmarshal. The PropertyValueSerializer now checks if an OutputReference contained a computed value which means it's an unknown Input
@jkerken jkerken requested a review from a team as a code owner July 24, 2024 12:47
@jkerken jkerken force-pushed the fix-unkown-inputs-deserialization branch from 3178cb4 to f1e2ab6 Compare July 24, 2024 19:29
@Frassle Frassle changed the title Fix unkown inputs deserialization Fix unknown inputs deserialization Jul 24, 2024
@Frassle Frassle enabled auto-merge July 25, 2024 12:54
@Frassle Frassle added this pull request to the merge queue Jul 25, 2024
Merged via the queue into pulumi:main with commit 9e951d4 Jul 25, 2024
17 checks passed
@jkerken jkerken deleted the fix-unkown-inputs-deserialization branch July 26, 2024 08:34
@Zaid-Ajaj Zaid-Ajaj mentioned this pull request Aug 9, 2024
github-merge-queue bot pushed a commit that referenced this pull request Aug 9, 2024
## v3.66.0 - 2024-08-09

### Improvements

- [sdk] Support package parameterization for
Read/RegisterResource/Call/Invoke
[#311](#311)

### Bug Fixes

- [sdk] Fix type annotations for inputListFromT0/1
[#301](#301)

- [sdk] Fix race condition in GrpcMonitor's GrpcChannel management
[#304](#304)

- [sdk] Fix unknown inputs deserialization
[#306](#306)

- [sdk] Fix program hanging when a resource transformation throws an
exception [#307](#307)

- [sdk] Fix handling of input properties with backing fields
[#308](#308)

### Improvements

- [sdk/auto] Implement Stack.ImportAsync() for batch importing resources
into a stack [#296](#296)
algompluecker pushed a commit to algompluecker/pulumi-dotnet that referenced this pull request Sep 4, 2024
## v3.66.0 - 2024-08-09

### Improvements

- [sdk] Support package parameterization for
Read/RegisterResource/Call/Invoke
[pulumi#311](pulumi#311)

### Bug Fixes

- [sdk] Fix type annotations for inputListFromT0/1
[pulumi#301](pulumi#301)

- [sdk] Fix race condition in GrpcMonitor's GrpcChannel management
[pulumi#304](pulumi#304)

- [sdk] Fix unknown inputs deserialization
[pulumi#306](pulumi#306)

- [sdk] Fix program hanging when a resource transformation throws an
exception [pulumi#307](pulumi#307)

- [sdk] Fix handling of input properties with backing fields
[pulumi#308](pulumi#308)

### Improvements

- [sdk/auto] Implement Stack.ImportAsync() for batch importing resources
into a stack [pulumi#296](pulumi#296)
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.

3 participants