Skip to content

Synthetic checks and views get/create/update commands show CRD name instead of display name #80

@mmanciop

Description

@mmanciop

Description

The synthetic-checks get and views get commands display metadata.name (the CRD/internal name) instead of spec.display.name (the human-readable display name).

For example, a view with metadata.name: "all-logs-" and spec.display.name: "All logs" would show Name: all-logs- instead of Name: All logs.

The same issue affects success and error messages in the create and update subcommands, as well as the apply command output for these asset types.

Dashboards already handle this correctly by using ExtractDashboardDisplayName() which reads from spec.display.name.

Affected commands

  • dash0 synthetic-checks get
  • dash0 synthetic-checks create
  • dash0 synthetic-checks update
  • dash0 views get
  • dash0 views create
  • dash0 views update
  • dash0 apply (for synthetic checks and views)

Expected behavior

All commands should display spec.display.name when available, falling back to metadata.name only when the display name is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions