Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(server): Add support for client-side hashing #2072

Merged
merged 98 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
96d6ecd
Modify controller DTOs
etnoy Mar 20, 2023
2b4e1dc
Merge branch 'main' into hashing
etnoy Mar 20, 2023
d4626fc
Can check duplicates on server side
etnoy Mar 20, 2023
560057c
Merge branch 'immich-app:main' into hashing
etnoy Mar 20, 2023
b805d5b
Merge branch 'hashing' of https://github.com/etnoy/immich into hashing
etnoy Mar 20, 2023
6456ebc
Remove deviceassetid and deviceid
etnoy Mar 22, 2023
8f46e49
Remove device ids from file uploader
etnoy Mar 22, 2023
5476488
Add db migration for removed device ids
etnoy Mar 22, 2023
8ecda9c
Merge branch 'immich-app:main' into hashing
etnoy Mar 22, 2023
666d300
Don't sanitize checksum
etnoy Mar 22, 2023
57ec3d5
Convert asset checksum to string
etnoy Mar 22, 2023
6e770f7
Make checksum not optional for asset
etnoy Mar 22, 2023
3927583
Merge remote-tracking branch 'origin/main' into hashing
etnoy Mar 22, 2023
59e9448
Use enums when rejecting duplicates
etnoy Mar 22, 2023
20f06b4
Cleanup
etnoy Mar 22, 2023
ba597f4
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 23, 2023
2662ee9
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 23, 2023
96abae7
Return of the device id, but optional
etnoy Mar 23, 2023
0cef85d
Don't use deviceId for upload folder
etnoy Mar 23, 2023
aa726d8
Use checksum in thumb path
etnoy Mar 23, 2023
b37e51d
Only use asset id in thumb path
etnoy Mar 23, 2023
b913067
Openapi generation
etnoy Mar 23, 2023
ee2866c
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 23, 2023
2a43bb9
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 24, 2023
07e9045
Put deviceAssetId back in asset response dto
etnoy Mar 24, 2023
3c2cc22
Add missing checksum in test fixture
etnoy Mar 24, 2023
f96c72e
Add another missing checksum in test fixture
etnoy Mar 24, 2023
fd3a68c
Cleanup asset repository
etnoy Mar 24, 2023
672ab9f
Add back previous /exists endpoint
etnoy Mar 24, 2023
783137e
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 24, 2023
d79f444
Require checksum to not be null
etnoy Mar 24, 2023
caed2a1
Correctly set deviceId in db
etnoy Mar 24, 2023
f67c884
Remove index
etnoy Mar 24, 2023
d1182b4
Fix compilation errors
etnoy Mar 24, 2023
465d44c
Make device id nullabel in asset response dto
etnoy Mar 24, 2023
a2de3ea
Reduce PR scope
etnoy Mar 24, 2023
ec6226b
Revert asset service
etnoy Mar 24, 2023
ca61c42
Reorder imports
etnoy Mar 24, 2023
77730f4
Reorder imports
etnoy Mar 24, 2023
214d59e
Reduce PR scope
etnoy Mar 24, 2023
136f5ba
Reduce PR scope
etnoy Mar 24, 2023
760c1d0
Reduce PR scope
etnoy Mar 24, 2023
180089f
Reduce PR scope
etnoy Mar 24, 2023
15f555d
Reduce PR scope
etnoy Mar 24, 2023
4717e65
Update openapi
etnoy Mar 24, 2023
911c06a
Reduce PR scope
etnoy Mar 24, 2023
13fa074
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 24, 2023
398ff9a
refactor: asset bulk upload check
jrasm91 Mar 24, 2023
deb8caa
chore: regenreate open-api
jrasm91 Mar 24, 2023
722b541
chore: fix tests
jrasm91 Mar 24, 2023
45ae3a5
chore: tests
jrasm91 Mar 24, 2023
9e136c1
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 26, 2023
a76d2d8
update migrations and regenerate api
michelheusschen Mar 27, 2023
ac63624
Feat: use checksum in web file uploader
etnoy Mar 27, 2023
a99c98e
Merge branch 'feat/client-side-hashing' of https://github.com/immich-…
etnoy Mar 27, 2023
7456925
Change to wasm-crypto
etnoy Mar 27, 2023
b347d85
Use crypto api for checksumming in web uploader
etnoy Mar 28, 2023
d90e5e8
Minor cleanup of file upload
etnoy Mar 28, 2023
5d6f1a6
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 28, 2023
ab20210
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 29, 2023
f28ed4e
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Mar 29, 2023
b1b9992
feat(web): pause and resume jobs
michelheusschen Mar 30, 2023
ad587fa
Merge branch 'feat/web-jobs-pause-resume' of https://github.com/immic…
etnoy Mar 30, 2023
3914891
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy Apr 12, 2023
2ad2933
Make device asset id not nullable again
etnoy Apr 12, 2023
8dba079
Cleanup
etnoy Apr 12, 2023
20554ae
Device id not nullable in response dto
etnoy Apr 12, 2023
19aaab3
Merge remote-tracking branch 'origin/main' into feat/client-side-hashing
etnoy May 17, 2023
8b1729f
Update API specs
etnoy May 17, 2023
a07496e
Bump api specs
etnoy May 17, 2023
dfe11a7
Remove old TODO comment
etnoy May 17, 2023
d6a8b12
Remove NOT NULL constraint on checksum index
etnoy May 17, 2023
0e2856e
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy May 19, 2023
45ea233
Fix requested pubspec changes
etnoy May 22, 2023
984d1d0
Remove unneeded import
etnoy May 22, 2023
fe6f829
Update server/apps/immich/src/api-v1/asset/asset.service.ts
etnoy May 22, 2023
9bd22c8
Update server/apps/immich/src/api-v1/asset/asset-repository.ts
etnoy May 22, 2023
d28215a
Remove unneeded check
etnoy May 22, 2023
8be87da
Update server/apps/immich/src/api-v1/asset/asset-repository.ts
etnoy May 22, 2023
d00c4f6
Remove hashing in the web uploader
etnoy May 22, 2023
0eea5c1
Merge branch 'feat/client-side-hashing' of https://github.com/immich-…
etnoy May 22, 2023
223b954
Cleanup file uploader
etnoy May 22, 2023
daa3f15
Remove varchar from asset entity fields
etnoy May 22, 2023
37f8c45
Return 200 from bulk upload check
etnoy May 22, 2023
67f6bc2
Put device asset id back into asset repository
etnoy May 22, 2023
576321c
Merge migrations
etnoy May 22, 2023
f264da6
Revert pubspec lock
etnoy May 22, 2023
c47fcb0
Update openapi specs
etnoy May 22, 2023
fd60e24
Merge branch 'main' of https://github.com/immich-app/immich into feat…
etnoy May 23, 2023
dcc53ca
Merge upstream changes
etnoy May 23, 2023
28e1258
Fix failing asset service tests
etnoy May 23, 2023
0311964
Fix formatting issue
etnoy May 23, 2023
40a32a6
Cleanup migrations
etnoy May 23, 2023
7d1368c
Remove newline from pubspec
etnoy May 23, 2023
9254d2b
Revert newline
etnoy May 23, 2023
5eb23da
Checkout main version
etnoy May 23, 2023
f0747a8
Revert again
etnoy May 23, 2023
e547e90
Only return AssetCheck
etnoy May 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions mobile/openapi/.openapi-generator/FILES

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions mobile/openapi/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions mobile/openapi/doc/AssetApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions mobile/openapi/doc/AssetBulkUploadCheckDto.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions mobile/openapi/doc/AssetBulkUploadCheckItem.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions mobile/openapi/doc/AssetBulkUploadCheckResponseDto.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions mobile/openapi/doc/AssetBulkUploadCheckResult.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions mobile/openapi/lib/api.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions mobile/openapi/lib/api/asset_api.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions mobile/openapi/lib/api_client.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 109 additions & 0 deletions mobile/openapi/lib/model/asset_bulk_upload_check_dto.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading