Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions