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

Conversation

etnoy
Copy link
Contributor

@etnoy etnoy commented Mar 24, 2023

This is the first major PR related to client side hashing. Here, we focus on getting the server-side plumbing done.

@vercel
Copy link

vercel bot commented Mar 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
immich ⬜️ Ignored (Inspect) Visit Preview May 23, 2023 9:02pm

@etnoy etnoy marked this pull request as draft March 24, 2023 10:44
@bo0tzz
Copy link
Member

bo0tzz commented Mar 24, 2023

Mobile apps don't do hashing yet

Is it worth doing that in a separate PR, to keep review sizes down?

Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the scope of this PR has changed a lot over time. It'd be good to update the description to match what's actually being changed here. From what I can tell it is:

  • New server endpoint for checking for duplicates via checksum
  • No changes to how mobile uploads work
  • Removing unique check from web
  • Updating checksum column to be non-nullable

If that is all that is changing, we should remove any unrelated changes, like changes to get the objects and locations for user.

server/libs/infra/src/entities/asset.entity.ts Outdated Show resolved Hide resolved
server/libs/infra/src/entities/asset.entity.ts Outdated Show resolved Hide resolved
web/src/lib/utils/file-uploader.ts Show resolved Hide resolved
server/apps/immich/src/api-v1/asset/asset-repository.ts Outdated Show resolved Hide resolved
server/apps/immich/src/api-v1/asset/asset-repository.ts Outdated Show resolved Hide resolved
mobile/pubspec.lock Outdated Show resolved Hide resolved
server/apps/immich/src/api-v1/asset/asset-repository.ts Outdated Show resolved Hide resolved
web/src/lib/utils/file-uploader.ts Show resolved Hide resolved
@etnoy etnoy dismissed michelheusschen’s stale review May 23, 2023 21:18

The review has been handled but github still shows it as a requested change, I'm closing it

@alextran1502 alextran1502 changed the title Add support for client-side hashing feat(server): Add support for client-side hashing May 24, 2023
@alextran1502 alextran1502 merged commit 1b54c4f into main May 24, 2023
17 checks passed
@alextran1502 alextran1502 deleted the feat/client-side-hashing branch May 24, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants