From cea58b3165e97e519c476680a34188378fb4ea9f Mon Sep 17 00:00:00 2001 From: Or Novogroder <108669655+OrNovo@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:47:04 +0300 Subject: [PATCH] Dashboards - changing pie_chart and horizontal_bar_chart group-names to optional (#248) * patch - changing group_names to Optional --- CHANGELOG.md | 8 +++++++- coralogix/resource_coralogix_dashboard.go | 4 ++-- docs/resources/dashboard.md | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index daf0391d..3b9608ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -607,4 +607,10 @@ Deprecation: `coralogix_sli` deprecated in favor of `coralogix_slo` New Features: #### resource/coralogix_dashboard * added support for more than one `section`. -* added support for `query` option in `multi_select` variables. \ No newline at end of file +* added support for `query` option in `multi_select` variables. + + +## Release 1.16.4 +Bug fixing: +#### resource/coralogix_dashboard +* changing `pie_chart` and `horizontal_bar_chart` `query.logs.group_names` to Optional. \ No newline at end of file diff --git a/coralogix/resource_coralogix_dashboard.go b/coralogix/resource_coralogix_dashboard.go index b9cadfa9..bd67af82 100644 --- a/coralogix/resource_coralogix_dashboard.go +++ b/coralogix/resource_coralogix_dashboard.go @@ -1687,7 +1687,7 @@ func dashboardSchemaAttributes() map[string]schema.Attribute { "filters": logsFiltersSchema(), "group_names": schema.ListAttribute{ ElementType: types.StringType, - Required: true, + Optional: true, Validators: []validator.List{ listvalidator.SizeAtLeast(1), }, @@ -2112,7 +2112,7 @@ func dashboardSchemaAttributes() map[string]schema.Attribute { "filters": logsFiltersSchema(), "group_names": schema.ListAttribute{ ElementType: types.StringType, - Required: true, + Optional: true, Validators: []validator.List{ listvalidator.SizeAtLeast(1), }, diff --git a/docs/resources/dashboard.md b/docs/resources/dashboard.md index d2c5192c..102e4432 100644 --- a/docs/resources/dashboard.md +++ b/docs/resources/dashboard.md @@ -2159,7 +2159,7 @@ Optional: - `scale_type` (String) - `sort_by` (String) - `stack_definition` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--stack_definition)) -- `unit` (String) The unit of the chart. Can be one of unspecified, milliseconds, seconds, kbytes, mbytes, gbytes, mibytes, gibytes, usd_cents, bytes_iec, euro, microseconds, bytes, kibytes, euro_cents, usd. +- `unit` (String) The unit of the chart. Can be one of kbytes, mibytes, seconds, mbytes, kibytes, gibytes, usd, unspecified, bytes, euro, microseconds, milliseconds, gbytes, bytes_iec, euro_cents, usd_cents. - `y_axis_view_by` (String) @@ -2177,11 +2177,11 @@ Optional: Required: - `aggregation` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--y_axis_view_by--spans--aggregation)) -- `group_names` (List of String) Optional: - `filters` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--y_axis_view_by--spans--filters)) +- `group_names` (List of String) - `group_names_fields` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--y_axis_view_by--spans--group_names_fields)) - `lucene_query` (String) - `stacked_group_name` (String) @@ -2792,11 +2792,11 @@ Optional: Required: - `aggregation` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--unit--spans--aggregation)) -- `group_names` (List of String) Optional: - `filters` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--unit--spans--filters)) +- `group_names` (List of String) - `group_names_fields` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--unit--spans--group_names_fields)) - `lucene_query` (String) - `stacked_group_name` (String)