Repository navigation
Proposal: a stable export manifest for migration tools #33306
Closed
Mason-Voss
started this conversation in
Feature Request
Replies: 1 comment
|
This discussion has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Every migration/export tool built against Immich has to answer the same three questions:
Today there are only two ways, and both are fragile:
The result is that every tool re-solves the same problem, badly, and breaks on every schema change.
Proposal
A single read-only endpoint that returns a manifest of exportable assets:
Streamed as NDJSON, one asset per line:
{ "assetId": "…", "originalFileName": "IMG_1234.HEIC", "originalPath": "/uploads/…", "capturedAt": "2024-05-01T10:00:00Z", "type": "IMAGE", "byteSize": 4321987, "checksum": "…", "albumIds": ["…"], "isLivePhotoVideo": false, "downloadUrl": "/api/assets/…/original" }Why this is worth doing
PRAGMA table_info.immich-go-style importers can use the same shape for verification and dry-run diffs.Scope
Deliberately minimal:
asset.read,album.read) are sufficient.Alternatives considered
What this would have changed for us
We built a one-way mirror from Immich into Apple Photos (55,924 assets). The single largest engineering cost was reconstructing exactly this inventory from the database — and re-validating it after the v3.2 → v3.3 schema change.
With this endpoint, the same job would have been: stream the manifest, fetch originals, done.
Written after migrating 55,924 assets out of a self-hosted Immich instance. Field notes: https://github.com/Mason-Voss/immich-to-apple-photos-notes
All reactions