feat(server): use prisma #18070
test.yml
on: pull_request
Docs
2m 48s
Server
1m 55s
CLI
19s
Web
1m 37s
End-to-End Tests
7m 22s
Mobile
1m 31s
Machine Learning
46s
ShellCheck
5s
OpenAPI Clients
36s
TypeORM Checks
1m 17s
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": "fab90bed-08d0-42c4-a5c1-464f2b70b80a",
"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-18T23:22:24.035Z",
+ "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-18T23:22:24.035Z",
+ "orientation": null,
+ "projectionType": null,
+ "state": null,
+ "timeZone": null,
+ },
+ "fileCreatedAt": "2024-05-18T23:22:24.035Z",
+ "fileModifiedAt": "2024-05-18T23:22:24.035Z",
+ "hasMetadata": true,
+ "id": "bf5ccd35-6a6e-4191-95d7-509df5d38d14",
+ "isArchived": false,
+ "isExternal": false,
+ "isFavorite": false,
+ "isOffline": false,
+ "isReadOnly": false,
+ "isTrashed": true,
+ "libraryId": "efbadf0d-f5bb-4da7-b394-29e9400db701",
+ "livePhotoVideoId": null,
+ "localDateTime": "2024-05-18T23:22:24.035Z",
+ "originalFileName": "example.png",
+ "originalPath": "upload/upload/87fdc234-44c2-4276-b438-cc31d6eacf59/5b/0e/5b0edcc9-646d-4231-b168-26ab84493646.png",
+ "ownerId": "87fdc234-44c2-4276-b438-cc31d6eacf59",
+ "people": Array [],
+ "resized": false,
+ "stackCount": null,
+ "tags": Array [],
+ "thumbhash": null,
+ "type": "IMAGE",
+ "updatedAt": "2024-05-18T23:22:24.042Z",
+ },
]
❯ 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.
|