Skip to content

Add --pinned-version / --unpin to datasets update #66

@zfarrell

Description

@zfarrell

The runtimedb API (`PUT /v1/datasets/{id}`) accepts `pinned_version` (with explicit `null` to unpin), but the CLI's `hotdata datasets update` only exposes `--label` and `--table-name`. Scoped out of #65 to keep that PR focused on the rename use case.

Proposal

Two mutually-exclusive flags:

  • `--pinned-version ` — pin to version N
  • `--unpin` — remove existing pin (sends JSON `null`)

Wire them through `datasets::update` into the request body. The runtimedb side already has the validation (rejects pin changes that would invalidate existing indexes — see `PinChangeRejectedByIndexes` in `runtimedb/src/engine/datasets.rs`).

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions