Skip to content

Tf 39100 handling key warnings and notes in docgen#2144

Open
gbaker-ibm wants to merge 6 commits into
mainfrom
TF-39100-handling-key-warnings-and-notes-in-docgen
Open

Tf 39100 handling key warnings and notes in docgen#2144
gbaker-ibm wants to merge 6 commits into
mainfrom
TF-39100-handling-key-warnings-and-notes-in-docgen

Conversation

@gbaker-ibm

@gbaker-ibm gbaker-ibm commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

Adds admonitions regarding warnings, notes, and deprecations into schemata. Modified document generation to surface messages regarding deprecations.

Also performs minor format changes to existing website documentation and sources.

Some admonitions in a specific, handwritten section regarding TTL formats are in no way replicated, nor is the information. However that information is handled, so too this must be handled (at a later date).

Remember to:

Testing plan

  1. Run acceptance tests for the (large number of) affected components
  2. Generate any piece of documentation using generate-docs.sh which uses deprecation and identify the style use
  3. Run the validation scripts and note no errors

Sample doc output

Screenshot displaying notes admonitions present in resource level Screenshot displaying deprecation notes present in attribute lines Screenshot of a different resource, displaying warning admonitions present in resource level

Inventory of admonition changes (and consistencies)

The following report was partially generated and partially scripted; it may not be perfectly accurate.

admonitions.csv

Output from acceptance tests

Note that failures are listed. We submit they are the same before and after

$ TFE_ADMIN_PROVISION_LICENSE_TOKEN=$TFE_TOKEN TF_ACC=1 go test ./internal/provider/... --run "" -v

test_results_new.txt

Rollback Plan

Rollback of the PR and regeneration of any docs should be sufficient.

Changes to Security Controls

N/A

@gbaker-ibm gbaker-ibm self-assigned this Jul 16, 2026
@gbaker-ibm
gbaker-ibm marked this pull request as ready for review July 16, 2026 17:04
@gbaker-ibm
gbaker-ibm requested a review from a team as a code owner July 16, 2026 17:05
@gbaker-ibm
gbaker-ibm marked this pull request as draft July 17, 2026 17:29
@gbaker-ibm
gbaker-ibm force-pushed the TF-39100-handling-key-warnings-and-notes-in-docgen branch 3 times, most recently from a006e62 to 83ef253 Compare July 20, 2026 19:39
@gbaker-ibm
gbaker-ibm force-pushed the TF-39100-handling-key-warnings-and-notes-in-docgen branch from 83ef253 to 1a7941c Compare July 20, 2026 20:42
@gbaker-ibm
gbaker-ibm force-pushed the TF-39100-handling-key-warnings-and-notes-in-docgen branch from 1a7941c to 666afe6 Compare July 20, 2026 20:46
@gbaker-ibm
gbaker-ibm force-pushed the TF-39100-handling-key-warnings-and-notes-in-docgen branch from c5f2ac2 to 3315884 Compare July 20, 2026 21:34
@gbaker-ibm
gbaker-ibm marked this pull request as ready for review July 20, 2026 21:45

@ctrombley ctrombley left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved with a few small nits!

Comment thread CHANGELOG.md
Comment on lines +4 to +5
* Documentation generation now inserts attribute and resource deprecation guidance into the generated schema docs. By @<gbaker-ibm> [#2144](https://github.com/hashicorp/terraform-provider-tfe/pull/2144)
* Corrected and reorganized schema fields across the provider, including placing deprecation marks into those previously noted as deprecated by the documentation. By @<gbaker-ibm> [#2144](https://github.com/hashicorp/terraform-provider-tfe/pull/2144)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

💅 Were these angle brackets intentional?

Suggested change
* Documentation generation now inserts attribute and resource deprecation guidance into the generated schema docs. By @<gbaker-ibm> [#2144](https://github.com/hashicorp/terraform-provider-tfe/pull/2144)
* Corrected and reorganized schema fields across the provider, including placing deprecation marks into those previously noted as deprecated by the documentation. By @<gbaker-ibm> [#2144](https://github.com/hashicorp/terraform-provider-tfe/pull/2144)
* Documentation generation now inserts attribute and resource deprecation guidance into the generated schema docs. By @gbaker-ibm [#2144](https://github.com/hashicorp/terraform-provider-tfe/pull/2144)
* Corrected and reorganized schema fields across the provider, including placing deprecation marks into those previously noted as deprecated by the documentation. By @gbaker-ibm [#2144](https://github.com/hashicorp/terraform-provider-tfe/pull/2144)

Optional: true,
ConflictsWith: []string{"trigger_patterns", "trigger_prefixes"},
Description: "A regular expression used to trigger a workspace run for matching Git tags. Conflicts with `trigger_patterns` and `trigger_prefixes`.",
Description: "A regular expression used to trigger a Workspace run for matching Git tags. This option conflicts with `trigger_patterns` and `trigger_prefixes`. Should only set this value if the former is not being used.",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

💅 Consider for consistency:

Suggested change
Description: "A regular expression used to trigger a Workspace run for matching Git tags. This option conflicts with `trigger_patterns` and `trigger_prefixes`. Should only set this value if the former is not being used.",
Description: "A regular expression used to trigger a workspace run for matching Git tags. This option conflicts with `trigger_patterns` and `trigger_prefixes`. Should only set this value if the former is not being used.",

Optional: true,
Default: false,
Description: "If true, the workspace will be force deleted when destroyed via this provider, even if the workspace contains resources managed by Terraform.",
Description: "If this attribute is present on a workspace that is being deleted through the provider, it will use the existing force delete API. If this attribute is not present or false it will safe delete the workspace.",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

force_delete is a boolean attribute with Default: false, so phrasing it as "if this attribute is present on a workspace"feels awkward (it's always "present," just true/false). Recommend keeping something closer to the original.

Comment on lines +45 to +46
"-> **Note:** Stack cannot be destroyed if it contains deployments that have underlying managed resources.\n\n" +
"~> **Note:** Stack support is currently pre-release/beta and subject to change. A stack cannot be destroyed until all resources in its deployments have been destroyed.",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we consolidate the "cannot be destroyed" language across these two admonitions?

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