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

Revert "Manage WorkManager: One Running Worker to upload a Batch of Files" #277

Merged
merged 7 commits into from
Apr 30, 2024

Conversation

dinitri
Copy link
Member

@dinitri dinitri commented Oct 11, 2023

Reverts #226

@dinitri dinitri requested a review from zfir October 17, 2023 15:38
Copy link
Member

@zfir zfir left a comment

Choose a reason for hiding this comment

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

Revert good. Only one point

@@ -8,7 +8,7 @@
import androidx.room.TypeConverters;
import androidx.work.Data;

@Database(entities = {UploadEvent.class, PendingUpload.class}, version = 4)
@Database(entities = {UploadEvent.class}, version = 3)
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure here if you can downgrade the database directly like this

https://developer.android.com/training/data-storage/room/migrating-db-versions#handle-missing-migrations

We should use a fallback method

Copy link
Member Author

@dinitri dinitri Oct 18, 2023

Choose a reason for hiding this comment

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

if we set it to version 5 should be good right ? @zfir

@dinitri dinitri merged commit 9ab0c91 into master Apr 30, 2024
1 of 2 checks passed
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