Page MenuHomePhabricator

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

Authored by kamil on Nov 14 2024, 8:31 AM.
Tags
None
Referenced Files
F3513510: D13932.id46010.diff
Sun, Dec 22, 12:25 AM
F3513508: D13932.id45823.diff
Sun, Dec 22, 12:25 AM
F3513450: D13932.id.diff
Sun, Dec 22, 12:24 AM
F3513420: D13932.diff
Sun, Dec 22, 12:23 AM
Unknown Object (File)
Mon, Dec 16, 12:28 PM
Unknown Object (File)
Mon, Dec 9, 10:54 PM
Unknown Object (File)
Wed, Dec 4, 6:00 PM
Unknown Object (File)
Wed, Dec 4, 4:53 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Nov 15 2024, 2:23 AM
kamil added inline comments.
native/native_rust_library/src/backup/upload_handler.rs
165–167 ↗(On Diff #45823)

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 ↗(On Diff #45823)

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

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