Skip to content

Driver versions: one list, easy to swap, easy to swap back #674

Description

@frahlg

The Versions panel added in #672 renders nothing. GET /api/device_repository/drivers/{id}/versions returns available[] = {repository_id, driver:{version,…}}, but renderVersionPicker reads v.version off the outer object, so every row is filtered out by the if (!version) return guard. The test that was meant to cover this is a regex over the source, so it passed.

Beyond the bug, the row itself does not answer what an operator asks. It reads BUNDLED · V1.0.0 next to three buttons — Update, Rollback, Versions — where Rollback is a subset of Versions, and bundled/managed/local is our vocabulary, not theirs.

Every driver runs locally. What matters is which version is running and what you can switch to:

  • running an official driver and wanting the newer one
  • running your own file, or an older version, and wanting to swap
  • swapping back when the new one misbehaves

So: one row saying what runs, one list of everything you could run instead, and an undo after a switch. Verification status belongs on both — the catalog carries it and this view never showed it, so you could update to an untested driver without being told.

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