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

pf resources show diff for empty map #2165

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

corymhall
Copy link
Contributor

re pulumi/pulumi-aws#4080

I've noticed different behavior between sdkv2 and pf resources.
Sometimes if you do not provide a value for a map property it will write
an empty value to the outputs (i.e. { \"tagsAll\": {} }).

When diff is called, the olds show the empty object value and the news
show no entry at all. sdkv2 resources handle this and do not display any
diff whereas pf resources show a diff.

re pulumi/pulumi-aws#4080

I've noticed different behavior between sdkv2 and pf resources.
Sometimes if you do not provide a value for a map property it will write
an empty value to the outputs (i.e. `{ "tagsAll": {} }`).

When diff is called, the `olds` show the empty object value and the news
show no entry at all. sdkv2 resources handle this and do not display any
diff whereas pf resources show a diff.
@corymhall corymhall marked this pull request as draft July 8, 2024 19:46
Copy link

codecov bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.64%. Comparing base (03104a4) to head (9fc9f9e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2165   +/-   ##
=======================================
  Coverage   60.64%   60.64%           
=======================================
  Files         350      350           
  Lines       45925    45925           
=======================================
  Hits        27852    27852           
  Misses      16533    16533           
  Partials     1540     1540           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mjeffryes mjeffryes modified the milestone: 0.107 Jul 24, 2024
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.

2 participants