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

Missing important upstream documentation related to BucketReplicationConfig #4921

Closed
zbuchheit opened this issue Dec 13, 2024 · 3 comments · Fixed by #5112
Closed

Missing important upstream documentation related to BucketReplicationConfig #4921

zbuchheit opened this issue Dec 13, 2024 · 3 comments · Fixed by #5112
Assignees
Labels
area/docs Improvements or additions to documentation awaiting/bridge The issue cannot be resolved without action in pulumi-terraform-bridge. customer/feedback Feedback from customers customer/lighthouse Lighthouse customer bugs kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Milestone

Comments

@zbuchheit
Copy link

Upstream there is some important documentation that isn't present in our documentation

Note

The existing_object_replication parameter is not supported by Amazon S3 at this time and should not be included in your rule configurations. Specifying this parameter will result in MalformedXML errors. To replicate existing objects, please refer to the Replicating existing objects with S3 Batch Replication documentation in the Amazon S3 User Guide.

This is important to doing replication and can lead users to incorrectly configure the bucket replication and hit an error without a clear direction forward.

@zbuchheit zbuchheit added area/docs Improvements or additions to documentation kind/bug Some behavior is incorrect or out of spec customer/lighthouse Lighthouse customer bugs customer/feedback Feedback from customers labels Dec 13, 2024
@t0yv0 t0yv0 added the awaiting/bridge The issue cannot be resolved without action in pulumi-terraform-bridge. label Dec 19, 2024
@guineveresaenger
Copy link
Contributor

guineveresaenger commented Jan 7, 2025

The reason this information is missing is most likely due to the fact that this NOTE is not attached to the rule documentation text, but rather to the subheading where rule's nested types are explained.
Here's where we're getting the Description for rule:
Image

But the NOTE is actually further down, in the subheading for rule:
Image

I believe this is less of a function of NOTE (although there is some opinionated behavior around NOTEs in the bridge) and more a function of the source of the information not being associated correctly. We never parse top-level text from nested block headings into the type Description.

See also: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function#vpc_config vs https://www.pulumi.com/registry/packages/aws/api-docs/lambda/function/#functionvpcconfig - you notice additionally that in the TF docs many of the the configuration block headers have nice intro paragraphs, none of which show up in the Pulumi docs. I believe that has the same cause.

What to do?

A quick "fix" for this one resource, this one time, is to use DocEditRules to edit the source text and move the NOTE text under the top-level rule description. This is horrifically brittle, as it relies on the upstream source not changing.

Given that this is an issue elsewhere as well, we should make an effort to find and correctly associate extra text. I worry that this is a relatively large/complicated change to docsgen, so this may take some effort.

@guineveresaenger
Copy link
Contributor

I've filed pulumi/pulumi-terraform-bridge#2841 to track the bridge fix.

@mjeffryes mjeffryes added this to the 0.115 milestone Jan 17, 2025
guineveresaenger added a commit that referenced this issue Jan 24, 2025
While this fix is not the complete underlying docsgen fix that would fix
related issues, it will resolve the specific instance of difficulties
experienced due to missing NOTEs on Rule.:wq

Fixes #4921.

- **Fix up Bucket Replication Config with missing note**
- **build schema and SDKs**
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Jan 24, 2025
@pulumi-bot
Copy link
Contributor

This issue has been addressed in PR #5112 and shipped in release v6.68.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Improvements or additions to documentation awaiting/bridge The issue cannot be resolved without action in pulumi-terraform-bridge. customer/feedback Feedback from customers customer/lighthouse Lighthouse customer bugs kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants