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

fix(server): new full sync return stacked assets individually #9189

Merged
merged 6 commits into from May 14, 2024

Conversation

fyfrey
Copy link
Contributor

@fyfrey fyfrey commented Apr 30, 2024

fixes the issue that stacked child assets are not returned in large list (only as children of the parent).

Also returns archived partner assets to be backwards compatible to the getAllAssets endpoint.

Needed for #8842

mobile app expects all assets to be returned regardless of their stacked status

Copy link

cloudflare-pages bot commented Apr 30, 2024

Deploying immich with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8dfebb4
Status: ✅  Deploy successful!
Preview URL: https://16d35088.immich.pages.dev
Branch Preview URL: https://fix-new-full-sync-return-sta.immich.pages.dev

View logs

@@ -710,11 +710,11 @@ export class AssetRepository implements IAssetRepository {
],
})
getAllForUserFullSync(options: AssetFullSyncOptions): Promise<AssetEntity[]> {
const { ownerId, isArchived, withStacked, lastCreationDate, lastId, updatedUntil, limit } = options;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you remove with stacked from the options interface then?

@fyfrey fyfrey marked this pull request as draft May 1, 2024 09:09
@fyfrey fyfrey marked this pull request as ready for review May 10, 2024 07:03
@fyfrey fyfrey requested a review from alextran1502 May 10, 2024 07:06
@alextran1502
Copy link
Contributor

Fynn, I think we need to fix the tests as well, correct?

@fyfrey
Copy link
Contributor Author

fyfrey commented May 10, 2024

Fynn, I think we need to fix the tests as well, correct?

Yes, I'll fix them. But it would be good to know beforehand if the sync method now works for your "test" instance ;-)

@alextran1502 alextran1502 merged commit 4d7aa7e into main May 14, 2024
23 checks passed
@alextran1502 alextran1502 deleted the fix/new-full-sync-return-stacked-assets branch May 14, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants