Files
multica/server/pkg
Naiyuan Qing e301057189 Merge origin/main: port WS-1465 recent-duplicate guard into IssueService create tx
Conflict resolution on top of the team-rollout architecture:
- issueguard: keep main's LockAndFindRecentAutopilotDuplicate alongside the
  team-aware active-duplicate lock key
- handler/issue.go SearchIssues: adopt main's runSearchQuery statement-timeout
  wrapper (MUL-4059) with the team-aware scan columns (team_id/key/name)
- service/issue.go: new IssueCreateOpts.PreCreate hook — runs inside the create
  tx before numbering/insert so caller guards hold their advisory locks until
  commit
- service/autopilot.go: dispatchCreateIssue passes the WS-1465 recent-duplicate
  guard via PreCreate and links the run to the issue inside BeforeCommit (the
  guard's EXISTS clause only counts issues with a linked run)
- search_test.go: main's new MUL-4059 tests updated to the team-aware
  buildSearchQuery signature

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 15:28:48 +08:00
..