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 filter bug #33222

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

[Bug]: Quicksight filter bug #33222

tfrincu opened this issue Aug 29, 2023 · 3 comments · Fixed by #33931
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

When applying a filter group containing a filter with "select_all_options" = "FILTER_ALL_VALUES" it should be created with success.

Actual Behavior

Error when applying saying "Category Filter must define only one of: CategoryValue(s), ParameterName, SelectAllOptions, \n\t at Filter filter-id."

Relevant Error/Panic Output Snippet

Error: updating Amazon QuickSight Analysis (1234567890,analysis-id): InvalidParameterValueException: Category Filter must define only one of: CategoryValue(s), ParameterName, SelectAllOptions,  
│        at Filter filter-id.
│ {
│   RespMetadata: {
│     StatusCode: 400,
│     RequestID: "d6049265-0ca5-41c8-9e90-64b0323ce80d"
│   },
│   Message_: "Category Filter must define only one of: CategoryValue(s), ParameterName, SelectAllOptions,  \n\t at Filter filter-id.",
│   RequestId: "d6049265-0ca5-41c8-9e90-64b0323ce80d"
│ }
│
│   with aws_quicksight_analysis.example_analysis,
│   on analysis.tf line 1, in resource "aws_quicksight_analysis" "example_analysis":
│    1: resource "aws_quicksight_analysis" "example_analysis" {
│
╵

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"
              select_all_options = "FILTER_ALL_VALUES"
            }
          }
          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 {
            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 the code with provided versions

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
@github-actions github-actions bot added this to the v5.26.0 milestone Nov 14, 2023
@github-actions github-actions bot removed the bug Addresses a defect in current functionality. label Nov 16, 2023
Copy link

This functionality has been released in v5.26.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

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 17, 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.

2 participants