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

[datadog_synthetics_test] Remove request_definition.timeout default value #2459

Conversation

Drarig29
Copy link
Contributor

@Drarig29 Drarig29 commented Jun 25, 2024

This is a PR stack, here is how it's organized:


In #1497, we added the same value in TF as in the UI to fix a bug where the timeout was set to 0.

But always hardcoding the default value has a side effect: the UI says that 1 option is configured, which isn't exactly right when users do not have a request_definition.timeout set in TF.

image

Our backend now ignores 0 for a timeout, so we can remove the default value from TF and ensure the change is backwards compatible (i.e. doesn't generate diffs when planning/applying)

etnbrd
etnbrd previously approved these changes Jun 27, 2024
Copy link
Contributor

@etnbrd etnbrd left a comment

Choose a reason for hiding this comment

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

LGTM up to removing the DiffSuppressFunc to avoid adding unnecessary complexity.

datadog/resource_datadog_synthetics_test_.go Outdated Show resolved Hide resolved
@nkzou nkzou force-pushed the corentin.girard/SYNTH-14611/fix_monitor_options_renotify_interval branch from 102ac28 to b1d5b02 Compare July 5, 2024 14:13
@nkzou nkzou requested a review from a team as a code owner July 5, 2024 14:13
Base automatically changed from corentin.girard/SYNTH-14611/fix_monitor_options_renotify_interval to master July 5, 2024 14:42
@nkzou nkzou dismissed etnbrd’s stale review July 5, 2024 14:42

The base branch was changed.

@nkzou nkzou force-pushed the corentin.girard/SYNTH-14611/remove-request-definition-timeout-default-value branch from 55cf5f6 to a301eeb Compare July 5, 2024 14:51
@nkzou nkzou merged commit c7b8fb1 into master Jul 5, 2024
10 checks passed
@nkzou nkzou deleted the corentin.girard/SYNTH-14611/remove-request-definition-timeout-default-value branch July 5, 2024 18:00
bharling pushed a commit to bharling/terraform-provider-datadog that referenced this pull request Jul 8, 2024
… value (DataDog#2459)

* [datadog_synthetics_test] Remove default `request_definition.timeout`

* Remove `DiffSuppressFunc`

* update cassettes

* make docs

---------

Co-authored-by: Kevin Zou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants