Skip to content

[feature]: An issue description has no history, but a doc does #308

Open

Description

@Tanzeelsameen

Current status, September 22

The separate issue_version design is approved in the comments, but no implementation has landed or is open for review. The September 13 follow-up deadline passed without a response, so this is available for someone else to take. Preserve the approved coalescing, restore and permission requirements below.

Original requirements

What is painful today

An issue description can be rewritten by anyone on the team, and once it is saved the previous wording is gone. The autosave means there is not even a moment where someone decides to overwrite it: they select, type, and the old text is unrecoverable.

This matters most on the descriptions that took work. A repro with exact steps, a spec written over a week, an incident writeup. Someone tidies it, trims what looked redundant, and the detail that made it useful goes with it. The activity feed records that the description changed, but not what it changed from, so there is nothing to go back to.

Docs already solve this. doc_version snapshots content, /api/docs/[id]/versions lists them, doc-history.tsx shows them, and a doc can be restored to any earlier version. Issue descriptions are edited in the same editor, by the same people, with the same autosave, and have none of it. Linear treats these the same way through a single "Show description history" action, which is where I noticed the gap.

What you would like to happen

Issue descriptions get version history, built the same way docs already have it rather than as a second mechanism.

Roughly:

  • An issue_version table mirroring doc_version: the issue, the org, the description at that point, who saved it, when, and what it was restored from.
  • A snapshot on description save, coalescing successive saves by the same person inside a short window so autosave does not produce a version per keystroke. snapshotVersion in doc-service.ts already does exactly this collapsing and is the thing to follow.
  • GET /api/issues/[id]/versions and a restore route, both going through packages/shared/src/policy the way the doc routes do.
  • A "Show description history" entry in the existing issue actions menu, opening a panel that lists versions by author and time and can restore one. doc-history.tsx is the model.
  • Restoring writes a new version first, so a restore is itself undoable and never destroys what it replaced.

Out of scope for a first pass: history for the title, for comments, or for property changes. The activity feed already covers properties, and descriptions are where the loss actually hurts.

Which part of Orbit

Issues, lists and boards

How you work around it now

Nothing reliable. If it is noticed quickly the author may still have the text in a scratch file or remember what was there. Otherwise it is rewritten from memory, which is how a good repro turns into a vague one.

Anything else

I would like to build this, and I want to agree the shape first because it adds a table.

Open questions I would rather settle before writing code:

  1. A new table, or generalise doc_version? A separate issue_version mirrors the existing code most directly and keeps the foreign keys honest. Generalising doc_version into a polymorphic content-version table would avoid the duplication but touches a working feature. I lean towards the separate table and would rather be told otherwise now than in review.
  2. How long are versions kept? Docs keep them indefinitely as far as I can tell. Issues are far more numerous, so the same policy is a different amount of storage. A cap per issue, or an age cutoff, may be worth having from the start.
  3. Does a version snapshot need to fan out over realtime? Docs allocate a syncId on the version row. I do not think another tab needs to learn about a new version until it opens the panel, but I would rather match whatever the doc side does on purpose than diverge by accident.

Context: this came out of a pass over the issue detail surface. The smaller fixes from that pass are in #306.

Activity

  1. added
    enhancement
    help wanted
    p2 medium
    area: issues
    area: docs-feature
    size: large
    points: 8
    schema change
    on Aug 15, 2026
  2. imshashank commented on Aug 23, 2026

    @imshashank
    Contributor

    The proposed shape is approved.

    • Use a separate issue_version table rather than making doc_version polymorphic.
    • Mirror the doc history model and its five-minute same-author coalescing behavior.
    • Keep versions indefinitely in the first pass, while listing a bounded latest page as docs currently do. Retention can be added later with real storage data.
    • Version-row creation does not need its own realtime event. A restore must update the issue through the normal mutation path and publish the normal issue update.
    • Preserve the version being replaced before or as part of restore, record restoredFromId, and make every restore itself recoverable.
    • Enforce organization isolation and the existing issue read/update policy on the server. Do not rely on the panel being hidden.
    • Keep title, comments, properties, and general activity history out of scope.

    Please include schema migration and catchup, service and route tests for cross-workspace access, coalescing, restore, restore-of-restore, and the issue history panel. Please proceed with this scope.

  3. added
    ready
    on Aug 23, 2026
  4. imshashank commented on Sep 6, 2026

    @imshashank
    Contributor

    @Tanzeelsameen the shape was approved on Aug 23 and nothing has landed yet. Are you still planning to build this? If I have not heard by Sep 13 I will drop the ready marker so someone else can pick it up. No pressure either way, I just want the label to be honest.

  5. removed
    ready
    on Sep 22, 2026
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

    area: docs-featurearea: issuesenhancementhelp wantedp2 mediumpoints: 8schema changesize: large

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions