Files
multica/server
Naiyuan Qing c5a5d9eb74 fix(migrate): backfill identifier aliases for renamed legacy prefixes
Migration 131 normalizes each workspace's legacy issue_prefix into a
Space key satisfying ^[A-Z][A-Z0-9]{0,6}$, but a prefix longer than 7
chars, digit-first, or punctuated gets rewritten and never went
through the alias-writing path in UpdateIssue (no issue actually
changed space_id, so no move-triggered alias was recorded). Old
links, CLI/API identifier lookups, and GitHub auto-linking for those
workspaces would 404/silently skip forever.

Backfill issue_identifier_alias for exactly the workspaces where the
normalized key diverges from the original prefix, and widen the
GitHub identifier regex back to {0,9} (matching the old prefix length
cap) so 8-10 char legacy prefixes are still extracted as candidates
before the DB/alias lookup decides validity.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-09 13:54:48 +08:00
..