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

Suppress diff on default precision #228

Merged
merged 1 commit into from
Jun 7, 2019

Conversation

nmuesch
Copy link
Contributor

@nmuesch nmuesch commented Jun 7, 2019

Suppress the diff on the precision attribute of timeboard graphs when it makes sense.

Some widget types allow the precision field to be set. The default value for this is 2. If the value isn't set in the config, the Datadog API applies a value of 2 on certain widget types (mainly query value widgets)

Since the state has a 2 returned by the API, it doesn't match the config value of "", causing a diff. We could provide this as a default to the schema, but its not a valid attribute to all graph widgets, so its cleaner to suppress the diff in this case.

@ghost ghost added the size/XS label Jun 7, 2019
Copy link
Contributor

@bkabrda bkabrda left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@nmuesch nmuesch merged commit 55d95e4 into DataDog:master Jun 7, 2019
@nmuesch nmuesch deleted the nick/suppress_silence branch June 7, 2019 14:37
jbenais pushed a commit to jbenais/terraform-provider-datadog that referenced this pull request Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants