1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-01 08:31:59 +00:00
immich/server/test/repositories
Jonathan Jogenfors 363c558db7
fix(server): don't crash when refreshing large libraries (#7934)
* add job to check for offline files

* fix lint

* only check for offline when using checkForOffline

* improve tests

* remove old test

* wip

* remove trie

* refactor batches

* also check offline status

* fix spelling

* don't do offline scan

* rename scan to check

* fix job statuses

* fix lint

* cleanup

* add test

* open-api

* fix test

* fix spinner

* reset text

* don't double batch

* fix comments from mert

* remove tries

* fix tests

* fix e2e

* fix test

* fix test

* add tests

* fix lint

* fix e2e

* interweave scans

* fix errors

* fix messages

* fix test

* add mock

* fix sql

* fix e2e

* use library batch size

* save -> update

* add file extensions

* update specs

* test for import paths

* check import paths when testing offline

* fix lint

* normalize import path

* remove console logs

* decrease batch size to 1000

* add test for import path

* add test for already-online assets

* fix merge

* fix lint

* add library job back

* add offline job to correct queue

* library spec compiles now

* move one test to new e2e

* fix comments

* fix comments

* fix lint

* refactor path validation

* fix loop bug

* remove logging

* expect responses

* fix asset mock

* take the straightforward approach

* use generator correctly

* fix vitest on file edit

* bump vitest to 1.6.0

* test for offline check

* add e2e tests for offlining assets depending on import path

* cleanup e2e test after finish

* cleanup library service

* paginate the walk generator

* fix tests

* fix typo

* refactoring handleOfflineCheck

* better testing of handleOfflineCheck

* fix lint

* handle large library deletions

* dont check if library is deleted

* fix mock

* add a 100k page size to library

* fix loading animation

* better log messages

* Better logging for offline asset removal

* fix sql and tests

* fix number format

* Remove submodule

* fix format

* chore: cleanup

* chore: fix tests

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
Co-authored-by: Jason Rasmussen <jason@rasm.me>
2024-08-28 13:05:48 -04:00
..
access.repository.mock.ts refactor: access core (#11930) 2024-08-20 07:49:56 -04:00
activity.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
album-user.repository.mock.ts feat: readonly album sharing (#8720) 2024-04-25 04:19:49 +00:00
album.repository.mock.ts refactor(server): remove has asset (#10891) 2024-07-05 15:10:11 -04:00
api-key.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
asset.repository.mock.ts feat: folder view (#11880) 2024-08-21 13:49:37 -05:00
audit.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
crypto.repository.mock.ts feat(server): user and server license endpoints (#10682) 2024-07-01 17:43:16 +00:00
database.repository.mock.ts refactor(server): startup checks for vector extension (#11559) 2024-08-05 21:00:25 -04:00
event.repository.mock.ts refactor(server): event emits (#10648) 2024-06-27 15:54:20 -04:00
job.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
library.repository.mock.ts fix(server): don't crash when refreshing large libraries (#7934) 2024-08-28 13:05:48 -04:00
logger.repository.mock.ts feat(server): run microservices in worker thread (#9426) 2024-05-14 15:28:20 +01:00
machine-learning.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
map.repository.mock.ts refactor(server)!: move markers and style to dedicated map endpoint/controller (#9832) 2024-05-29 11:51:01 -04:00
media.repository.mock.ts feat(server): optimize person thumbnail generation (#7513) 2024-05-08 08:09:34 -05:00
memory.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
metadata.repository.mock.ts refactor(server)!: move markers and style to dedicated map endpoint/controller (#9832) 2024-05-29 11:51:01 -04:00
metric.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
move.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
notification.repository.mock.ts feat(server): email notifications (#8447) 2024-05-02 15:43:18 +01:00
partner.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
person.repository.mock.ts feat(server): conditionally run facial recognition nightly (#11080) 2024-07-14 22:53:42 +00:00
search.repository.mock.ts refactor(server): add config events for clip (#11575) 2024-08-04 21:00:36 +00:00
server-info.repository.mock.ts chore: build metadata (#10612) 2024-06-26 08:25:09 -04:00
session.repository.mock.ts feat(server): remove inactive sessions (#9121) 2024-04-27 16:45:16 -04:00
shared-link.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
stack.repository.mock.ts refactor(server): stacks (#11453) 2024-08-19 12:37:15 -05:00
storage.repository.mock.ts fix(server): follow symlinks when zipping assets (#11685) 2024-08-13 11:39:24 -04:00
system-metadata.repository.mock.ts feat(server): user and server license endpoints (#10682) 2024-07-01 17:43:16 +00:00
tag.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
user.repository.mock.ts feat(server): user and server license endpoints (#10682) 2024-07-01 17:43:16 +00:00