mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
Ordering is derived entirely from the collection's documentStructure, which drafts are not part of. Drafts therefore cannot be ordered, and unpublishing a document loses its position. Adds a nullable index column to documents recording a document's position amongst its siblings while it is absent from the structure, restored when the document is published. Sibling draft positions are shifted as documents around them are inserted or removed, emitting an update event so that the author's client stays in sync. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>