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

[datadog_dashboard] Handles cell_display_mode_options in Query Table widget #2873

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

ecdatadog
Copy link
Contributor

@ecdatadog ecdatadog commented Feb 26, 2025

Fixes #2814

cell_display_mode_options manages the

  • Uniform Axis toggle button (y_scale)
  • Display choice button (trend_type)
Screenshot 2025-02-26 at 14 02 38

This PR adds the cell_display_mode_options only for Query Table one as it seems to be only for this widget :

@DataDog/dashboards-backend , I would like your opinion about that

@@ -5612,11 +5612,21 @@ Optional:

- `alias` (String) An expression alias.
- `cell_display_mode` (String) A list of display modes for each table cell. Valid values are `number`, `bar`, `trend`.
- `cell_display_mode_options` (Block List, Max: 1) A list of display modes for each table cell. (see [below for nested schema](#nestedblock--widget--group_definition--widget--query_table_definition--request--formula--cell_display_mode_options))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize this might be out of scope for this PR, but recommend removing directional language like "below". Instead just point to the section "For a nested schema, see X."

Copy link
Contributor Author

@ecdatadog ecdatadog Feb 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, we are not writing anything in docs/resources/ and docs/data-sources. It is generated from a hashicorp documentation tool
It is the standard formatting for terraform provider documentation (and is generated from hashicorp tool : https://github.com/hashicorp/terraform-plugin-docs/blob/main/internal/schemamd/render.go#L95)

@ecdatadog ecdatadog merged commit 13eb738 into master Feb 28, 2025
12 checks passed
@ecdatadog ecdatadog deleted the fix_2814 branch February 28, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to "cell_display_mode=trend" on Datadog dashboards
4 participants