Skip to content

Commit a3d23d5

Browse files
donjor-agent[bot]donjor
authored andcommitted
refactor(upstream-fixes): retire legacy V1 event purge (#1824)
## Problem The fork purged legacy V1 events itself; upstream now does the same. ## Change Upstream event compaction covers the purge, proven by `FoundationPersistence.test.ts`. Deletes `LegacyV1Purge.fork.ts`, its test, and its two-line hook in `LegacyV1ThreadImporter.ts`. Retiring it surfaced #1816, which predates this change and stays out of scope. ## Scope and approval Upstream-fixes retirement sweep. ## Verification On the rebased head, base `origin/hyprws` `2023697`: ```text vp run fork:ci → exit 0 apps/server: vp exec tsc-rs --noEmit → exit 0 apps/server: vp test run src/orchestration-v2/legacy → exit 0 (7 tests) ``` Claude Opus 5.5 (host) and GPT Sol (peer), via Claude Code and Pi. ## Fork trailers Fork-Domain: upstream-fixes Fork-Tier: bugfix Fork-Upstreamable: yes Co-authored-by: donjor <[email protected]>
1 parent bcc5966 commit a3d23d5

3 files changed

Lines changed: 0 additions & 117 deletions

File tree

‎apps/server/src/orchestration-v2/legacy/LegacyV1Purge.fork.test.ts‎

Lines changed: 0 additions & 61 deletions
This file was deleted.

‎apps/server/src/orchestration-v2/legacy/LegacyV1Purge.fork.ts‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

‎apps/server/src/orchestration-v2/legacy/LegacyV1ThreadImporter.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import * as SqlClient from "effect/sql/SqlClient";
3535
import * as EventSink from "../EventSink.ts";
3636
import { randomUuidV4 } from "@t3tools/provider-core/server/randomUuid";
3737
import { importLegacyThreadIssuesFork } from "./LegacyV1ThreadIssues.fork.ts"; // fork-hook: github-issues/legacy-issues-import
38-
import { purgeImportedLegacyV1Fork } from "./LegacyV1Purge.fork.ts"; // fork-hook: upstream-fixes/legacy-v1-purge-import
3938

4039
const IMPORT_EVENT_PREFIX = "migration:v1";
4140
const TRANSCRIPT_EVENT_BATCH_SIZE = 100;
@@ -805,7 +804,6 @@ const make = Effect.gen(function* () {
805804
importedMessageCount += result.importedMessageCount;
806805
yield* Effect.yieldNow;
807806
}
808-
yield* purgeImportedLegacyV1Fork(sql); // fork-hook: upstream-fixes/legacy-v1-purge
809807
return { importedThreadCount, importedMessageCount };
810808
}).pipe(
811809
Effect.catchCause((cause) =>

0 commit comments

Comments
 (0)