-
Notifications
You must be signed in to change notification settings - Fork 255
feat(backup)_: implement remaining backups and tests #6671
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
feat(backup)_: implement remaining backups and tests #6671
Conversation
@@ -35,6 +35,8 @@ message Backup { | |||
FetchingBackedUpDataDetails watchOnlyAccountDetails = 14; | |||
repeated SyncChat chats = 15; | |||
FetchingBackedUpDataDetails chatsDetails = 16; | |||
repeated SyncSetting settings = 17; | |||
repeated SyncAccount watchOnlyAccounts = 18; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think when this feature is all done, we can remove the old "single" properties or at least deprecate them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah keeping both doesn't make sense 💯
But I think it might better to do it right away, because it's not really related to the local backup feature 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have this task to clean up all Waku backup stuff when the feature is done and the feature flag enabled by default: status-im/status-desktop#18123
I planned on doing the removal of those old protos then, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's fine yes
It's a big diff, but most of it is tests 😄 |
Jenkins BuildsClick to see older builds (36)
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/poc-local-backup #6671 +/- ##
==========================================================
+ Coverage 28.10% 60.22% +32.11%
==========================================================
Files 794 831 +37
Lines 100520 103667 +3147
==========================================================
+ Hits 28253 62433 +34180
+ Misses 67914 33671 -34243
- Partials 4353 7563 +3210
Flags with carried forward coverage won't be shown. Click here to find out more.
|
88a5531
to
26f9fbd
Compare
b347fc1
to
449c41c
Compare
26f9fbd
to
315cfe0
Compare
449c41c
to
810241f
Compare
315cfe0
to
76af0e3
Compare
@@ -35,6 +35,8 @@ message Backup { | |||
FetchingBackedUpDataDetails watchOnlyAccountDetails = 14; | |||
repeated SyncChat chats = 15; | |||
FetchingBackedUpDataDetails chatsDetails = 16; | |||
repeated SyncSetting settings = 17; | |||
repeated SyncAccount watchOnlyAccounts = 18; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah keeping both doesn't make sense 💯
But I think it might better to do it right away, because it's not really related to the local backup feature 🤔
protocol/messenger_local_backup.go
Outdated
_, settings, errors := m.prepareSyncSettingsMessages(clock, true) | ||
if len(errors) != 0 { | ||
// return just the first error, the others have been logged | ||
return errors[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_, settings, errors := m.prepareSyncSettingsMessages(clock, true) | |
if len(errors) != 0 { | |
// return just the first error, the others have been logged | |
return errors[0] | |
_, settings, errs := m.prepareSyncSettingsMessages(clock, true) | |
if len(errors) != 0 { | |
return errors.Join(errs) |
or even better to join the errors inside prepareSyncSettingsMessages
810241f
to
a9d669c
Compare
76af0e3
to
2941baa
Compare
a9d669c
to
917104b
Compare
Fixes status-im/status-desktop#18120 Implements the missing user data like watch only accounts and settings. Implements tests to validate.
2941baa
to
4505816
Compare
Replaced by #6722 |
Fixes status-im/status-desktop#18120
Implements the missing user data like watch only accounts and settings.
Implements tests to validate.
I skipped the keypairs since I'm waiting on confirmation whether we want to just get rid of it.