Page MenuHomePhabricator

[services][backup] CreateBackup 2/3 - handle non-data inputs
ClosedPublic

Authored by bartek on Jan 9 2023, 4:03 AM.
Tags
None
Referenced Files
F3506540: D6198.id20670.diff
Fri, Dec 20, 5:13 PM
F3500493: D6198.id20706.diff
Fri, Dec 20, 1:44 AM
F3497612: D6198.diff
Thu, Dec 19, 7:26 PM
Unknown Object (File)
Wed, Dec 18, 11:11 PM
Unknown Object (File)
Wed, Dec 18, 11:01 PM
Unknown Object (File)
Sat, Dec 14, 2:28 AM
Unknown Object (File)
Sat, Nov 30, 1:02 AM
Unknown Object (File)
Sat, Nov 30, 1:02 AM
Subscribers

Details

Summary

This diff adds logic for processing non-data inputs (handler non-data-mode). After all of them are provided,
backup ID is generated and the put client is initialized and handler switches to "data mode", which is implemented in child diff.

Depends on D6197

Test Plan

The service builds and starts. Logic of this diff can be tested altogether with the child diff - see the description there.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jan 9 2023, 5:35 AM
tomek added inline comments.
services/backup/src/service/handlers/create_backup.rs
56 ↗(On Diff #20706)

Should we log user id?

142–143 ↗(On Diff #20706)

It seems like we can conclude that we're in data mode just by checking if blob_client is present. But maybe it will change in the future diffs.

This revision is now accepted and ready to land.Jan 11 2023, 9:38 PM
services/backup/src/service/handlers/create_backup.rs
56 ↗(On Diff #20706)

We shouldn't: https://phab.comm.dev/D6247#187227
I'll remove this

  • Rebase, changed is_data_mode boolean to enum
  • Removed logging user_id