refactor(server): use feature model #23966
Annotations
11 errors and 1 notice
Upload test results
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
|
Server E2E Test 2/3:
tests/kit/src/utils/cloud.ts#L120
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ───────────────
PrismaClientValidationError:
Invalid `prisma.feature.findFirst()` invocation:
{
where: {
feature: "free_plan_v1",
~~~~~~~
? AND?: FeatureWhereInput | FeatureWhereInput[],
? OR?: FeatureWhereInput[],
? NOT?: FeatureWhereInput | FeatureWhereInput[],
? id?: IntFilter | Int,
? name?: StringFilter | String,
? configs?: JsonFilter,
? createdAt?: DateTimeFilter | DateTime,
? updatedAt?: DateTimeFilter | DateTime,
? deprecatedVersion?: IntFilter | Int,
? deprecatedType?: IntFilter | Int
},
select: {
id: true
},
orderBy: {
version: "desc"
}
}
Unknown argument `feature`. Available options are marked with ?.
at ../../kit/src/utils/cloud.ts:120
118 | };
119 | const result = await runPrisma(async client => {
> 120 | const featureId = await client.feature
| ^
121 | .findFirst({
122 | where: { feature: 'free_plan_v1' },
123 | select: { id: true },
at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363)
at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958)
at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623)
at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307)
at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633)
at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23
at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12)
at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:19:10
|
Server E2E Test 2/3:
tests/affine-cloud/e2e/open-in-app.spec.ts#L30
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ───────────────
TypeError: Cannot read properties of undefined (reading 'email')
28 | // if you want to keep the user in the database for debugging,
29 | // comment this line
> 30 | await deleteUser(user.email);
| ^
31 | });
32 |
33 | test('open in app card should be shown for cloud workspace', async ({
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:30:25
|
Server E2E Test 2/3:
tests/kit/src/utils/cloud.ts#L120
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
PrismaClientValidationError:
Invalid `prisma.feature.findFirst()` invocation:
{
where: {
feature: "free_plan_v1",
~~~~~~~
? AND?: FeatureWhereInput | FeatureWhereInput[],
? OR?: FeatureWhereInput[],
? NOT?: FeatureWhereInput | FeatureWhereInput[],
? id?: IntFilter | Int,
? name?: StringFilter | String,
? configs?: JsonFilter,
? createdAt?: DateTimeFilter | DateTime,
? updatedAt?: DateTimeFilter | DateTime,
? deprecatedVersion?: IntFilter | Int,
? deprecatedType?: IntFilter | Int
},
select: {
id: true
},
orderBy: {
version: "desc"
}
}
Unknown argument `feature`. Available options are marked with ?.
at ../../kit/src/utils/cloud.ts:120
118 | };
119 | const result = await runPrisma(async client => {
> 120 | const featureId = await client.feature
| ^
121 | .findFirst({
122 | where: { feature: 'free_plan_v1' },
123 | select: { id: true },
at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363)
at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958)
at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623)
at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307)
at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633)
at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23
at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12)
at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:19:10
|
Server E2E Test 2/3:
tests/affine-cloud/e2e/open-in-app.spec.ts#L30
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'email')
28 | // if you want to keep the user in the database for debugging,
29 | // comment this line
> 30 | await deleteUser(user.email);
| ^
31 | });
32 |
33 | test('open in app card should be shown for cloud workspace', async ({
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:30:25
|
Server E2E Test 2/3:
tests/kit/src/utils/cloud.ts#L120
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ───────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
PrismaClientValidationError:
Invalid `prisma.feature.findFirst()` invocation:
{
where: {
feature: "free_plan_v1",
~~~~~~~
? AND?: FeatureWhereInput | FeatureWhereInput[],
? OR?: FeatureWhereInput[],
? NOT?: FeatureWhereInput | FeatureWhereInput[],
? id?: IntFilter | Int,
? name?: StringFilter | String,
? configs?: JsonFilter,
? createdAt?: DateTimeFilter | DateTime,
? updatedAt?: DateTimeFilter | DateTime,
? deprecatedVersion?: IntFilter | Int,
? deprecatedType?: IntFilter | Int
},
select: {
id: true
},
orderBy: {
version: "desc"
}
}
Unknown argument `feature`. Available options are marked with ?.
at ../../kit/src/utils/cloud.ts:120
118 | };
119 | const result = await runPrisma(async client => {
> 120 | const featureId = await client.feature
| ^
121 | .findFirst({
122 | where: { feature: 'free_plan_v1' },
123 | select: { id: true },
at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363)
at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958)
at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623)
at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307)
at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633)
at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23
at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12)
at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:19:10
|
Server E2E Test 2/3:
tests/affine-cloud/e2e/open-in-app.spec.ts#L30
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ───────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'email')
28 | // if you want to keep the user in the database for debugging,
29 | // comment this line
> 30 | await deleteUser(user.email);
| ^
31 | });
32 |
33 | test('open in app card should be shown for cloud workspace', async ({
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:30:25
|
Server E2E Test 2/3:
tests/kit/src/utils/cloud.ts#L120
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ───────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
PrismaClientValidationError:
Invalid `prisma.feature.findFirst()` invocation:
{
where: {
feature: "free_plan_v1",
~~~~~~~
? AND?: FeatureWhereInput | FeatureWhereInput[],
? OR?: FeatureWhereInput[],
? NOT?: FeatureWhereInput | FeatureWhereInput[],
? id?: IntFilter | Int,
? name?: StringFilter | String,
? configs?: JsonFilter,
? createdAt?: DateTimeFilter | DateTime,
? updatedAt?: DateTimeFilter | DateTime,
? deprecatedVersion?: IntFilter | Int,
? deprecatedType?: IntFilter | Int
},
select: {
id: true
},
orderBy: {
version: "desc"
}
}
Unknown argument `feature`. Available options are marked with ?.
at ../../kit/src/utils/cloud.ts:120
118 | };
119 | const result = await runPrisma(async client => {
> 120 | const featureId = await client.feature
| ^
121 | .findFirst({
122 | where: { feature: 'free_plan_v1' },
123 | select: { id: true },
at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363)
at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958)
at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623)
at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307)
at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633)
at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23
at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12)
at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:19:10
|
Server E2E Test 2/3:
tests/affine-cloud/e2e/open-in-app.spec.ts#L30
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ───────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'email')
28 | // if you want to keep the user in the database for debugging,
29 | // comment this line
> 30 | await deleteUser(user.email);
| ^
31 | });
32 |
33 | test('open in app card should be shown for cloud workspace', async ({
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:30:25
|
Server E2E Test 2/3:
tests/kit/src/utils/cloud.ts#L120
2) page-history.spec.ts:35:1 › newly created page shows empty history ────────────────────────────
PrismaClientValidationError:
Invalid `prisma.feature.findFirst()` invocation:
{
where: {
feature: "free_plan_v1",
~~~~~~~
? AND?: FeatureWhereInput | FeatureWhereInput[],
? OR?: FeatureWhereInput[],
? NOT?: FeatureWhereInput | FeatureWhereInput[],
? id?: IntFilter | Int,
? name?: StringFilter | String,
? configs?: JsonFilter,
? createdAt?: DateTimeFilter | DateTime,
? updatedAt?: DateTimeFilter | DateTime,
? deprecatedVersion?: IntFilter | Int,
? deprecatedType?: IntFilter | Int
},
select: {
id: true
},
orderBy: {
version: "desc"
}
}
Unknown argument `feature`. Available options are marked with ?.
at ../../kit/src/utils/cloud.ts:120
118 | };
119 | const result = await runPrisma(async client => {
> 120 | const featureId = await client.feature
| ^
121 | .findFirst({
122 | where: { feature: 'free_plan_v1' },
123 | select: { id: true },
at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363)
at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958)
at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623)
at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307)
at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633)
at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23
at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12)
at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/page-history.spec.ts:25:10
|
Server E2E Test 2/3:
tests/affine-cloud/e2e/page-history.spec.ts#L32
2) page-history.spec.ts:35:1 › newly created page shows empty history ────────────────────────────
TypeError: Cannot read properties of undefined (reading 'email')
30 | // if you want to keep the user in the database for debugging,
31 | // comment this line
> 32 | await deleteUser(user.email);
| ^
33 | });
34 |
35 | test('newly created page shows empty history', async ({ page }) => {
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/page-history.spec.ts:32:25
|
Server E2E Test 2/3
11 failed
open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ────────────────
page-history.spec.ts:35:1 › newly created page shows empty history ─────────────────────────────
page-history.spec.ts:88:1 › can restore page to a history version ──────────────────────────────
share-page.spec.ts:30:1 › can enable share page ────────────────────────────────────────────────
share-page.spec.ts:70:1 › share page should have toc ───────────────────────────────────────────
share-page.spec.ts:126:1 › append paragraph should be disabled in shared mode ──────────────────
share-page.spec.ts:174:1 › share page with default edgeless ────────────────────────────────────
share-page.spec.ts:219:1 › image preview should be shown ───────────────────────────────────────
share-page.spec.ts:259:1 › The reference links in the shared page should be accessible normally and can go back and forward
share-page.spec.ts:341:1 › Should show no permission page when the share page is not found ─────
share-page.spec.ts:351:1 › Inline latex modal should be not shown in shared mode when clicking ─
|
Loading