Skip to content

feat(dashboards): deprecate Dynamic widget interpretation field#656

Open
lavrov wants to merge 1 commit into
masterfrom
deprecate-dynamic-widget-interpretation
Open

feat(dashboards): deprecate Dynamic widget interpretation field#656
lavrov wants to merge 1 commit into
masterfrom
deprecate-dynamic-widget-interpretation

Conversation

@lavrov

@lavrov lavrov commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

User description

Summary

Marks the interpretation field on the Dynamic widget (dashboards API) as deprecated. Consumers should use the visualization field instead, which is the supported replacement going forward.

This is an iteration that lands separately while being related to (but not directly part of) CX-48065.

Changes

  • proto/com/coralogixapis/dashboards/v1/ast/widgets/dynamic.proto: add deprecated = true to the interpretation field and update its description to point to visualization.
  • go/internal/coralogixapis/dashboards/v1/ast/widgets/dynamic.pb.go: regenerated so the field declaration and GetInterpretation getter carry the // Deprecated: Marked as deprecated in ... comment, matching the existing pattern used for the deprecated query field.
  • OpenAPI spec sources marked interpretation as deprecated: true with an updated description:
    • openapi.yaml
    • specs/dashboard_service.json
    • tools/openapi-split/openapi.yaml
    • go/openapi/gen/dashboard_service/api/openapi.yaml
  • go/openapi/gen/dashboard_service/model_widgets_dynamic.go: added // Deprecated doc comments on the field and its accessors (GetInterpretation, GetInterpretationOk, HasInterpretation, SetInterpretation), mirroring the openapi-generator pattern used for other deprecated fields (e.g. TextboxDefaultValueSingleNumeric).

Verification

  • go build ./... passes.
  • go vet ./... passes.
  • Generated Go protobuf code was produced with protoc-gen-go v1.36.11 (matching the version already checked into the repo) to keep the diff minimal.

Related Jira: CX-48065
EOF 2>&1 | tail -10


Generated description

Below is a concise technical summary of the changes proposed in this PR:
Mark the Dynamic widget interpretation field as deprecated in the dashboard AST proto and highlight visualization as the preferred replacement. Regenerate the associated OpenAPI sources and Go models so consumers see the deprecation reflected in clients and docs.

Latest Contributors(0)
UserCommitDate
Review this PR on Baz | Customize your next review

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow [Protobuf] Lint & Build Facade / protobuf_lint_and_build (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed❌ failed (71)❌ failed (340)✅ passedJul 7, 2026, 11:54 AM

Mark the interpretation field on the Dynamic widget as deprecated in the
protobuf definition. The visualization field is the supported replacement
going forward.

Related to CX-48065.
@lavrov lavrov force-pushed the deprecate-dynamic-widget-interpretation branch from bfa2848 to d12de17 Compare July 7, 2026 11:54
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.

1 participant