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

Adjust documentation for Elem() #2187

Merged
merged 3 commits into from
Jul 16, 2024
Merged

Adjust documentation for Elem() #2187

merged 3 commits into from
Jul 16, 2024

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Jul 16, 2024

Toward fixing #1828

Document current findings and add tests for PF representations.

Toward fixing #1828

Document current findings and add tests for PF representations.
@t0yv0 t0yv0 requested review from VenelinMartinov and iwahbe July 16, 2024 16:46
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.65%. Comparing base (7ce57cb) to head (f778588).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2187   +/-   ##
=======================================
  Coverage   60.65%   60.65%           
=======================================
  Files         350      350           
  Lines       45930    45930           
=======================================
  Hits        27857    27857           
  Misses      16533    16533           
  Partials     1540     1540           

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

@t0yv0 t0yv0 mentioned this pull request Jul 16, 2024
@t0yv0 t0yv0 requested a review from guineveresaenger July 16, 2024 17:06
@t0yv0
Copy link
Member Author

t0yv0 commented Jul 16, 2024

Looks like PF has an ObjectAttribute as well, let me test that.

autogold.Expect(`{
"resources": {
"_": {
"object_attribute": {
Copy link
Member Author

Choose a reason for hiding this comment

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

Interestingly enough this may look like a single-nested block to shim.Schema; it doesn't carry the distinction is it an attr or block in shim.Schema. May be allright for now but can cause some trouble in the corner cases perhaps.

pkg/tfshim/shim.go Outdated Show resolved Hide resolved
@t0yv0 t0yv0 enabled auto-merge (squash) July 16, 2024 20:59
@t0yv0 t0yv0 merged commit 16b5c17 into master Jul 16, 2024
11 checks passed
@t0yv0 t0yv0 deleted the t0yv0/fix-elem-docs branch July 16, 2024 21:20
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v3.87.0.

VenelinMartinov added a commit that referenced this pull request Jul 23, 2024
Follow up on #2187
with shim translation tests for sdkv2 schemas.

In sdkv2 the translations map 1:1 as far as I can tell.
@mjeffryes mjeffryes added this to the 0.107 milestone 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.

4 participants