terraform-provider-sumologic icon indicating copy to clipboard operation
terraform-provider-sumologic copied to clipboard

Bug: plan for DashboardSyncDefinition content in sumologic_content resource *always* has update in-place diff on `config`

Open ccog opened this issue 4 years ago • 4 comments

Hello! First, thanks for making and maintaining this provider--it's a big help.

We're using the provider to consolidate our team's saved searches and dashboards. We find that, for dashboards specifically (DashboardSyncDefinition-typed content), without making any changes to the underlying configurations, terraform plan indicates a massive number of changes on the config field of the object. These span numerous layout properties, as well as the underlying queries themselves. When applied, the changes don't have any effect, and the dashboards all seem unchanged.

While it seems that our dashboards are functional, this happens with every terraform plan, and creates a massive amount of noise; for our four dashboards with 2-4 panels apiece, the no-op plan is over 4,700 lines.

We're seeing this behavior on version 2.7.0 of the sumologic provider on terraform 0.12.19. Thanks in advance for any help!

ccog avatar Feb 11 '21 20:02 ccog

Hey! Would it be possible to get an example terraform resource for which you are experiencing this issue? I am not able to reproduce it using the dashboards I have.

seansain avatar Mar 04 '21 23:03 seansain

@ccog can you provide us with an example configuration to reproduce the issue?

sumovishal avatar Mar 09 '21 19:03 sumovishal

Hello @seansain and @sumovishal! Thanks for following up. Can I follow up with either of you via email? If so, please reach out to me at [email protected].

ccog avatar Mar 10 '21 23:03 ccog

Did anyone start working on this? This looks like a JSON ordering / sorting problem (specifically for dashboards which contain arrays of filters, panelIds, and panels).

bltb avatar Jul 15 '21 23:07 bltb