Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): deleting a thread actually removes its history #42119

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 8 commits intomain fromrefs/pull/42119/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 15 changed files with 8 additions and 0 deletions (loading 12).

x
0 of 15 viewed, 15 left
2 additions and 0 deletionsapps/server/src/orchestration-v2/testkit/ProviderReplayHarness.tsModified
View file
@@ -42,6 +42,7 @@
import * as EventStore from "../EventStore.ts";
import * as IdAllocator from "@t3tools/provider-core/server/IdAllocator";
import * as Orchestrator from "../Orchestrator.ts";
+import * as ProjectionMaintenance from "../ProjectionMaintenance.ts";
import * as ProjectionStore from "../ProjectionStore.ts";
import * as ProjectStore from "../ProjectStore.ts";
import * as ProviderAdapterRegistry from "../ProviderAdapterRegistry.ts";
@@ -604,6 +605,7 @@
layerServerSettings,
layerThreadManagementProvided,
layerStores,
+ ProjectionMaintenance.layer.pipe(Layer.provide(layerDatabase)),
4 additions and 0 deletionsapps/server/src/orchestration-v2/EffectOutbox.tsModified
View file
@@ -127,6 +127,9 @@
attachmentIds: Schema.Array(Schema.String),
skipReferenced: Schema.optional(Schema.Boolean),
}),
+ Schema.Struct({
+ type: Schema.Literal("thread-content.purge"),
+ }),
Schema.Struct({
type: Schema.Literal("thread-title.generate"),