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

feat(fastly_alert): implement resource and documentation #810

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

darin-nee
Copy link
Contributor

This PR implements a new fastly_alert resource.

@Integralist Integralist added the enhancement New feature or request label Feb 8, 2024
@Integralist
Copy link
Collaborator

👋🏻 You'll need to run make generate-docs locally and then commit the changes.

Copy link
Contributor

@jsonroy-fastly jsonroy-fastly left a comment

Choose a reason for hiding this comment

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

Great work on this and the go-fastly changes!
Small comment added


### Read-Only

- `id` (String) The ID of this resource.
Copy link
Contributor

Choose a reason for hiding this comment

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

@darin-nee There is also object = "definition" that is returned in the response, also read-only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, that's in the API response and elided in the Terraform schema.

@darin-nee darin-nee changed the title feat(fastly_alerts): implement resource and documentation feat(fastly_alert): implement resource and documentation Feb 8, 2024
Copy link
Collaborator

@Integralist Integralist left a comment

Choose a reason for hiding this comment

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

Sorry, looked like I had a comment from 5 days ago sitting as "pending" 😬

"description": {
Type: schema.TypeString,
Optional: true,
Description: "Text body included in Alert notifications.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This kinda read weird. Can we make these descriptions align (where possible) with the API docs?

For example...

Suggested change
Description: "Text body included in Alert notifications.",
Description: "Additional text that is included in the alert notification.",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, done.

@Integralist
Copy link
Collaborator

Integralist commented Feb 13, 2024

Would also be good to get this added to https://github.com/fastly/terraform-provider-fastly/blob/main/tests/interface/main.tf

EDIT: See https://github.com/fastly/terraform-provider-fastly/blob/main/tests/interface/README.md

Copy link
Collaborator

@Integralist Integralist left a comment

Choose a reason for hiding this comment

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

It is always a pleasure reviewing your PRs 👍🏻 You write good, clean code and 99% of the time you just get it "right" the first time. Well done and thanks for making it easy to review 🙂

@darin-nee
Copy link
Contributor Author

Thanks @Integralist , and thanks for the review!

@Integralist Integralist merged commit 1cd5da7 into fastly:main Feb 14, 2024
9 checks passed
@darin-nee darin-nee deleted the darin-nee/fastly-alerts branch February 14, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants