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

Coralogix Dashboard resource schema inconsistent with Dashboards created using UI for Hexagon widget #290

Open
Ross10x opened this issue Nov 25, 2024 · 1 comment

Comments

@Ross10x
Copy link

Ross10x commented Nov 25, 2024

When creating a dashboard using the coralogix terraform provider, with json code exported from a dashboard created by the Coralogix UI, I get a schema failure due to the 'legend' field being present in the hexagon widget type.

'legend' block key:
layout.sections.rows.widgets.definition.hexagon.legend

'legend' block:
"legend": {
"isVisible": true,
"columns": [],
"groupByQuery": false,
"placement": "LEGEND_PLACEMENT_AUTO"
},

Affected Resource(s)

  • coralogix_dashboard

Debug Output

Company policy prevents creation of Github Gists

Expected Behavior

Terraform plan should have properly passed.

Actual Behavior

Raised error:
│ Error: content_json validation failed

│ with coralogix_dashboard.myapp_dashboard,
│ on main.tf line 12, in resource "coralogix_dashboard" "myapp_dashboard":
│ 12: resource "coralogix_dashboard" "myapp_dashboard" {

│ json content is not matching layout schema. got an err while unmarshalling - proto: (line 595:21): unknown field "legend"

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@lootag
Copy link
Contributor

lootag commented Nov 27, 2024

Which version of the provider is this happening with? This was fixed a while ago.
#279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants