Repository navigation
feat(client-workflow): watch-upload/watch-download, check-remote-exists, per-file progress (closes #39) - #42
Merged
Merged
Conversation
…ts, per-file progress (closes #39)
Preview binaries (commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #39: polling folder watch in both directions, per-file byte progress on stderr, and the native bulk-upload-check command.
New commands
assets check-remote-exists(aliascheck-bulk-upload):POST /assets/bulk-upload-checkas[FILE|DIR ...]with--json/--ids-only/--duplicates-only/--missing-only; strict accept→missing / reject+duplicate+assetId→uploaded / else unsupported. Read-only.client-workflow watch-upload --watch-dir --mode flat|by-subfolder --tag-pattern "{yyyy-MM-dd}" --album-id|--album-name(opt-in) --interval 60s --stable-for 10s --once --dry-run --yes: stability gate (size+mtime, sidecar.immich-watch-upload.json), bulk-check-first, duplicates only linked.--onceforces--stable-for 0s(uploads immediately); re-runs reportalready-done=N.client-workflow watch-download (--album-id|--album-name|--tag-id|--tag-value) --target-dir --size --interval 300s --once --dry-run: loop around the sync manifest (now.immich-sync.json, migrates legacy.immich-album-sync.json), album or tag source.Also
io.Pipe, no RAM buffering) + typedDuplicateUploadError.ByteProgress(TTY in-place bar, plain lines when piped/--json/--quiet) wired into upload, download-original/thumbnail, download-album/--sync, repair, both watches.--interval <=0means run once; per-interval one-line summaries; readable album-add errors (duplicatealready-in-album is benign, same buckets asalbums add-assets); README table 28/250 + SKILL.md regenerated.Verify
go generate ./... && go build ./... && go test ./... && go vet ./...green (243 passed).preview-binariescomment / Actions → Artifacts), orgh run download.