Skip to content

Merged "add / update resource" docs into a single guide#8193

Merged
melinath merged 20 commits into
mainfrom
docs-add-resource-merge
Jun 30, 2023
Merged

Merged "add / update resource" docs into a single guide#8193
melinath merged 20 commits into
mainfrom
docs-add-resource-merge

Conversation

@melinath

@melinath melinath commented Jun 22, 2023

Copy link
Copy Markdown
Member

See go/tpg-contribution-docplan for more details. These changes expect that #8188 is merged (which expands the "How Magic Modules works" page to include more information about directory structures.)

The main changes are:

  1. Merged "Add an MMv1 resource", "Add MMv1 IAM resources", "Add and update MMv1 resource documentation", "Update a handwritten resource", "Add handwritten IAM resources", and "Update handwritten provider documentation" into a single document that covers resource, field, IAM, and documentation all at once.
    • This document is written as a task-based guide, which means that it contains as little conceptual information as possible. For example, I greatly reduced the amount of context provided for handwritten resources.
  2. Added a page called "Promote to GA" that covers promotion of MMv1 & handwritten resources and fields.

There is some information related to tests which was "lost" in this rewrite which will be re-added in a separate PR that merges pages related to MMv1 and handwritten tests.
I also chose to exclude some information related to less commonly-used fields which I plan for us to re-add as part of an advanced guide, best practices guide, or comprehensive reference in the future.

Resolved hashicorp/terraform-provider-google#12657. Resolved hashicorp/terraform-provider-google#12648. Resolved hashicorp/terraform-provider-google#12408. Resolved hashicorp/terraform-provider-google#12396. b/284469519 b/261500389

Add or modify a resource

MMv1

localhost_1313_magic-modules_develop_resource_ (2)
localhost_1313_magic-modules_develop_resource_ (3)

Handwritten

localhost_1313_magic-modules_develop_resource_ (1)

Promote to GA

MMv1

localhost_1313_magic-modules_develop_promote-to-ga_

Handwritten:

localhost_1313_magic-modules_develop_promote-to-ga_ (1)

Release Note Template for Downstream PRs (will be copied)


@melinath melinath requested a review from rileykarson June 22, 2023 23:32
Comment thread mmv1/products/alloydb/Backup.yaml
Comment thread docs/content/develop/resource.md Outdated
Comment thread docs/content/develop/resource.md Outdated
Comment thread docs/content/develop/resource.md Outdated
Comment thread docs/content/develop/resource.md Outdated
Comment thread docs/content/develop/resource.md Outdated
Comment thread docs/content/develop/resource.md Outdated
Comment thread docs/content/develop/resource.md
Comment thread docs/content/develop/resource.md Outdated
Comment thread docs/content/develop/resource.md
@melinath melinath requested a review from rileykarson June 23, 2023 22:13
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2815
Passed tests 2512
Skipped tests: 301
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccComputeNetworkEndpoints_networkEndpointsBasic|TestAccComputeFirewallPolicyRule_multipleRules

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests passed during RECORDING mode:
TestAccComputeNetworkEndpoints_networkEndpointsBasic[Debug log]

Tests failed during RECORDING mode:
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

@melinath

Copy link
Copy Markdown
Member Author

I'm going ahead with merging this for now, since it sounds like the remaining thread is not a blocker (because it is approved) but definitely let me know if there are any additional changes that need to be made.

@melinath melinath merged commit 8fbb9b5 into main Jun 30, 2023
@melinath melinath deleted the docs-add-resource-merge branch June 30, 2023 16:07
ericayyliu pushed a commit to ericayyliu/magic-modules that referenced this pull request Jul 26, 2023
…latform#8193)

* Created add a resource page with template yaml and migrated some content to it

* Temporary checkpoint for docs improvements

* Added / renamed reference links

* Finalized add-a-resource doc

* Reverted test docs changes and cleaned up navigation

* Removed change to how magic modules works

* Renamed guide to include modifying

* Reverted unrelated file deletion

* Switched to multiline for docs warning & note

* Clarified when field value replacement will happen

* Standardized resource URL descriptions on language used in AIPs

* Cleaned up boolean field descriptions

* Clarified that field-level update_verb only has impact if update_url is set

* Clarified the drawbacks of default_from_api.

* Softened language around when new handwritten resources would be accepted

* Added back required (but unused) async configuration

* Switched to name rather than resource id

* Clarified what triggers a handwritten resource being allowed

* Added steps to clean up comments copied from templates in configuration files

* Cleaned up descriptions related to default_from_api and usage of 'will'

https://developers.google.com/style/tense
wj-chen pushed a commit to wj-chen/magic-modules that referenced this pull request Aug 1, 2023
…latform#8193)

* Created add a resource page with template yaml and migrated some content to it

* Temporary checkpoint for docs improvements

* Added / renamed reference links

* Finalized add-a-resource doc

* Reverted test docs changes and cleaned up navigation

* Removed change to how magic modules works

* Renamed guide to include modifying

* Reverted unrelated file deletion

* Switched to multiline for docs warning & note

* Clarified when field value replacement will happen

* Standardized resource URL descriptions on language used in AIPs

* Cleaned up boolean field descriptions

* Clarified that field-level update_verb only has impact if update_url is set

* Clarified the drawbacks of default_from_api.

* Softened language around when new handwritten resources would be accepted

* Added back required (but unused) async configuration

* Switched to name rather than resource id

* Clarified what triggers a handwritten resource being allowed

* Added steps to clean up comments copied from templates in configuration files

* Cleaned up descriptions related to default_from_api and usage of 'will'

https://developers.google.com/style/tense
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants