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

Update aws.s3.Bucket notes to point to aws.s3.BucketV2 #4491

Merged
merged 4 commits into from
Oct 16, 2024

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Sep 20, 2024

Add a note for the aws.s3.Bucket page to direct users to aws.s3.BucketV2.

Fixes https://github.com/pulumi/home/issues/3629

Fix an issue with documentation override: due to a bug docs/resource/aws_s3_bucket_legacy.md was not being picked up and the aws.s3.Bucket page was incorrectly serving docs for the aws.s3.BucketV2 resource. This is fixed here.

This PR should not merge until pulumi/registry#5444 gets published.

Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@t0yv0 t0yv0 force-pushed the t0yv0/update-aws-bucket-notes branch from d6b834e to fcb1301 Compare October 15, 2024 19:49
@t0yv0
Copy link
Member Author

t0yv0 commented Oct 16, 2024

The registry PR has published.

@@ -135584,28 +135584,28 @@
"items": {
"type": "string"
},
"description": "List of headers allowed.\n"
"description": "Specifies which headers are allowed.\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do those changes come from? I don't see those descriptions being modified in the PR

Copy link
Member Author

Choose a reason for hiding this comment

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

Fix an issue with documentation override: due to a bug docs/resource/aws_s3_bucket_legacy.md was not being picked up and the aws.s3.Bucket page was incorrectly serving docs for the aws.s3.BucketV2 resource. This is fixed here.

Copy link
Member Author

Choose a reason for hiding this comment

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

There was a bug that sent BucketV2 documentation into the Bucket page, ignoring the handcrafted aws_s3_bucket_legacy.md file

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, ok that makes sense!

@@ -3756,7 +3756,7 @@ compatibility shim in favor of the new "name" field.`)
Transform: tfbridge.TransformJSONDocument,
},
},
Docs: &tfbridge.DocInfo{Source: "../../../../docs/resource/aws_s3_bucket_legacy.md"},
Docs: &tfbridge.DocInfo{Markdown: maybeReadFile("docs/resource/aws_s3_bucket_legacy.md")},
Copy link
Member Author

Choose a reason for hiding this comment

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

Fix to the silently ignored source here.

Copy link
Contributor

@flostadler flostadler left a comment

Choose a reason for hiding this comment

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

lgtm

@t0yv0 t0yv0 merged commit df36089 into master Oct 16, 2024
32 checks passed
@t0yv0 t0yv0 deleted the t0yv0/update-aws-bucket-notes branch October 16, 2024 16:36
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v6.56.1.

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