Skip to content

Port board (dashboard) commands from the Go fork #2

Description

@beengud

Port board (dashboard) commands from the Go fork

Source: beengud/observe PR #2 (board CRUD) + PR #9 (visibility/folderId fields, view URL output). Files: cmd_board.go, ot_board.go, cmd_board_*_test.go.
New CLI status: Absent — no board/dashboard commands exist.

Old command surface

observe board create <file.json>          # create board from DashboardInput JSON (name, workspaceId, layout required; stages optional)
observe board update <id> <file.json>      # update existing board; sets id from arg
observe board scaffold [--name NAME]       # print minimal board template JSON to stdout
observe board set-default <id>             # set a default board
observe board clear-default                # clear the default board
observe list board [--name <f>] [--folder <id>]   # via generic object layer
observe get board <id>
observe delete board <id>

Flags: --name (filter when listing / set name when scaffolding), --folder (filter by folder ID).

Behavior / API

Porting notes ⚠️

  • Re-apply the stage normalization workarounds from PR feat(schema): port schema introspect from Go CLI #11 and follow-up commits: normalize stageIDid, stageId, and inputRole in board stage objects before calling saveDashboard, or you get null-schema violations. See old commits 49fc439, 73979a4/44e2ded, 3ad36f0/59e70dd.
  • Confirm current DashboardInput shape against the live schema (the old schema introspect command — see its issue — was built specifically to chase Dashboard field drift).

Acceptance

  • board create/update/scaffold + default management ported with --format support and view-URL output, matching old behavior; tests ported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestport-from-goCustom feature to port from deprecated Go fork (beengud/observe)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions