1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-06 03:46:47 +01:00
immich/server/test/repositories
Mert 64636c0618
feat(server): near-duplicate detection (#8228)
* duplicate detection job, entity, config

* queueing

* job panel, update api

* use embedding in db instead of fetching

* disable concurrency

* only queue visible assets

* handle multiple duplicateIds

* update concurrent queue check

* add provider

* add web placeholder, server endpoint, migration, various fixes

* update sql

* select embedding by default

* rename variable

* simplify

* remove separate entity, handle re-running with different threshold, set default back to 0.02

* fix tests

* add tests

* add index to entity

* formatting

* update asset mock

* fix `upsertJobStatus` signature

* update sql

* formatting

* default to 0.03

* optimize clustering

* use asset's `duplicateId` if present

* update sql

* update tests

* expose admin setting

* refactor

* formatting

* skip if ml is disabled

* debug trash e2e

* remove from web

* remove from sidebar

* test if ml is disabled

* update sql

* separate duplicate detection from clip in config, disable by default for now

* fix doc

* lower minimum `maxDistance`

* update api

* Add and Use Duplicate Detection Feature Flag (#9364)

* Add Duplicate Detection Flag

* Use Duplicate Detection Flag

* Attempt Fixes for Failing Checks

* lower minimum `maxDistance`

* fix tests

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>

* chore: fixes and additions after rebase

* chore: update api (remove new Role enum)

* fix: left join smart search so getAll works without machine learning

* test: trash e2e go back to checking length of assets is zero

* chore: regen api after rebase

* test: fix tests after rebase

* redundant join

---------

Co-authored-by: Nicholas Flamy <30300649+NicholasFlamy@users.noreply.github.com>
Co-authored-by: Zack Pollard <zackpollard@ymail.com>
Co-authored-by: Zack Pollard <zack@futo.org>
2024-05-16 18:08:37 +01:00
..
access.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -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 chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
api-key.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
asset-stack.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
asset.repository.mock.ts feat(server): near-duplicate detection (#8228) 2024-05-16 18:08:37 +01:00
audit.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
crypto.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
database.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
event.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
job.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
library.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -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
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 chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -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 chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
search.repository.mock.ts feat(server): near-duplicate detection (#8228) 2024-05-16 18:08:37 +01: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
storage.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
system-info.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
system-metadata.repository.mock.ts refactor(server): system config (#9517) 2024-05-15 18:58:23 -04:00
tag.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
user.repository.mock.ts chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00