Skip to content

Record entity revisions when aliases change #1157

Closed

Description

@d-oit

Problem

Alias-only edits currently do not create an entity revision. This means a meaningful change to how an entity is identified can be absent from its revision history even though the current entity state has changed.

Scope

  • Inspect the entity revision snapshot/signature implementation and include aliases in the fields that determine whether a revision is created.
  • Preserve deterministic alias ordering/normalization semantics; do not create revisions for semantically identical alias arrays if the existing model treats them as equivalent.
  • Ensure undo/redo and import/restore behavior remain consistent with the revision model.
  • Add regression coverage for adding, removing, reordering and editing aliases, as appropriate to the current alias semantics.

Acceptance criteria

  • Adding or removing an alias creates a revision.
  • A no-op alias update does not create a spurious revision.
  • Revision snapshots preserve the exact supported alias state.
  • Undo/redo restores aliases and revision history consistently.
  • Export/import round trips retain aliases and revision information.
  • Tests demonstrate the previous bug and pass after the fix.

Related

Plan 214 code-review follow-up. Review the current entity revision model before changing persisted schema; bump schema and add a migration only if the stored shape changes.

Activity

  1. d-oit commented on Nov 19, 2026

    @d-oit
    OwnerAuthor

    Implemented in #1178 (90246d1).

    • Alias edits now append a revision entry with the previous aliases snapshot (src/lib/studio/revision-capture + revisions slice), verified by revision round-trip tests.
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions