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

feature(mobile): no longer wait for background backup in settings #1984

Merged
merged 2 commits into from
Mar 18, 2023

Conversation

fyfrey
Copy link
Contributor

@fyfrey fyfrey commented Mar 12, 2023

  • migrate all Hive boxes required for the backup process to Isar
  • the Isar database can be safely used from multiple isolates -> allow main (UI) isolate to be active while background backup is running, merge backup album changes if needed
  • foreground backup and background backup still wait on each other via the locking mechanism (makes no sense / produces errors if both would run concurrently)
  • does not alter the backup logic

@vercel
Copy link

vercel bot commented Mar 12, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated
immich ⬜️ Ignored (Inspect) Mar 17, 2023 at 9:13PM (UTC)

@fyfrey fyfrey requested a review from martyfuhry March 12, 2023 15:34
Copy link
Contributor

@martyfuhry martyfuhry left a comment

Choose a reason for hiding this comment

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

Looks nice! I need to try this branch out on my own device. Is there anything in particular you'd like me to test?

mobile/lib/modules/backup/providers/backup.provider.dart Outdated Show resolved Hide resolved
mobile/lib/modules/backup/providers/backup.provider.dart Outdated Show resolved Hide resolved
@fyfrey
Copy link
Contributor Author

fyfrey commented Mar 14, 2023

Looks nice! I need to try this branch out on my own device. Is there anything in particular you'd like me to test?

Nothing in particular. Just use the app I guess

@fyfrey fyfrey force-pushed the dev/migrate-backup-hive-to-isar branch 2 times, most recently from 06fadd6 to 2766015 Compare March 15, 2023 21:41
@fyfrey fyfrey requested a review from martyfuhry March 17, 2023 20:40
Fynn Petersen-Frey added 2 commits March 17, 2023 22:12
migrate all Hive boxes required for the backup process to Isar
@fyfrey fyfrey force-pushed the dev/migrate-backup-hive-to-isar branch from 2766015 to abd6fa9 Compare March 17, 2023 21:13
@alextran1502 alextran1502 merged commit 05cf5d5 into main Mar 18, 2023
@alextran1502 alextran1502 deleted the dev/migrate-backup-hive-to-isar branch March 18, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants