Page MenuHomePhabricator

[backup-client][native_rust_library] refactor uploading files to not ignore User Keys
ClosedPublic

Authored by kamil on Thu, Nov 14, 8:31 AM.
Tags
None
Referenced Files
F3405190: D13932.id45823.diff
Tue, Dec 3, 7:02 PM
Unknown Object (File)
Mon, Dec 2, 8:22 PM
Unknown Object (File)
Fri, Nov 29, 1:13 AM
Unknown Object (File)
Thu, Nov 28, 6:00 PM
Unknown Object (File)
Mon, Nov 25, 2:51 PM
Unknown Object (File)
Mon, Nov 25, 3:33 AM
Unknown Object (File)
Fri, Nov 22, 8:50 PM
Unknown Object (File)
Thu, Nov 21, 8:38 PM
Subscribers

Details

Summary

ENG-9656.

Previously, it was treating User Keys as additional data and was skipping upload, because User Keys were updated together with User Data Compaction. This diff refactors code to attempt compaction upload for any backup_id for which there is User Data, User Keys, or logs (but we don't generate logs now -> next diff).

Depends on D13931

Test Plan

Tested in D13937

Diff Detail

Repository
rCOMM Comm
Branch
publish-client-backup
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Fri, Nov 15, 2:23 AM
kamil added inline comments.
native/native_rust_library/src/backup/upload_handler.rs
165–167

not sure what is better, if this should be placed here when adding to Vec, or called only once before this loop

bartek added inline comments.
native/native_rust_library/src/backup/upload_handler.rs
165–167

I'm not sure if it makes any difference, it can stay here

This revision is now accepted and ready to land.Tue, Nov 19, 5:45 AM