Skip to content

feat: adding photo & video storage space to server stats #27101

feat: adding photo & video storage space to server stats

feat: adding photo & video storage space to server stats #27101

Re-run triggered November 13, 2024 20:31
Status Failure
Total duration 4m 10s
Artifacts

test.yml

on: pull_request
Test & Lint Server
1m 56s
Test & Lint Server
Unit Test CLI
0s
Unit Test CLI
Unit Test CLI (Windows)
0s
Unit Test CLI (Windows)
Test & Lint Web
2m 14s
Test & Lint Web
End-to-End Lint
0s
End-to-End Lint
Medium Tests (Server)
2m 0s
Medium Tests (Server)
End-to-End Tests (Server & CLI)
3m 26s
End-to-End Tests (Server & CLI)
End-to-End Tests (Web)
3m 19s
End-to-End Tests (Web)
Unit Test Mobile
0s
Unit Test Mobile
Unit Test ML
0s
Unit Test ML
Fit to window
Zoom out
Zoom in

Annotations

13 errors
OpenAPI Clients
Process completed with exit code 1.
TypeORM Checks
Process completed with exit code 1.
TypeORM Checks
Process completed with exit code 1.
Test & Lint Server
Type '{ userId: string; userName: string; photos: number; videos: number; usage: number; quotaSizeInBytes: number; }' is missing the following properties from type 'UserStatsQueryResponse': usagePhotos, usageVideos
Test & Lint Server
Type '{ userId: string; userName: string; photos: number; videos: number; usage: number; quotaSizeInBytes: number; }' is missing the following properties from type 'UserStatsQueryResponse': usagePhotos, usageVideos
Test & Lint Server
Type '{ userId: string; userName: string; photos: number; videos: number; usage: number; quotaSizeInBytes: number; }' is missing the following properties from type 'UserStatsQueryResponse': usagePhotos, usageVideos
Test & Lint Server
Process completed with exit code 2.
src/services/server.service.spec.ts > ServerService > getStats > should total up usage by user: server/src/services/server.service.spec.ts#L208
AssertionError: expected ServerStatsResponseDto{ …(6) } to deeply equal { photos: 120, videos: 31, …(2) } - Expected + Received - Object { + ServerStatsResponseDto { "photos": 120, "usage": 1123455, "usageByUser": Array [ - Object { + UsageByUserDto { "photos": 10, "quotaSizeInBytes": 0, "usage": 12345, + "usagePhotos": undefined, + "usageVideos": undefined, "userId": "user1", "userName": "1 User", "videos": 11, }, - Object { + UsageByUserDto { "photos": 10, "quotaSizeInBytes": 0, "usage": 123456, + "usagePhotos": undefined, + "usageVideos": undefined, "userId": "user2", "userName": "2 User", "videos": 20, }, - Object { + UsageByUserDto { "photos": 100, "quotaSizeInBytes": 0, "usage": 987654, + "usagePhotos": undefined, + "usageVideos": undefined, "userId": "user3", "userName": "3 User", "videos": 0, }, ], + "usagePhotos": NaN, + "usageVideos": NaN, "videos": 31, } ❯ src/services/server.service.spec.ts:208:7
Test & Lint Server
Process completed with exit code 1.
Test & Lint Server
Process completed with exit code 1.
Test & Lint Web
Process completed with exit code 1.
src/api/specs/server.e2e-spec.ts > /server > GET /server/statistics > should return the server stats: e2e/src/api/specs/server.e2e-spec.ts#L163
AssertionError: expected { photos: +0, videos: +0, …(4) } to deeply equal { photos: +0, usage: +0, …(2) } - Expected + Received Object { "photos": 0, "usage": 0, "usageByUser": Array [ Object { "photos": 0, "quotaSizeInBytes": null, "usage": 0, + "usagePhotos": 0, + "usageVideos": 0, "userId": "5a192e0d-1059-4803-8117-9c7d4f0efc5e", "userName": "Immich Admin", "videos": 0, }, Object { "photos": 0, "quotaSizeInBytes": null, "usage": 0, + "usagePhotos": 0, + "usageVideos": 0, "userId": "4411a57d-07ba-4f5a-bfb0-aabb6f0a2e4b", "userName": "User 1", "videos": 0, }, ], + "usagePhotos": 0, + "usageVideos": 0, "videos": 0, } ❯ src/api/specs/server.e2e-spec.ts:163:20
End-to-End Tests (Server & CLI)
Process completed with exit code 1.