immich/server/libs/domain/test
Jonathan Jogenfors 1b54c4f8e7
feat(server): Add support for client-side hashing (#2072)
* Modify controller DTOs

* Can check duplicates on server side

* Remove deviceassetid and deviceid

* Remove device ids from file uploader

* Add db migration for removed device ids

* Don't sanitize checksum

* Convert asset checksum to string

* Make checksum not optional for asset

* Use enums when rejecting duplicates

* Cleanup

* Return of the device id, but optional

* Don't use deviceId for upload folder

* Use checksum in thumb path

* Only use asset id in thumb path

* Openapi generation

* Put deviceAssetId back in asset response dto

* Add missing checksum in test fixture

* Add another missing checksum in test fixture

* Cleanup asset repository

* Add back previous /exists endpoint

* Require checksum to not be null

* Correctly set deviceId in db

* Remove index

* Fix compilation errors

* Make device id nullabel in asset response dto

* Reduce PR scope

* Revert asset service

* Reorder imports

* Reorder imports

* Reduce PR scope

* Reduce PR scope

* Reduce PR scope

* Reduce PR scope

* Reduce PR scope

* Update openapi

* Reduce PR scope

* refactor: asset bulk upload check

* chore: regenreate open-api

* chore: fix tests

* chore: tests

* update migrations and regenerate api

* Feat: use checksum in web file uploader

* Change to wasm-crypto

* Use crypto api for checksumming in web uploader

* Minor cleanup of file upload

* feat(web): pause and resume jobs

* Make device asset id not nullable again

* Cleanup

* Device id not nullable in response dto

* Update API specs

* Bump api specs

* Remove old TODO comment

* Remove NOT NULL constraint on checksum index

* Fix requested pubspec changes

* Remove unneeded import

* Update server/apps/immich/src/api-v1/asset/asset.service.ts

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>

* Update server/apps/immich/src/api-v1/asset/asset-repository.ts

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>

* Remove unneeded check

* Update server/apps/immich/src/api-v1/asset/asset-repository.ts

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>

* Remove hashing in the web uploader

* Cleanup file uploader

* Remove varchar from asset entity fields

* Return 200 from bulk upload check

* Put device asset id back into asset repository

* Merge migrations

* Revert pubspec lock

* Update openapi specs

* Merge upstream changes

* Fix failing asset service tests

* Fix formatting issue

* Cleanup migrations

* Remove newline from pubspec

* Revert newline

* Checkout main version

* Revert again

* Only return AssetCheck

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
2023-05-24 16:08:21 -05:00
..
album.repository.mock.ts feat(server): improve and refactor get all albums (#2048) 2023-03-25 21:46:48 -05:00
api-key.repository.mock.ts refactor(server): use cascades for keys and tokens (#2544) 2023-05-23 15:40:04 -05:00
asset.repository.mock.ts feat(server): pagination for asset queries in jobs (#2516) 2023-05-22 13:05:06 -05:00
communication.repository.mock.ts refactor(server): media service (#2051) 2023-03-23 21:40:46 -05:00
crypto.repository.mock.ts feat(server): move authentication to tokens stored in the database (#1381) 2023-01-27 14:50:07 -06:00
face.repository.mock.ts feat: facial recognition (#2180) 2023-05-17 12:07:17 -05:00
fixtures.ts feat(server): Add support for client-side hashing (#2072) 2023-05-24 16:08:21 -05:00
global-setup.js Fix timezone mismatch in server tests (#1918) 2023-03-16 09:02:40 -05:00
index.ts feat: facial recognition (#2180) 2023-05-17 12:07:17 -05:00
job.repository.mock.ts feat(server/web): jobs clear button + queue status (#2144) 2023-04-01 15:46:07 -05:00
machine-learning.repository.mock.ts feat: facial recognition (#2180) 2023-05-17 12:07:17 -05:00
media.repository.mock.ts feat: facial recognition (#2180) 2023-05-17 12:07:17 -05:00
partner.repository.mock.ts feat (server, web): Share with partner (#2388) 2023-05-15 12:30:53 -05:00
person.repository.mock.ts feat: facial recognition (#2180) 2023-05-17 12:07:17 -05:00
search.repository.mock.ts feat: facial recognition (#2180) 2023-05-17 12:07:17 -05:00
setup.ts refactor(server): jobs and processors (#1787) 2023-02-25 08:12:03 -06:00
shared-link.repository.mock.ts refactor(server): shared links (#1385) 2023-01-25 10:35:28 -06:00
smart-info.repository.mock.ts refactor(server): jobs and processors (#1787) 2023-02-25 08:12:03 -06:00
storage.repository.mock.ts refactor: server-info (#2038) 2023-03-21 21:49:19 -05:00
system-config.repository.mock.ts refactor(server): system config (#1353) 2023-01-21 10:11:55 -06:00
user-token.repository.mock.ts refactor(server): use cascades for keys and tokens (#2544) 2023-05-23 15:40:04 -05:00
user.repository.mock.ts feat(web,server): user storage label (#2418) 2023-05-21 23:18:10 -04:00