feat(server): library refresh go brrr #27990
Annotations
27 errors and 1 warning
Run tsc
Argument of type 'ILibraryAssetsJob' is not assignable to parameter of type 'ILibraryBulkIdsJob'.
|
Run tsc
Argument of type 'ILibraryAssetsJob' is not assignable to parameter of type 'ILibraryBulkIdsJob'.
|
Run tsc
Argument of type 'ILibraryAssetsJob' is not assignable to parameter of type 'ILibraryBulkIdsJob'.
|
Run tsc
Argument of type 'ILibraryAssetsJob' is not assignable to parameter of type 'ILibraryBulkIdsJob'.
|
Run tsc
Argument of type 'ILibraryAssetsJob' is not assignable to parameter of type 'ILibraryBulkIdsJob'.
|
Run tsc
Argument of type 'ILibraryAssetsJob' is not assignable to parameter of type 'ILibraryBulkIdsJob'.
|
Run tsc
Argument of type 'ILibraryAssetsJob' is not assignable to parameter of type 'ILibraryBulkIdsJob'.
|
Run tsc
Object literal may only specify known properties, and 'id' does not exist in type 'ILibraryFileJob'.
|
Run tsc
Object literal may only specify known properties, and 'id' does not exist in type 'ILibraryFileJob'.
|
Run tsc
Object literal may only specify known properties, and 'id' does not exist in type 'ILibraryFileJob'.
|
Run linter:
server/src/interfaces/library.interface.ts#L1
'ADDED_IN_PREFIX' is defined but never used
|
Run linter:
server/src/services/library.service.ts#L463
Missing braces in case clause
|
Run linter:
server/src/services/library.service.ts#L466
Missing braces in case clause
|
Run linter:
server/src/services/library.service.ts#L472
Use `.length > 0` when checking length is not zero
|
Run linter:
server/src/services/library.service.ts#L479
Use `.length > 0` when checking length is not zero
|
Run linter:
server/src/services/library.service.ts#L645
Do not access a member directly from an await expression
|
Run linter
Process completed with exit code 1.
|
Run small tests & coverage:
server/src/services/library.service.spec.ts#L180
AssertionError: expected "spy" to be called with arguments: [ [ { …(2) } ] ]
Received:
Number of calls: 0
❯ src/services/library.service.spec.ts:180:32
|
Run small tests & coverage:
server/src/services/library.service.ts#L176
BadRequestException: Library library-id not found
❯ LibraryService.getStatistics src/services/library.service.ts:176:13
❯ LibraryService.handleQueueSyncAssets src/services/library.service.ts:645:25
❯ src/services/library.service.spec.ts:230:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { message: 'Library library-id not found', error: 'Bad Request', statusCode: 400 }, status: 400, options: {}, initCause: 'Function<initCause>', initMessage: 'Function<initMessage>', initName: 'Function<initName>', getResponse: 'Function<getResponse>', getStatus: 'Function<getStatus>' }
|
Run small tests & coverage:
server/src/services/library.service.spec.ts#L261
AssertionError: expected 'success' to be 'skipped' // Object.is equality
Expected: "skipped"
Received: "success"
❯ src/services/library.service.spec.ts:261:7
|
Run small tests & coverage:
server/src/services/library.service.spec.ts#L278
AssertionError: expected "spy" to be called with arguments: [ [ 'asset-id' ], …(1) ]
Received:
Number of calls: 0
❯ src/services/library.service.spec.ts:278:35
|
Run small tests & coverage:
server/src/services/library.service.spec.ts#L294
AssertionError: expected "spy" to be called with arguments: [ [ 'asset-id' ], …(1) ]
Received:
Number of calls: 0
❯ src/services/library.service.spec.ts:294:35
|
Run small tests & coverage:
server/src/services/library.service.spec.ts#L312
AssertionError: expected "spy" to be called with arguments: [ [ 'asset-id' ], …(1) ]
Received:
Number of calls: 0
❯ src/services/library.service.spec.ts:312:35
|
Run small tests & coverage:
server/src/services/library.service.spec.ts#L345
AssertionError: expected "spy" to be called with arguments: [ [ 'asset-id' ], …(1) ]
Received:
Number of calls: 0
❯ src/services/library.service.spec.ts:345:35
|
Run small tests & coverage:
server/src/services/library.service.spec.ts#L368
AssertionError: expected "spy" to be called with arguments: [ [ 'asset-id' ], { …(5) } ]
Received:
Number of calls: 0
❯ src/services/library.service.spec.ts:368:33
|
Run small tests & coverage:
server/src/services/library.service.spec.ts#L403
AssertionError: expected [ [ { ownerId: 'admin_id', …(12) } ] ] to deeply equal [ [ { ownerId: 'admin_id', …(12) } ] ]
- Expected
+ Received
Array [
Array [
Object {
"checksum": Any<Buffer>,
"deviceAssetId": Any<String>,
"deviceId": "Library Import",
"fileCreatedAt": Any<Date>,
"fileModifiedAt": Any<Date>,
"isExternal": true,
- "libraryId": "library-id",
+ "libraryId": undefined,
"localDateTime": Any<Date>,
"originalFileName": "photo.jpg",
"originalPath": "/data/user1/photo.jpg",
"ownerId": "admin_id",
"sidecarPath": null,
"type": "IMAGE",
},
],
]
❯ src/services/library.service.spec.ts:403:43
|
Run small tests & coverage:
server/src/services/library.service.spec.ts#L450
AssertionError: expected [ [ { ownerId: 'admin_id', …(12) } ] ] to deeply equal [ [ { ownerId: 'admin_id', …(12) } ] ]
- Expected
+ Received
Array [
Array [
Object {
"checksum": Any<Buffer>,
"deviceAssetId": Any<String>,
"deviceId": "Library Import",
"fileCreatedAt": Any<Date>,
"fileModifiedAt": Any<Date>,
"isExternal": true,
- "libraryId": "library-id",
+ "libraryId": undefined,
"localDateTime": Any<Date>,
"originalFileName": "photo.jpg",
"originalPath": "/data/user1/photo.jpg",
"ownerId": "admin_id",
"sidecarPath": "/data/user1/photo.jpg.xmp",
"type": "IMAGE",
},
],
]
❯ src/services/library.service.spec.ts:450:43
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading