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

r/aws_quicksight_dashboard: Fix error reading state with Table visuals #35132

Conversation

sean-nixon
Copy link

Description

This fixes a bug where the aws_quicksight_dashboard resource would fail on refreshing/reading the state with certain configurations of Table visuals due to a typo.

Error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "5", "visuals", "2", "table_visual", "0", "chart_configuration", "0", "field_options", "0", "selected_field_options", "2", "visbility"}

Relations

Closes #33463

References

Output from Acceptance Testing

% make testacc TESTS=TestAccQuickSightDashboard PKG=quicksight
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/quicksight/... -v -count 1 -parallel 20 -run='TestAccQuickSightDashboard'  -timeout 360m
?       github.com/hashicorp/terraform-provider-aws/internal/service/quicksight/schema  [no test files]
=== RUN   TestAccQuickSightDashboard_basic
=== PAUSE TestAccQuickSightDashboard_basic
=== RUN   TestAccQuickSightDashboard_disappears
=== PAUSE TestAccQuickSightDashboard_disappears
=== RUN   TestAccQuickSightDashboard_sourceEntity
=== PAUSE TestAccQuickSightDashboard_sourceEntity
=== RUN   TestAccQuickSightDashboard_updateVersionNumber
=== PAUSE TestAccQuickSightDashboard_updateVersionNumber
=== RUN   TestAccQuickSightDashboard_dashboardSpecificConfig
=== PAUSE TestAccQuickSightDashboard_dashboardSpecificConfig
=== CONT  TestAccQuickSightDashboard_basic
=== CONT  TestAccQuickSightDashboard_updateVersionNumber
=== CONT  TestAccQuickSightDashboard_sourceEntity
=== CONT  TestAccQuickSightDashboard_disappears
=== CONT  TestAccQuickSightDashboard_dashboardSpecificConfig
--- PASS: TestAccQuickSightDashboard_disappears (52.92s)
--- PASS: TestAccQuickSightDashboard_dashboardSpecificConfig (57.75s)
--- PASS: TestAccQuickSightDashboard_basic (58.20s)
--- PASS: TestAccQuickSightDashboard_sourceEntity (59.45s)
--- PASS: TestAccQuickSightDashboard_updateVersionNumber (101.51s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/quicksight 104.880s
...

Copy link

github-actions bot commented Jan 3, 2024

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/XS Managed by automation to categorize the size of a PR. service/quicksight Issues and PRs that pertain to the quicksight service. labels Jan 3, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 3, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @sean-nixon 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 8, 2024
@marc-outins
Copy link

This bug is also affecting me as well and the fix seems simple and obvious. Is there a reason the PR has been open for so long without being merged?

@ClaudiuDmtr
Copy link

ClaudiuDmtr commented Mar 20, 2024

I'm receiving the same error when trying to generate a configuration file for a dashboard using terraform plan generate-config-out functionality.

@johnsonaj
Copy link
Contributor

@sean-nixon thank you for the contribution! 🎉

It looks like this fix was released in v5.43.0, with PR #34227, along with some other changes. I will close this as a duplicate.

@johnsonaj johnsonaj closed this Jun 14, 2024
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/quicksight Issues and PRs that pertain to the quicksight service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Typo in quicskightschema flattenTableFieldOption
5 participants