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

Add ability to migrate all data from one installation to another #170

Open
MrCsabaToth opened this issue Jun 30, 2021 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@MrCsabaToth
Copy link
Member

#169 would allow the migration of one workout, but ultimately it'd be great to migrate everything in one zipped file. This'd include calorie tunes, power tunes, device usages, leaderboard entries. Maybe even settings?

@MrCsabaToth MrCsabaToth added the enhancement New feature or request label Jun 30, 2021
@MrCsabaToth
Copy link
Member Author

Maybe I should just append the Activity CSV together into one file with a well known separator since I already have the code to export one. Then in the import side I could just split first and then invoke the import for each.

@MrCsabaToth
Copy link
Member Author

Regarding settings: Isar will export data in one JSON except the settings. If I'd replace settings with Isar (isar/isar#1066) then I'd need to implement the BasePrefService in https://github.com/DavBfr/flutter_pref/blob/master/pref/lib/src/service/base.dart using Isar if I want to keep using Pref's UI, or use a different UI. This would be a lot of work. I discovered that the said BasePrefService API provides a toMap and fromMap, which we can use to obtain all the settings and serialize it. That's the way to go: we can prepend this to the Isar JSON with some magic separator (like |||) and then upon import dissect it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant