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

[Bug]: Quicksight window options bug #33223

Closed
tfrincu opened this issue Aug 29, 2023 · 3 comments · Fixed by #34230
Closed

[Bug]: Quicksight window options bug #33223

tfrincu opened this issue Aug 29, 2023 · 3 comments · Fixed by #34230
Assignees
Labels
bug Addresses a defect in current functionality. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/quicksight Issues and PRs that pertain to the quicksight service.
Milestone

Comments

@tfrincu
Copy link

tfrincu commented Aug 29, 2023

Terraform Core Version

1.5.0

AWS Provider Version

5.14.0

Affected Resource(s)

aws_quicksight_analysis

Expected Behavior

Configuring integer bounds should allow applying the resource.

Additional also double values should be allowed as the AWS API: https://docs.aws.amazon.com/quicksight/latest/APIReference/API_GeospatialCoordinateBounds.html

Actual Behavior

Applying fails with "expected type to be integer"

Relevant Error/Panic Output Snippet

│ Error: expected type of definition.0.sheets.0.visuals.0.geospatial_map_visual.0.chart_configuration.0.window_options.0.bounds.0.west to be integer
│
│   with aws_quicksight_analysis.example_analysis,
│   on analysis.tf line 295, in resource "aws_quicksight_analysis" "example_analysis":
│  295:           chart_configuration {
│
╵
╷
│ Error: expected type of definition.0.sheets.0.visuals.0.geospatial_map_visual.0.chart_configuration.0.window_options.0.bounds.0.east to be integer
│
│   with aws_quicksight_analysis.customer_data_action_store_view_analysis,
│   on analysis.tf line 295, in resource "aws_quicksight_analysis" "example_analysis":
│  295:           chart_configuration {
│
╵
╷
│ Error: expected type of definition.0.sheets.0.visuals.0.geospatial_map_visual.0.chart_configuration.0.window_options.0.bounds.0.north to be integer
│
│   with aws_quicksight_analysis.example_analysis,
│   on analysis.tf line 295, in resource "aws_quicksight_analysis" "example_analysis":
│  295:           chart_configuration {
│
╵
╷
│ Error: expected type of definition.0.sheets.0.visuals.0.geospatial_map_visual.0.chart_configuration.0.window_options.0.bounds.0.south to be integer
│
│   with aws_quicksight_analysis.example_analysis,
│   on analysis.tf line 295, in resource "aws_quicksight_analysis" "example_analysis":
│  295:           chart_configuration {
│
╵
Releasing state lock. This may take a few moments...

Terraform Configuration Files

resource "aws_quicksight_analysis" "example_analysis" {
  analysis_id = "analysis-id"
  name        = "example-analysis"

  permissions {
    actions = local.analysis_permissions
    principal = data.aws_quicksight_group.authors.arn
  }

  definition {
    data_set_identifiers_declarations {
      data_set_arn = aws_quicksight_data_set.example_data_set.arn
      identifier   = "1"
    }

    filter_groups {
      cross_dataset = "SINGLE_DATASET"
      filter_group_id = "4cdf5789-cae3-4d5d-ae37-e06760275443"
      status          = "ENABLED"

      filters {
        category_filter {
          column {
            data_set_identifier = "1"
            column_name         = "filter_1"
          }
          configuration {
            filter_list_configuration {
              match_operator  = "CONTAINS"
              category_values = ["test"]
            }
          }
          filter_id = "filter-id"
        }
      }
      scope_configuration {
        selected_sheets {
          sheet_visual_scoping_configurations {
            scope    = "ALL_VISUALS"
            sheet_id = "sheet-id"
          }
        }
      }
    }


    sheets {
      title    = "Sheet 1"
      sheet_id = "sheet-id"

      filter_controls {
        dropdown {
          filter_control_id = "f225334a-f70f-45ad-a6c7-b1bec7cab059"
          source_filter_id  = "348da2e7-b675-467e-af46-aa19a7001773"
          title             = "Filter 1"
          type              = "MULTI_SELECT"
        }
      }

      visuals {
        geospatial_map_visual {
          visual_id = "68ad5a18-f009-4619-9141-9f2b782cbac7"
          title {
            format_text {
              plain_text = "Request count based on filter_1"
            }
          }
          chart_configuration {

            window_options {
              map_zoom_mode = "MANUAL"

              bounds {
                east  = 209
                north = 85
                south = -84
                west  = -313
              }
            }

            field_wells {
              geospatial_map_aggregated_field_wells {
                geospatial {
                  numerical_dimension_field {
                    field_id = "1"
                    column {
                      data_set_identifier = "1"
                      column_name         = "lat"
                    }
                  }
                }
                geospatial {
                  numerical_dimension_field {
                    field_id = "2"
                    column {
                      data_set_identifier = "1"
                      column_name         = "long"
                    }
                  }
                }
                colors {
                  categorical_dimension_field {
                    field_id = "42d198d1-93c4-482a-b9d4-90d9ecc06a08"
                    column {
                      data_set_identifier = "1"
                      column_name         = "filter_1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Steps to Reproduce

Apply any window options with integer values for the bounds (also double or string or any other combination does not work)

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@tfrincu tfrincu added the bug Addresses a defect in current functionality. label Aug 29, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/quicksight Issues and PRs that pertain to the quicksight service. label Aug 29, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 29, 2023
@justinretzolk justinretzolk added prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 30, 2023
@jar-b jar-b self-assigned this Nov 2, 2023
@github-actions github-actions bot added this to the v5.24.0 milestone Nov 2, 2023
@github-actions github-actions bot removed the bug Addresses a defect in current functionality. label Nov 2, 2023
Copy link

github-actions bot commented Nov 2, 2023

This functionality has been released in v5.24.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

github-actions bot commented Dec 3, 2023

I'm going to lock this issue 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 similar to this, 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 Dec 3, 2023
@justinretzolk justinretzolk added the bug Addresses a defect in current functionality. label Feb 10, 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. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/quicksight Issues and PRs that pertain to the quicksight service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants