[Bug]: Typo in Quicksight Pie Chart flattenDataLabelOptions ( 'measure_visibility' -> 'measure_label_visibility' ) #32652
Labels
bug
Addresses a defect in current functionality.
service/quicksight
Issues and PRs that pertain to the quicksight service.
Milestone
Terraform Core Version
1.5.3
AWS Provider Version
5.9.0
Affected Resource(s)
aws_quicksight_dashboard
Expected Behavior
For a Pie Chart visual, be able to set the 'Show Metric' option
Actual Behavior
Exception is thrown when after the resources are created, and state is being written.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create a simple analysis with one pie chart visual tied to a test DataSet with numbers.
Under the Data Labels settings, check the 'Show Metric' option.
Plan and Apply and the dashbooard will create, but throw the error while getting state ready to write.
Debug Output
In the current 5.9.0, the bug is in visual.go on line 1479. Compared to the sister method, expandDataLabelOptions() and the schema in dataLabelOptionsSchema(), "measure_visibility" should be "measure_label_visibility".
Panic Output
Error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "0", "visuals", "0", "pie_chart_visual", "0", "chart_configuration", "0", "data_labels", "0", "measure_visibility"}
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: