feat(server): use prisma #18071
test.yml
on: pull_request
Docs
2m 47s
Server
1m 44s
CLI
19s
Web
1m 40s
End-to-End Tests
7m 6s
Mobile
1m 40s
Machine Learning
37s
ShellCheck
6s
OpenAPI Clients
35s
TypeORM Checks
1m 16s
Annotations
15 errors
TypeORM Checks
Process completed with exit code 1.
|
Server
Process completed with exit code 2.
|
Server
Process completed with exit code 1.
|
Server
Process completed with exit code 1.
|
src/api/specs/library.e2e-spec.ts > /library > POST /library/:id/scan > should offline missing files:
e2e/src/api/specs/library.e2e-spec.ts#L481
Error: Error: 500
❯ Object.y [as ok] ../open-api/typescript-sdk/node_modules/@oazapfts/src/index.ts:71:9
❯ src/api/specs/library.e2e-spec.ts:481:26
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 500, data: { message: 'Failed to search metadata', error: 'Internal Server Error', statusCode: 500 }, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' } }
|
src/api/specs/library.e2e-spec.ts > /library > POST /library/:id/scan > should scan new files:
e2e/src/api/specs/library.e2e-spec.ts#L509
Error: Error: 500
❯ Object.y [as ok] ../open-api/typescript-sdk/node_modules/@oazapfts/src/index.ts:71:9
❯ src/api/specs/library.e2e-spec.ts:509:26
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 500, data: { message: 'Failed to search metadata', error: 'Internal Server Error', statusCode: 500 }, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' } }
|
src/api/specs/library.e2e-spec.ts > /library > POST /library/:id/scan > with refreshModifiedFiles=true > should reimport modified files:
e2e/src/api/specs/library.e2e-spec.ts#L542
Error: Error: 500
❯ Object.y [as ok] ../open-api/typescript-sdk/node_modules/@oazapfts/src/index.ts:71:9
❯ src/api/specs/library.e2e-spec.ts:542:28
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 500, data: { message: 'Failed to search metadata', error: 'Internal Server Error', statusCode: 500 }, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' } }
|
src/api/specs/library.e2e-spec.ts > /library > POST /library/:id/scan > with refreshModifiedFiles=true > should not reimport unmodified files:
e2e/src/api/specs/library.e2e-spec.ts#L570
Error: Error: 500
❯ Object.y [as ok] ../open-api/typescript-sdk/node_modules/@oazapfts/src/index.ts:71:9
❯ src/api/specs/library.e2e-spec.ts:570:28
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 500, data: { message: 'Failed to search metadata', error: 'Internal Server Error', statusCode: 500 }, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' } }
|
src/api/specs/library.e2e-spec.ts > /library > POST /library/:id/scan > with refreshAllFiles=true > should reimport all files:
e2e/src/api/specs/library.e2e-spec.ts#L600
Error: Error: 500
❯ Object.y [as ok] ../open-api/typescript-sdk/node_modules/@oazapfts/src/index.ts:71:9
❯ src/api/specs/library.e2e-spec.ts:600:28
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 500, data: { message: 'Failed to search metadata', error: 'Internal Server Error', statusCode: 500 }, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' } }
|
src/api/specs/library.e2e-spec.ts > /library > POST /library/:id/removeOffline > should remove offline files:
e2e/src/api/specs/library.e2e-spec.ts#L629
Error: Error: 500
❯ Object.y [as ok] ../open-api/typescript-sdk/node_modules/@oazapfts/src/index.ts:71:9
❯ src/api/specs/library.e2e-spec.ts:629:41
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 500, data: { message: 'Failed to search metadata', error: 'Internal Server Error', statusCode: 500 }, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' } }
|
src/api/specs/library.e2e-spec.ts > /library > POST /library/:id/removeOffline > should not remove online files:
e2e/src/api/specs/library.e2e-spec.ts#L668
Error: Error: 500
❯ Object.y [as ok] ../open-api/typescript-sdk/node_modules/@oazapfts/src/index.ts:71:9
❯ src/api/specs/library.e2e-spec.ts:668:40
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 500, data: { message: 'Failed to search metadata', error: 'Internal Server Error', statusCode: 500 }, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' } }
|
src/api/specs/timeline.e2e-spec.ts > /timeline > GET /timeline/buckets > should not allow access for unrelated shared links:
e2e/src/api/specs/timeline.e2e-spec.ts#L85
AssertionError: expected 200 to be 400 // Object.is equality
- Expected
+ Received
- 400
+ 200
❯ src/api/specs/timeline.e2e-spec.ts:85:22
|
src/api/specs/trash.e2e-spec.ts > /trash > POST /trash/restore > should restore all trashed assets:
e2e/src/api/specs/trash.e2e-spec.ts#L60
AssertionError: expected [ { …(29) }, { …(29) } ] to strictly equal [ ObjectContaining{…} ]
- Expected
+ Received
Array [
ObjectContaining {
"id": "8960564b-3a91-47fd-9dc3-0138816ad174",
"isTrashed": true,
},
+ Object {
+ "checksum": "s2L1+OUcGNlbd1Vr0904+kxCNO0=",
+ "deviceAssetId": "test-1",
+ "deviceId": "test",
+ "duplicateId": null,
+ "duration": "0:00:00.00000",
+ "exifInfo": Object {
+ "city": null,
+ "country": null,
+ "dateTimeOriginal": "2024-05-19T00:01:29.281Z",
+ "description": "",
+ "exifImageHeight": 1,
+ "exifImageWidth": 1,
+ "exposureTime": null,
+ "fNumber": null,
+ "fileSizeInByte": 68,
+ "focalLength": null,
+ "iso": null,
+ "latitude": null,
+ "lensModel": null,
+ "longitude": null,
+ "make": null,
+ "model": null,
+ "modifyDate": "2024-05-19T00:01:29.281Z",
+ "orientation": null,
+ "projectionType": null,
+ "state": null,
+ "timeZone": null,
+ },
+ "fileCreatedAt": "2024-05-19T00:01:29.281Z",
+ "fileModifiedAt": "2024-05-19T00:01:29.281Z",
+ "hasMetadata": true,
+ "id": "b371e48e-4507-4ad0-aaac-1a20f8e62fc0",
+ "isArchived": false,
+ "isExternal": false,
+ "isFavorite": false,
+ "isOffline": false,
+ "isReadOnly": false,
+ "isTrashed": true,
+ "libraryId": "d062bf63-0813-4d4f-8418-31349c7c0ffd",
+ "livePhotoVideoId": null,
+ "localDateTime": "2024-05-19T00:01:29.281Z",
+ "originalFileName": "example.png",
+ "originalPath": "upload/upload/32ccc535-1c3c-4ceb-a5e3-e4c8c7cf63d0/57/ab/57ab98e0-cd02-49da-ac90-0bb0971509a8.png",
+ "ownerId": "32ccc535-1c3c-4ceb-a5e3-e4c8c7cf63d0",
+ "people": Array [],
+ "resized": false,
+ "stackCount": null,
+ "tags": Array [],
+ "thumbhash": null,
+ "type": "IMAGE",
+ "updatedAt": "2024-05-19T00:01:29.287Z",
+ },
]
❯ src/api/specs/trash.e2e-spec.ts:60:22
|
src/api/specs/trash.e2e-spec.ts > /trash > POST /trash/restore/assets > should restore a trashed asset by id:
e2e/src/api/specs/trash.e2e-spec.ts#L82
Error: Error: 400
❯ Object.y [as ok] ../open-api/typescript-sdk/node_modules/@oazapfts/src/index.ts:71:9
❯ src/api/specs/trash.e2e-spec.ts:82:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 400, data: { message: 'Asset not found', error: 'Bad Request', statusCode: 400 }, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' } }
|
End-to-End Tests
Process completed with exit code 1.
|