@cosmicdrift/kumiko-bundled-features 0.293.0 → 0.294.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/src/__tests__/access-invalidation-consumer.integration.test.ts +1 -2
- package/src/__tests__/access-invalidation-stream.integration.test.ts +1 -2
- package/src/__tests__/account-security-composition.integration.test.ts +0 -2
- package/src/__tests__/boot-seed-contract.integration.test.ts +1 -2
- package/src/__tests__/env-schemas.test.ts +1 -0
- package/src/__tests__/es-ops-e2e.integration.test.ts +0 -2
- package/src/agent-tools/__tests__/tool-dispatch.integration.test.ts +0 -2
- package/src/auth-email-password/__tests__/identity-v3-login.integration.test.ts +0 -2
- package/src/auth-email-password/__tests__/seed-admin-guarded.integration.test.ts +1 -2
- package/src/auth-email-password/__tests__/seed-admin.integration.test.ts +1 -2
- package/src/billing-foundation/__tests__/billing-foundation.integration.test.ts +1 -6
- package/src/billing-foundation/__tests__/subscription-tier-sync.integration.test.ts +0 -2
- package/src/cap-counter/__tests__/cap-counter.integration.test.ts +1 -2
- package/src/cap-counter/__tests__/stock-cap-guard.integration.test.ts +1 -3
- package/src/cap-counter/__tests__/with-cap-enforcement.integration.test.ts +1 -2
- package/src/cap-overview/__tests__/cap-overview-security.integration.test.ts +0 -2
- package/src/cap-overview/__tests__/caps-usage-escape-hatch.integration.test.ts +0 -2
- package/src/compliance-profiles/__tests__/compliance-profiles.integration.test.ts +0 -3
- package/src/compliance-profiles/__tests__/seeding.integration.test.ts +1 -2
- package/src/compliance-profiles-ops/__tests__/ops.integration.test.ts +0 -2
- package/src/config/__tests__/backing-secrets.integration.test.ts +0 -3
- package/src/crypto-shredding/__tests__/forget-subject-record.integration.test.ts +1 -4
- package/src/crypto-shredding/__tests__/forget-subject.integration.test.ts +1 -6
- package/src/custom-fields/__tests__/audit-integration.integration.test.ts +0 -2
- package/src/custom-fields/__tests__/cross-tenant-field-delete.integration.test.ts +0 -2
- package/src/custom-fields/__tests__/cross-tenant-set-write.integration.test.ts +0 -2
- package/src/custom-fields/__tests__/custom-fields.integration.test.ts +0 -2
- package/src/custom-fields/__tests__/field-access.integration.test.ts +0 -2
- package/src/custom-fields/__tests__/field-definition-role-config.integration.test.ts +0 -2
- package/src/custom-fields/__tests__/quota.integration.test.ts +0 -2
- package/src/custom-fields/__tests__/retention.integration.test.ts +0 -2
- package/src/custom-fields/__tests__/user-data-rights.integration.test.ts +0 -2
- package/src/file-foundation/__tests__/file-foundation.integration.test.ts +0 -2
- package/src/files-tenant-data/__tests__/hooks.integration.test.ts +1 -6
- package/src/files-tenant-data/__tests__/sweep-orphaned-derivatives.job.integration.test.ts +0 -2
- package/src/folders/__tests__/folders-parent-visibility.integration.test.ts +0 -2
- package/src/folders/__tests__/folders-read-gate.integration.test.ts +0 -2
- package/src/folders/__tests__/folders.integration.test.ts +0 -3
- package/src/folders-user-data/__tests__/hooks.integration.test.ts +0 -2
- package/src/form-draft/__tests__/cleanup.integration.test.ts +0 -2
- package/src/form-draft/__tests__/discard-file-refs.integration.test.ts +0 -2
- package/src/form-draft/__tests__/feature-optional-config.integration.test.ts +0 -2
- package/src/form-draft/__tests__/form-draft.integration.test.ts +0 -2
- package/src/form-draft/__tests__/limits.integration.test.ts +0 -2
- package/src/form-draft-user-data/__tests__/hooks-delete-failure.integration.test.ts +0 -2
- package/src/form-draft-user-data/__tests__/hooks.integration.test.ts +0 -2
- package/src/inbound-mail-foundation/__tests__/connect-routes.integration.test.ts +0 -2
- package/src/inbound-mail-foundation/__tests__/inbound-mail-foundation.integration.test.ts +0 -2
- package/src/inbound-mail-foundation/__tests__/retention.integration.test.ts +1 -2
- package/src/inbound-mail-foundation/__tests__/watch-supervisor.integration.test.ts +0 -2
- package/src/inbound-provider-imap/__tests__/imap-foundation.integration.test.ts +0 -2
- package/src/jobs/__tests__/job-system-user.integration.test.ts +1 -5
- package/src/jobs/__tests__/jobs-events.integration.test.ts +1 -2
- package/src/jobs/__tests__/jobs-feature.integration.test.ts +0 -2
- package/src/jobs/__tests__/jobs-pii-kms.integration.test.ts +1 -2
- package/src/jobs/__tests__/projection-rebuild-job.integration.test.ts +0 -2
- package/src/jobs/__tests__/reindex-entity-job.integration.test.ts +0 -2
- package/src/jobs/__tests__/tenant-job-failures.integration.test.ts +0 -2
- package/src/ledger/__tests__/ledger-reports-tenant-isolation.integration.test.ts +0 -2
- package/src/ledger/__tests__/ledger.integration.test.ts +0 -2
- package/src/legal-pages/__tests__/legal-pages.integration.test.ts +0 -5
- package/src/mail-foundation/__tests__/mail-foundation.integration.test.ts +0 -2
- package/src/managed-pages/__tests__/managed-pages.integration.test.ts +0 -4
- package/src/notes-history/__tests__/notes-history-ownership.integration.test.ts +0 -4
- package/src/notes-history/__tests__/notes-history-parent-visibility.integration.test.ts +0 -3
- package/src/notes-history/__tests__/notes-history.integration.test.ts +0 -2
- package/src/notes-history/__tests__/notes-read-gate.integration.test.ts +0 -3
- package/src/notes-history-user-data/__tests__/hooks.integration.test.ts +0 -2
- package/src/notes-history-user-data/__tests__/mention-forget.integration.test.ts +0 -2
- package/src/readiness/__tests__/readiness.integration.test.ts +1 -2
- package/src/secrets/__tests__/access-options.integration.test.ts +0 -2
- package/src/secrets/__tests__/secrets-events.integration.test.ts +1 -2
- package/src/secrets/__tests__/secrets.integration.test.ts +0 -2
- package/src/secrets/feature.ts +3 -1
- package/src/seo/__tests__/seo.integration.test.ts +0 -3
- package/src/sessions/__tests__/rebuild-survival.integration.test.ts +0 -2
- package/src/sessions/__tests__/sessions.integration.test.ts +1 -2
- package/src/subscription-mollie/__tests__/mollie-foundation.integration.test.ts +1 -2
- package/src/subscription-stripe/__tests__/stripe-foundation.integration.test.ts +1 -3
- package/src/tags/__tests__/tags-parent-visibility.integration.test.ts +0 -2
- package/src/tags/__tests__/tags-read-gate.integration.test.ts +0 -3
- package/src/tags/__tests__/tags.integration.test.ts +0 -4
- package/src/template-resolver/__tests__/collection-kinds.integration.test.ts +0 -2
- package/src/template-resolver/__tests__/collection-ownership.integration.test.ts +0 -2
- package/src/template-resolver/__tests__/handlers.integration.test.ts +0 -2
- package/src/template-resolver/__tests__/seed-legal-content.integration.test.ts +1 -2
- package/src/template-resolver/__tests__/text-blocks.integration.test.ts +1 -2
- package/src/tenant/__tests__/multi-tenant.integration.test.ts +0 -2
- package/src/tenant/__tests__/seed-testing.integration.test.ts +1 -2
- package/src/tenant/__tests__/tenant-security.integration.test.ts +1 -2
- package/src/tenant/__tests__/tenant.integration.test.ts +0 -2
- package/src/tenant/__tests__/update-cross-tenant.integration.test.ts +0 -2
- package/src/tenant-handover/__tests__/claim.integration.test.ts +1 -2
- package/src/tenant-lifecycle/__tests__/tenant-lifecycle.integration.test.ts +1 -10
- package/src/tenant-settings/__tests__/tenant-settings.integration.test.ts +0 -2
- package/src/tier-engine/__tests__/tier-engine.integration.test.ts +0 -2
- package/src/user/__tests__/email-unique-blind-index.integration.test.ts +0 -2
- package/src/user/__tests__/email-unique-plaintext-soft-delete.integration.test.ts +0 -2
- package/src/user/__tests__/seed-testing.integration.test.ts +1 -2
- package/src/user/__tests__/stream-tenant-backfill.integration.test.ts +1 -2
- package/src/user-data-rights/__tests__/anonymous-deletion-kms.integration.test.ts +1 -2
- package/src/user-data-rights/__tests__/anonymous-deletion.integration.test.ts +1 -3
- package/src/user-data-rights/__tests__/audit-log.integration.test.ts +1 -2
- package/src/user-data-rights/__tests__/download-by-token-resolver-trust.integration.test.ts +0 -2
- package/src/user-data-rights/__tests__/download.integration.test.ts +1 -2
- package/src/user-data-rights/__tests__/escape-hatch-audit.integration.test.ts +0 -2
- package/src/user-data-rights/__tests__/escape-hatch-declaration.integration.test.ts +0 -2
- package/src/user-data-rights/__tests__/export-job-list-cross-tenant.integration.test.ts +1 -2
- package/src/user-data-rights/__tests__/file-storage-unification.integration.test.ts +0 -2
- package/src/user-data-rights/__tests__/forget-cleanup-hook-ordering.integration.test.ts +0 -2
- package/src/user-data-rights/__tests__/forget-cleanup-search-purge-ordering.integration.test.ts +0 -2
- package/src/user-data-rights/__tests__/forget-hook-registry.integration.test.ts +0 -2
- package/src/user-data-rights/__tests__/read-users-rebuild-survives-lifecycle.integration.test.ts +1 -6
- package/src/user-data-rights/__tests__/request-cancel-deletion.integration.test.ts +1 -2
- package/src/user-data-rights/__tests__/request-deletion-callback.integration.test.ts +1 -2
- package/src/user-data-rights/__tests__/request-export.integration.test.ts +1 -2
- package/src/user-data-rights/__tests__/restriction-flow.integration.test.ts +1 -2
- package/src/user-data-rights/__tests__/run-export-jobs-cron-context.integration.test.ts +0 -2
- package/src/user-data-rights/__tests__/run-export-jobs.integration.test.ts +1 -3
- package/src/user-data-rights/__tests__/tenant-model-erasure.integration.test.ts +0 -2
- package/src/user-profile/__tests__/change-email.integration.test.ts +1 -2
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
FILE_STORAGE_PROVIDER_BOOT_SENTINEL,
|
|
15
15
|
FILE_STORAGE_PROVIDER_ENV,
|
|
16
16
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
17
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
18
17
|
import { createEnvMasterKeyProvider } from "@cosmicdrift/kumiko-framework/secrets";
|
|
19
18
|
import {
|
|
20
19
|
createTestUser,
|
|
@@ -146,7 +145,6 @@ beforeAll(async () => {
|
|
|
146
145
|
|
|
147
146
|
await unsafeCreateEntityTable(db, tenantEntity);
|
|
148
147
|
await unsafePushTables(db, { configValuesTable, tenant_secrets: tenantSecretsTable });
|
|
149
|
-
await createEventsTable(db);
|
|
150
148
|
});
|
|
151
149
|
|
|
152
150
|
afterAll(async () => {
|
|
@@ -17,11 +17,7 @@ import {
|
|
|
17
17
|
type EntityId,
|
|
18
18
|
type TenantId,
|
|
19
19
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
20
|
-
import {
|
|
21
|
-
append,
|
|
22
|
-
createEventsTable,
|
|
23
|
-
loadAggregate,
|
|
24
|
-
} from "@cosmicdrift/kumiko-framework/event-store";
|
|
20
|
+
import { append, loadAggregate } from "@cosmicdrift/kumiko-framework/event-store";
|
|
25
21
|
import {
|
|
26
22
|
buildStorageKey,
|
|
27
23
|
createInMemoryFileProvider,
|
|
@@ -101,7 +97,6 @@ beforeAll(async () => {
|
|
|
101
97
|
await unsafeCreateEntityTable(db, tenantComplianceProfileEntity);
|
|
102
98
|
await unsafeCreateEntityTable(db, tenantMembershipEntity);
|
|
103
99
|
await unsafeCreateEntityTable(db, fileRefEntity);
|
|
104
|
-
await createEventsTable(db);
|
|
105
100
|
await unsafePushTables(db, { configValuesTable });
|
|
106
101
|
});
|
|
107
102
|
|
|
@@ -10,7 +10,6 @@ import { randomBytes } from "node:crypto";
|
|
|
10
10
|
import { selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
11
11
|
import { createEventStoreExecutor, createTenantDb } from "@cosmicdrift/kumiko-framework/db";
|
|
12
12
|
import type { JobContext, TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
13
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
14
13
|
import {
|
|
15
14
|
buildStorageKey,
|
|
16
15
|
createInMemoryFileProvider,
|
|
@@ -126,7 +125,6 @@ beforeAll(async () => {
|
|
|
126
125
|
});
|
|
127
126
|
await unsafeCreateEntityTable(stack.db, tenantEntity);
|
|
128
127
|
await unsafeCreateEntityTable(stack.db, fileRefEntity);
|
|
129
|
-
await createEventsTable(stack.db);
|
|
130
128
|
await unsafePushTables(stack.db, { configValuesTable });
|
|
131
129
|
});
|
|
132
130
|
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
defineFeature,
|
|
18
18
|
type EntityDefinition,
|
|
19
19
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
20
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
21
20
|
import {
|
|
22
21
|
createTestUser,
|
|
23
22
|
setupTestStack,
|
|
@@ -103,7 +102,6 @@ beforeAll(async () => {
|
|
|
103
102
|
await unsafeCreateEntityTable(stack.db, folderEntity);
|
|
104
103
|
await unsafeCreateEntityTable(stack.db, folderAssignmentEntity);
|
|
105
104
|
await unsafeCreateEntityTable(stack.db, projectEntity);
|
|
106
|
-
await createEventsTable(stack.db);
|
|
107
105
|
await asRawClient(stack.db).unsafe(
|
|
108
106
|
`INSERT INTO ${PROJECT_TABLE} (id, tenant_id, team_id, name) VALUES
|
|
109
107
|
($1, $2, 'team-a', 'Project A'),
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
defineFeature,
|
|
13
13
|
type EntityDefinition,
|
|
14
14
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
15
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
16
15
|
import {
|
|
17
16
|
createTestUser,
|
|
18
17
|
setupTestStack,
|
|
@@ -89,7 +88,6 @@ beforeAll(async () => {
|
|
|
89
88
|
await unsafeCreateEntityTable(stack.db, folderEntity);
|
|
90
89
|
await unsafeCreateEntityTable(stack.db, folderAssignmentEntity);
|
|
91
90
|
await unsafeCreateEntityTable(stack.db, projectEntity);
|
|
92
|
-
await createEventsTable(stack.db);
|
|
93
91
|
|
|
94
92
|
await asRawClient(stack.db).unsafe(
|
|
95
93
|
`INSERT INTO ${PROJECT_TABLE} (id, tenant_id, team_id) VALUES ($1, $3, 'team-a'), ($2, $3, 'team-b')`,
|
|
@@ -19,7 +19,6 @@ import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:tes
|
|
|
19
19
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
20
20
|
import { createTenantDb } from "@cosmicdrift/kumiko-framework/db";
|
|
21
21
|
import { createEntity, createTextField, defineFeature } from "@cosmicdrift/kumiko-framework/engine";
|
|
22
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
23
22
|
import {
|
|
24
23
|
createTestUser,
|
|
25
24
|
setupTestStack,
|
|
@@ -98,7 +97,6 @@ beforeAll(async () => {
|
|
|
98
97
|
await unsafeCreateEntityTable(stack.db, folderEntity);
|
|
99
98
|
await unsafeCreateEntityTable(stack.db, folderAssignmentEntity);
|
|
100
99
|
await unsafeCreateEntityTable(stack.db, creditEntity);
|
|
101
|
-
await createEventsTable(stack.db);
|
|
102
100
|
await seedHostRows(stack, CREDIT_LABELS, admin.tenantId);
|
|
103
101
|
});
|
|
104
102
|
|
|
@@ -347,7 +345,6 @@ describe("folders integration — openToAll access model", () => {
|
|
|
347
345
|
await unsafeCreateEntityTable(openStack.db, folderEntity);
|
|
348
346
|
await unsafeCreateEntityTable(openStack.db, folderAssignmentEntity);
|
|
349
347
|
await unsafeCreateEntityTable(openStack.db, creditEntity);
|
|
350
|
-
await createEventsTable(openStack.db);
|
|
351
348
|
await seedHostRows(openStack, ["c-1"], unprivileged.tenantId);
|
|
352
349
|
});
|
|
353
350
|
|
|
@@ -13,7 +13,6 @@ import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
|
|
13
13
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
14
14
|
import { createTenantDb } from "@cosmicdrift/kumiko-framework/db";
|
|
15
15
|
import { createEntity, createTextField, defineFeature } from "@cosmicdrift/kumiko-framework/engine";
|
|
16
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
17
16
|
import {
|
|
18
17
|
createTestUser,
|
|
19
18
|
setupTestStack,
|
|
@@ -51,7 +50,6 @@ beforeAll(async () => {
|
|
|
51
50
|
await unsafeCreateEntityTable(stack.db, folderEntity);
|
|
52
51
|
await unsafeCreateEntityTable(stack.db, folderAssignmentEntity);
|
|
53
52
|
await unsafeCreateEntityTable(stack.db, creditEntity);
|
|
54
|
-
await createEventsTable(stack.db);
|
|
55
53
|
await asRawClient(stack.db).unsafe(
|
|
56
54
|
`INSERT INTO ${CREDIT_TABLE} (id, tenant_id, name) VALUES ($1, $3, 'kept'), ($2, $3, 'cleared')`,
|
|
57
55
|
[CREDIT_KEPT, CREDIT_CLEARED, admin.tenantId],
|
|
@@ -11,7 +11,6 @@ import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:tes
|
|
|
11
11
|
import { randomBytes } from "node:crypto";
|
|
12
12
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
13
13
|
import { qn, type TenantId, toKebab } from "@cosmicdrift/kumiko-framework/engine";
|
|
14
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
15
14
|
import {
|
|
16
15
|
createInMemoryFileProvider,
|
|
17
16
|
fileRefEntity,
|
|
@@ -72,7 +71,6 @@ beforeAll(async () => {
|
|
|
72
71
|
await unsafeCreateEntityTable(stack.db, formDraftEntity);
|
|
73
72
|
await unsafeCreateEntityTable(stack.db, fileRefEntity, "fileRef");
|
|
74
73
|
await unsafePushTables(stack.db, { configValuesTable });
|
|
75
|
-
await createEventsTable(stack.db);
|
|
76
74
|
});
|
|
77
75
|
|
|
78
76
|
afterAll(async () => {
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
|
|
29
29
|
import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
|
|
30
30
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
31
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
32
31
|
import {
|
|
33
32
|
createInMemoryFileProvider,
|
|
34
33
|
fileRefEntity,
|
|
@@ -59,7 +58,6 @@ beforeAll(async () => {
|
|
|
59
58
|
});
|
|
60
59
|
await unsafeCreateEntityTable(stack.db, formDraftEntity);
|
|
61
60
|
await unsafeCreateEntityTable(stack.db, fileRefEntity, "fileRef");
|
|
62
|
-
await createEventsTable(stack.db);
|
|
63
61
|
});
|
|
64
62
|
|
|
65
63
|
afterAll(async () => {
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
|
|
11
11
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
12
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
13
12
|
import {
|
|
14
13
|
createTestUser,
|
|
15
14
|
setupTestStack,
|
|
@@ -31,7 +30,6 @@ beforeAll(async () => {
|
|
|
31
30
|
jobs: { consumerLane: "worker", queueNamePrefix: `kumiko-form-draft-no-config-${Date.now()}` },
|
|
32
31
|
});
|
|
33
32
|
await unsafeCreateEntityTable(stack.db, formDraftEntity);
|
|
34
|
-
await createEventsTable(stack.db);
|
|
35
33
|
});
|
|
36
34
|
|
|
37
35
|
afterAll(async () => {
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
|
|
13
13
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
14
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
15
14
|
import {
|
|
16
15
|
createTestUser,
|
|
17
16
|
setupTestStack,
|
|
@@ -30,7 +29,6 @@ let stack: TestStack;
|
|
|
30
29
|
beforeAll(async () => {
|
|
31
30
|
stack = await setupTestStack({ features: [formDraftFeature, createConfigFeature()] });
|
|
32
31
|
await unsafeCreateEntityTable(stack.db, formDraftEntity);
|
|
33
|
-
await createEventsTable(stack.db);
|
|
34
32
|
});
|
|
35
33
|
|
|
36
34
|
afterAll(async () => {
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
|
|
7
7
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
8
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
9
8
|
import {
|
|
10
9
|
createTestUser,
|
|
11
10
|
setupTestStack,
|
|
@@ -28,7 +27,6 @@ const owner = createTestUser({ id: 1, roles: ["TenantMember"] });
|
|
|
28
27
|
beforeAll(async () => {
|
|
29
28
|
stack = await setupTestStack({ features: [formDraftFeature, createConfigFeature()] });
|
|
30
29
|
await unsafeCreateEntityTable(stack.db, formDraftEntity);
|
|
31
|
-
await createEventsTable(stack.db);
|
|
32
30
|
});
|
|
33
31
|
|
|
34
32
|
afterAll(async () => {
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
|
9
9
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
10
10
|
import { createTenantDb } from "@cosmicdrift/kumiko-framework/db";
|
|
11
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
12
11
|
import {
|
|
13
12
|
createTestUser,
|
|
14
13
|
setupTestStack,
|
|
@@ -33,7 +32,6 @@ const alice = createTestUser({ id: 31, roles: ["TenantMember"] });
|
|
|
33
32
|
beforeAll(async () => {
|
|
34
33
|
stack = await setupTestStack({ features: [formDraftFeature, createConfigFeature()] });
|
|
35
34
|
await unsafeCreateEntityTable(stack.db, formDraftEntity);
|
|
36
|
-
await createEventsTable(stack.db);
|
|
37
35
|
});
|
|
38
36
|
|
|
39
37
|
afterAll(async () => {
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
|
7
7
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
8
8
|
import { createTenantDb } from "@cosmicdrift/kumiko-framework/db";
|
|
9
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
10
9
|
import {
|
|
11
10
|
createTestUser,
|
|
12
11
|
setupTestStack,
|
|
@@ -32,7 +31,6 @@ const other = createTestUser({ id: 2, roles: ["TenantMember"] });
|
|
|
32
31
|
beforeAll(async () => {
|
|
33
32
|
stack = await setupTestStack({ features: [formDraftFeature, createConfigFeature()] });
|
|
34
33
|
await unsafeCreateEntityTable(stack.db, formDraftEntity);
|
|
35
|
-
await createEventsTable(stack.db);
|
|
36
34
|
});
|
|
37
35
|
|
|
38
36
|
afterAll(async () => {
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
defineFeature,
|
|
15
15
|
type TenantId,
|
|
16
16
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
17
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
18
17
|
import { createEnvMasterKeyProvider } from "@cosmicdrift/kumiko-framework/secrets";
|
|
19
18
|
import {
|
|
20
19
|
createTestUser,
|
|
@@ -125,7 +124,6 @@ beforeAll(async () => {
|
|
|
125
124
|
db = stack.db;
|
|
126
125
|
secrets = createSecretsContext({ db, masterKeyProvider: providerRef });
|
|
127
126
|
|
|
128
|
-
await createEventsTable(db);
|
|
129
127
|
await unsafeCreateEntityTable(db, tenantComplianceProfileEntity);
|
|
130
128
|
await unsafeCreateEntityTable(db, syncCursorEntity);
|
|
131
129
|
await unsafeCreateEntityTable(db, seenMessageEntity);
|
|
@@ -25,7 +25,6 @@ import { createTenantDb, type DbConnection } from "@cosmicdrift/kumiko-framework
|
|
|
25
25
|
import type { HandlerContext } from "@cosmicdrift/kumiko-framework/engine";
|
|
26
26
|
import {
|
|
27
27
|
append,
|
|
28
|
-
createEventsTable,
|
|
29
28
|
getStreamVersion,
|
|
30
29
|
loadAggregate,
|
|
31
30
|
VersionConflictError,
|
|
@@ -83,7 +82,6 @@ beforeAll(async () => {
|
|
|
83
82
|
],
|
|
84
83
|
});
|
|
85
84
|
db = stack.db;
|
|
86
|
-
await createEventsTable(db);
|
|
87
85
|
await unsafeCreateEntityTable(db, tenantEntity);
|
|
88
86
|
await unsafeCreateEntityTable(db, tenantComplianceProfileEntity);
|
|
89
87
|
// Unmanaged direct-write stores — kein r.entity, kein Auto-Push.
|
|
@@ -9,7 +9,7 @@ import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
|
|
9
9
|
import { selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
10
10
|
import { configurePiiSubjectKms, InMemoryKmsAdapter } from "@cosmicdrift/kumiko-framework/crypto";
|
|
11
11
|
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
12
|
-
import {
|
|
12
|
+
import { loadAggregate } from "@cosmicdrift/kumiko-framework/event-store";
|
|
13
13
|
import { rebuildProjection } from "@cosmicdrift/kumiko-framework/pipeline";
|
|
14
14
|
import {
|
|
15
15
|
createTestUser,
|
|
@@ -51,7 +51,6 @@ beforeAll(async () => {
|
|
|
51
51
|
],
|
|
52
52
|
});
|
|
53
53
|
db = stack.db;
|
|
54
|
-
await createEventsTable(db);
|
|
55
54
|
await unsafeCreateEntityTable(db, tenantEntity);
|
|
56
55
|
await unsafeCreateEntityTable(db, tenantComplianceProfileEntity);
|
|
57
56
|
await unsafeCreateEntityTable(db, syncCursorEntity);
|
|
@@ -9,7 +9,6 @@ import { selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
|
9
9
|
import { configurePiiSubjectKms, InMemoryKmsAdapter } from "@cosmicdrift/kumiko-framework/crypto";
|
|
10
10
|
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
11
11
|
import { createSystemUser, type TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
12
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
13
12
|
import { createDistributedLock } from "@cosmicdrift/kumiko-framework/pipeline";
|
|
14
13
|
import {
|
|
15
14
|
createTestUser,
|
|
@@ -65,7 +64,6 @@ beforeAll(async () => {
|
|
|
65
64
|
],
|
|
66
65
|
});
|
|
67
66
|
db = stack.db;
|
|
68
|
-
await createEventsTable(db);
|
|
69
67
|
await unsafeCreateEntityTable(db, tenantEntity);
|
|
70
68
|
await unsafeCreateEntityTable(db, tenantComplianceProfileEntity);
|
|
71
69
|
await unsafeCreateEntityTable(db, syncCursorEntity);
|
|
@@ -19,7 +19,6 @@ import { selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
|
19
19
|
import { configurePiiSubjectKms, InMemoryKmsAdapter } from "@cosmicdrift/kumiko-framework/crypto";
|
|
20
20
|
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
21
21
|
import { createSystemUser, type TenantId } from "@cosmicdrift/kumiko-framework/engine";
|
|
22
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
23
22
|
import { createEnvMasterKeyProvider } from "@cosmicdrift/kumiko-framework/secrets";
|
|
24
23
|
import {
|
|
25
24
|
createTestUser,
|
|
@@ -120,7 +119,6 @@ beforeAll(async () => {
|
|
|
120
119
|
db = stack.db;
|
|
121
120
|
secrets = createSecretsContext({ db, masterKeyProvider: providerRef });
|
|
122
121
|
|
|
123
|
-
await createEventsTable(db);
|
|
124
122
|
await unsafeCreateEntityTable(db, tenantComplianceProfileEntity);
|
|
125
123
|
await unsafeCreateEntityTable(db, syncCursorEntity);
|
|
126
124
|
await unsafeCreateEntityTable(db, seenMessageEntity);
|
|
@@ -13,10 +13,7 @@ import {
|
|
|
13
13
|
type Registry,
|
|
14
14
|
type SessionUser,
|
|
15
15
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
16
|
-
import {
|
|
17
|
-
createArchivedStreamsTable,
|
|
18
|
-
createEventsTable,
|
|
19
|
-
} from "@cosmicdrift/kumiko-framework/event-store";
|
|
16
|
+
import { createArchivedStreamsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
20
17
|
import { createJobRunner, type JobRunner } from "@cosmicdrift/kumiko-framework/jobs";
|
|
21
18
|
import {
|
|
22
19
|
createTestDb,
|
|
@@ -115,7 +112,6 @@ beforeAll(async () => {
|
|
|
115
112
|
// the framework events + archived-streams tables to exist before the
|
|
116
113
|
// first append. setupTestStack provisions them automatically; this test
|
|
117
114
|
// builds its DB manually (createTestDb + unsafePushTables), so we do it here.
|
|
118
|
-
await createEventsTable(db);
|
|
119
115
|
await createArchivedStreamsTable(db);
|
|
120
116
|
|
|
121
117
|
const encryption = createTestEnvelopeCipher(testEncryptionKey);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
|
|
12
12
|
import { selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
13
13
|
import { createRegistry } from "@cosmicdrift/kumiko-framework/engine";
|
|
14
|
-
import {
|
|
14
|
+
import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
15
15
|
import {
|
|
16
16
|
createTestDb,
|
|
17
17
|
createTestRedis,
|
|
@@ -36,7 +36,6 @@ beforeAll(async () => {
|
|
|
36
36
|
await unsafePushTables(testDb.db, { jobRunsTable, jobRunLogsTable });
|
|
37
37
|
// Kept only for the negative assertion below (no jobs:event:run-* rows) —
|
|
38
38
|
// the write path itself no longer touches the event store.
|
|
39
|
-
await createEventsTable(testDb.db);
|
|
40
39
|
logger = createJobRunLogger({ db: testDb.db, registry });
|
|
41
40
|
});
|
|
42
41
|
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
defineFeature,
|
|
7
7
|
type SessionUser,
|
|
8
8
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
9
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
10
9
|
import { createJobRunner, type JobRunner } from "@cosmicdrift/kumiko-framework/jobs";
|
|
11
10
|
import {
|
|
12
11
|
createTestDb,
|
|
@@ -85,7 +84,6 @@ beforeAll(async () => {
|
|
|
85
84
|
// We need events + archived_streams for the ES writes the job-runner's
|
|
86
85
|
// logger does.
|
|
87
86
|
await unsafePushTables(db, { jobRunsTable, jobRunLogsTable });
|
|
88
|
-
await createEventsTable(db);
|
|
89
87
|
|
|
90
88
|
const redisUrl = `redis://${testRedis.redis.options.host}:${testRedis.redis.options.port}/${testRedis.redis.options.db}`;
|
|
91
89
|
const logger = createJobRunLogger({ db, registry });
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
defineFeature,
|
|
21
21
|
SYSTEM_TENANT_ID,
|
|
22
22
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
23
|
-
import {
|
|
23
|
+
import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
24
24
|
import {
|
|
25
25
|
createTestDb,
|
|
26
26
|
createTestRedis,
|
|
@@ -59,7 +59,6 @@ beforeAll(async () => {
|
|
|
59
59
|
await unsafePushTables(testDb.db, { jobRunsTable, jobRunLogsTable });
|
|
60
60
|
// Kept only so the "no event store involved" assertion below has a table
|
|
61
61
|
// to assert against — the write path itself never touches it.
|
|
62
|
-
await createEventsTable(testDb.db);
|
|
63
62
|
logger = createJobRunLogger({ db: testDb.db, registry });
|
|
64
63
|
});
|
|
65
64
|
|
|
@@ -25,7 +25,6 @@ import {
|
|
|
25
25
|
defineFeature,
|
|
26
26
|
type ProjectionDefinition,
|
|
27
27
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
28
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
29
28
|
import { createJobRunner, type JobRunner } from "@cosmicdrift/kumiko-framework/jobs";
|
|
30
29
|
import {
|
|
31
30
|
enqueueProjectionRebuild,
|
|
@@ -103,7 +102,6 @@ beforeAll(async () => {
|
|
|
103
102
|
db = testDb.db;
|
|
104
103
|
|
|
105
104
|
await unsafeCreateEntityTable(db, itemEntity, "rebuild-item");
|
|
106
|
-
await createEventsTable(db);
|
|
107
105
|
await createProjectionStateTable(db);
|
|
108
106
|
await unsafePushTables(db, { readRebuildCounts: countsTable, jobRunsTable, jobRunLogsTable });
|
|
109
107
|
tdb = createTenantDb(db, admin.tenantId);
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
type JobContext,
|
|
21
21
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
22
22
|
import { AccessDeniedError } from "@cosmicdrift/kumiko-framework/errors";
|
|
23
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
24
23
|
import {
|
|
25
24
|
setupTestStack,
|
|
26
25
|
type TestStack,
|
|
@@ -69,7 +68,6 @@ const noopLogger: JobContext["log"] = {
|
|
|
69
68
|
beforeAll(async () => {
|
|
70
69
|
stack = await setupTestStack({ features: [widgetFeature, createJobsFeature()] });
|
|
71
70
|
await unsafeCreateEntityTable(stack.db, widgetEntity);
|
|
72
|
-
await createEventsTable(stack.db);
|
|
73
71
|
});
|
|
74
72
|
|
|
75
73
|
afterAll(async () => {
|
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
type SessionUser,
|
|
20
20
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
21
21
|
import { UnprocessableError } from "@cosmicdrift/kumiko-framework/errors";
|
|
22
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
23
22
|
import { createJobRunner, type JobRunner } from "@cosmicdrift/kumiko-framework/jobs";
|
|
24
23
|
import {
|
|
25
24
|
createTestDb,
|
|
@@ -113,7 +112,6 @@ beforeAll(async () => {
|
|
|
113
112
|
|
|
114
113
|
const registry = createRegistry([appFeature, createJobsFeature()]);
|
|
115
114
|
await unsafePushTables(db, { jobRunsTable, jobRunLogsTable, tenantJobFailuresTable });
|
|
116
|
-
await createEventsTable(db);
|
|
117
115
|
|
|
118
116
|
const redisUrl = `redis://${testRedis.redis.options.host}:${testRedis.redis.options.port}/${testRedis.redis.options.db}`;
|
|
119
117
|
jobRunner = createJobRunner({
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
|
|
9
9
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
10
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
11
10
|
import {
|
|
12
11
|
createTestUser,
|
|
13
12
|
setupTestStack,
|
|
@@ -28,7 +27,6 @@ beforeAll(async () => {
|
|
|
28
27
|
await unsafeCreateEntityTable(stack.db, accountEntity);
|
|
29
28
|
await unsafeCreateEntityTable(stack.db, transactionEntity);
|
|
30
29
|
await unsafeCreateEntityTable(stack.db, scheduleEntity);
|
|
31
|
-
await createEventsTable(stack.db);
|
|
32
30
|
});
|
|
33
31
|
|
|
34
32
|
afterAll(async () => {
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
|
|
13
13
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
14
14
|
import { createSystemUser } from "@cosmicdrift/kumiko-framework/engine";
|
|
15
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
16
15
|
import {
|
|
17
16
|
createTestUser,
|
|
18
17
|
setupTestStack,
|
|
@@ -35,7 +34,6 @@ beforeAll(async () => {
|
|
|
35
34
|
await unsafeCreateEntityTable(stack.db, accountEntity);
|
|
36
35
|
await unsafeCreateEntityTable(stack.db, transactionEntity);
|
|
37
36
|
await unsafeCreateEntityTable(stack.db, scheduleEntity);
|
|
38
|
-
await createEventsTable(stack.db);
|
|
39
37
|
});
|
|
40
38
|
|
|
41
39
|
afterAll(async () => {
|
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
import { seedTextBlock } from "@cosmicdrift/kumiko-bundled-features/template-resolver/seeding";
|
|
14
14
|
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
15
15
|
import { createRegistry, SYSTEM_TENANT_ID } from "@cosmicdrift/kumiko-framework/engine";
|
|
16
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
17
16
|
import {
|
|
18
17
|
setupTestStack,
|
|
19
18
|
type TestStack,
|
|
@@ -42,7 +41,6 @@ beforeAll(async () => {
|
|
|
42
41
|
});
|
|
43
42
|
db = stack.db;
|
|
44
43
|
await unsafeCreateEntityTable(db, templateResourceEntity);
|
|
45
|
-
await createEventsTable(db);
|
|
46
44
|
|
|
47
45
|
// Seed legal blocks für SYSTEM_TENANT in DE
|
|
48
46
|
await seedTextBlock(db, {
|
|
@@ -266,7 +264,6 @@ describe("legal-pages :: SYSTEM_TENANT-routing (production-bug-regression)", ()
|
|
|
266
264
|
});
|
|
267
265
|
try {
|
|
268
266
|
await unsafeCreateEntityTable(hostScopedStack.db, templateResourceEntity);
|
|
269
|
-
await createEventsTable(hostScopedStack.db);
|
|
270
267
|
|
|
271
268
|
// Block NUR im SYSTEM_TENANT seeden — NICHT im otherTenantId
|
|
272
269
|
await seedTextBlock(hostScopedStack.db, {
|
|
@@ -308,7 +305,6 @@ describe("legal-pages :: wrapLayout erhält route.slug (alt-lang-switch-regressi
|
|
|
308
305
|
});
|
|
309
306
|
try {
|
|
310
307
|
await unsafeCreateEntityTable(customStack.db, templateResourceEntity);
|
|
311
|
-
await createEventsTable(customStack.db);
|
|
312
308
|
await seedTextBlock(customStack.db, {
|
|
313
309
|
tenantId: SYSTEM_TENANT_ID,
|
|
314
310
|
slug: "imprint",
|
|
@@ -363,7 +359,6 @@ describe("legal-pages :: configurable routes/requiredBlocks (non-DACH apps)", ()
|
|
|
363
359
|
});
|
|
364
360
|
try {
|
|
365
361
|
await unsafeCreateEntityTable(esStack.db, templateResourceEntity);
|
|
366
|
-
await createEventsTable(esStack.db);
|
|
367
362
|
await seedTextBlock(esStack.db, {
|
|
368
363
|
tenantId: SYSTEM_TENANT_ID,
|
|
369
364
|
slug: "imprint",
|
|
@@ -12,7 +12,6 @@ import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
|
|
12
12
|
import { randomBytes } from "node:crypto";
|
|
13
13
|
import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
|
|
14
14
|
import { defineFeature, defineWriteHandler } from "@cosmicdrift/kumiko-framework/engine";
|
|
15
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
16
15
|
import { createEnvMasterKeyProvider } from "@cosmicdrift/kumiko-framework/secrets";
|
|
17
16
|
import {
|
|
18
17
|
createTestUser,
|
|
@@ -127,7 +126,6 @@ beforeAll(async () => {
|
|
|
127
126
|
|
|
128
127
|
await unsafeCreateEntityTable(db, tenantEntity);
|
|
129
128
|
await unsafePushTables(db, { configValuesTable, tenant_secrets: tenantSecretsTable });
|
|
130
|
-
await createEventsTable(db);
|
|
131
129
|
});
|
|
132
130
|
|
|
133
131
|
afterAll(async () => {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
|
2
2
|
import { fetchOne } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
3
3
|
import { createSystemUser } from "@cosmicdrift/kumiko-framework/engine";
|
|
4
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
5
4
|
import {
|
|
6
5
|
createTestUser,
|
|
7
6
|
setupTestStack,
|
|
@@ -71,7 +70,6 @@ beforeAll(async () => {
|
|
|
71
70
|
});
|
|
72
71
|
await unsafeCreateEntityTable(stack.db, pageEntity);
|
|
73
72
|
await unsafePushTables(stack.db, { configValuesTable });
|
|
74
|
-
await createEventsTable(stack.db);
|
|
75
73
|
|
|
76
74
|
await seedPage(stack.db, {
|
|
77
75
|
tenantId: TENANT_A,
|
|
@@ -601,7 +599,6 @@ describe("managed-pages :: Custom CSS (gated, sanitized render)", () => {
|
|
|
601
599
|
});
|
|
602
600
|
await unsafeCreateEntityTable(cssStack.db, pageEntity);
|
|
603
601
|
await unsafePushTables(cssStack.db, { configValuesTable });
|
|
604
|
-
await createEventsTable(cssStack.db);
|
|
605
602
|
await seedPage(cssStack.db, {
|
|
606
603
|
tenantId: TENANT_A,
|
|
607
604
|
slug: "about",
|
|
@@ -754,7 +751,6 @@ describe("managed-pages :: resolverTrust authoritative (host-based, wie publicst
|
|
|
754
751
|
});
|
|
755
752
|
await unsafeCreateEntityTable(authStack.db, pageEntity);
|
|
756
753
|
await unsafePushTables(authStack.db, { configValuesTable });
|
|
757
|
-
await createEventsTable(authStack.db);
|
|
758
754
|
await seedPage(authStack.db, {
|
|
759
755
|
tenantId: TENANT_A,
|
|
760
756
|
slug: "about",
|
|
@@ -27,7 +27,6 @@ import {
|
|
|
27
27
|
defineFeature,
|
|
28
28
|
type EntityDefinition,
|
|
29
29
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
30
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
31
30
|
import {
|
|
32
31
|
createTestUser,
|
|
33
32
|
setupTestStack,
|
|
@@ -125,7 +124,6 @@ beforeAll(async () => {
|
|
|
125
124
|
await unsafeCreateEntityTable(scopedStack.db, createNoteEntryEntity(teamOwnership));
|
|
126
125
|
await unsafeCreateEntityTable(scopedStack.db, noteMentionEntity);
|
|
127
126
|
await unsafeCreateEntityTable(scopedStack.db, projectEntity);
|
|
128
|
-
await createEventsTable(scopedStack.db);
|
|
129
127
|
await asRawClient(scopedStack.db).unsafe(
|
|
130
128
|
`CREATE TABLE IF NOT EXISTS ${TEAMS_TABLE} (entity_id text PRIMARY KEY, team_id text NOT NULL)`,
|
|
131
129
|
);
|
|
@@ -141,7 +139,6 @@ beforeAll(async () => {
|
|
|
141
139
|
await unsafeCreateEntityTable(defaultStack.db, noteEntryEntity);
|
|
142
140
|
await unsafeCreateEntityTable(defaultStack.db, noteMentionEntity);
|
|
143
141
|
await unsafeCreateEntityTable(defaultStack.db, projectEntity);
|
|
144
|
-
await createEventsTable(defaultStack.db);
|
|
145
142
|
await insertProjects(defaultStack, userA.tenantId, [PROJ_1]);
|
|
146
143
|
});
|
|
147
144
|
|
|
@@ -290,7 +287,6 @@ describe("unqualified where-rule fails closed, not open (fw#2639)", () => {
|
|
|
290
287
|
await unsafeCreateEntityTable(unqualifiedStack.db, createNoteEntryEntity(unqualifiedOwnership));
|
|
291
288
|
await unsafeCreateEntityTable(unqualifiedStack.db, noteMentionEntity);
|
|
292
289
|
await unsafeCreateEntityTable(unqualifiedStack.db, projectEntity);
|
|
293
|
-
await createEventsTable(unqualifiedStack.db);
|
|
294
290
|
await asRawClient(unqualifiedStack.db).unsafe(
|
|
295
291
|
`CREATE TABLE IF NOT EXISTS ${TEAMS_TABLE} (entity_id text PRIMARY KEY, team_id text NOT NULL)`,
|
|
296
292
|
);
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
defineFeature,
|
|
18
18
|
type EntityDefinition,
|
|
19
19
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
20
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
21
20
|
import {
|
|
22
21
|
createTestUser,
|
|
23
22
|
setupTestStack,
|
|
@@ -119,7 +118,6 @@ beforeAll(async () => {
|
|
|
119
118
|
await unsafeCreateEntityTable(guardedStack.db, guardedProjectEntity);
|
|
120
119
|
await unsafeCreateEntityTable(guardedStack.db, createNoteEntryEntity());
|
|
121
120
|
await unsafeCreateEntityTable(guardedStack.db, noteMentionEntity);
|
|
122
|
-
await createEventsTable(guardedStack.db);
|
|
123
121
|
await asRawClient(guardedStack.db).unsafe(
|
|
124
122
|
`INSERT INTO ${PROJECT_TABLE} (id, tenant_id, team_id, name) VALUES
|
|
125
123
|
($1, $2, 'team-a', 'Project A'),
|
|
@@ -136,7 +134,6 @@ beforeAll(async () => {
|
|
|
136
134
|
await unsafeCreateEntityTable(openStack.db, guardedProjectEntity);
|
|
137
135
|
await unsafeCreateEntityTable(openStack.db, createNoteEntryEntity());
|
|
138
136
|
await unsafeCreateEntityTable(openStack.db, noteMentionEntity);
|
|
139
|
-
await createEventsTable(openStack.db);
|
|
140
137
|
await asRawClient(openStack.db).unsafe(
|
|
141
138
|
`INSERT INTO ${PROJECT_TABLE} (id, tenant_id, team_id, name) VALUES ($1, $2, 'team-a', 'Project Open')`,
|
|
142
139
|
[PROJECT_OPEN, userA.tenantId],
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
|
|
21
21
|
import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
|
|
22
22
|
import { createEntity, createTextField, defineFeature } from "@cosmicdrift/kumiko-framework/engine";
|
|
23
|
-
import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
|
|
24
23
|
import {
|
|
25
24
|
createTestUser,
|
|
26
25
|
setupTestStack,
|
|
@@ -75,7 +74,6 @@ beforeAll(async () => {
|
|
|
75
74
|
await unsafeCreateEntityTable(stack.db, noteEntryEntity);
|
|
76
75
|
await unsafeCreateEntityTable(stack.db, noteMentionEntity);
|
|
77
76
|
await unsafeCreateEntityTable(stack.db, contactEntity);
|
|
78
|
-
await createEventsTable(stack.db);
|
|
79
77
|
|
|
80
78
|
for (const id of [
|
|
81
79
|
CONTACT_1,
|