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] Data view color field format not supported #848

Open
DBolge opened this issue Oct 16, 2024 · 0 comments
Open

[Bug] Data view color field format not supported #848

DBolge opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DBolge
Copy link

DBolge commented Oct 16, 2024

Describe the bug
I need to create a color field format for a particular data view. The correct field type is set as color but the color details are not. It seems it is not supported at all as the plan shows empty params.

To Reproduce
Use the elasticstack_kibana_data_view resource:

resource "elasticstack_kibana_data_view" "test" {
  data_view = {
    name            = "logs-*"
    title           = "logs-*"
    id              = "logs-*"
    time_field_name = "@timestamp"
    field_formats = {
      "my.field" = {
        id = "color"
        params = {
          fieldType = "string"
          colors = [
            {
              range      = "-Infinity:Infinity",
              regex      = "Completed",
              text       = "#000000",
              background = "#54B399"
            }
          ]
        }
      }
    }
  }
  space_id = "default"
}

Run a plan and notice that params is empty

    + field_formats   = {
        + "my.field" = {
            + id     = "color"
            + params = {}
          },
      }

Expected behavior
The correct color details should be applied.

Versions (please complete the following information):

  • OS: Linux
  • Terraform Version: 1.8.0
  • Provider version: v0.11.7
  • Elasticsearch Version: 8.15.2
@DBolge DBolge added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant