Page MenuHomePhabricator

[services] Backup - receive device id when creating new backup
ClosedPublic

Authored by karol on May 23 2022, 2:46 AM.
Tags
None
Referenced Files
F3765266: D4099.diff
Sat, Jan 11, 3:10 PM
Unknown Object (File)
Fri, Dec 27, 11:04 AM
Unknown Object (File)
Wed, Dec 25, 5:41 PM
Unknown Object (File)
Wed, Dec 25, 6:26 AM
Unknown Object (File)
Sun, Dec 15, 8:48 AM
Unknown Object (File)
Sun, Dec 15, 8:48 AM
Unknown Object (File)
Sun, Dec 15, 8:48 AM
Unknown Object (File)
Sun, Dec 15, 8:44 AM

Details

Summary

As discussed in https://phabricator.ashoat.com/D4028#115409, we need to receive the device id from the client in order to properly generate the backup id.

Test Plan

You can use my repo grpc-playground, this commit adds the device id.

Diff Detail

Repository
rCOMM Comm
Branch
pass-device-id
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

karol edited the test plan for this revision. (Show Details)
karol added reviewers: tomek, ashoat.
tomek added inline comments.
native/cpp/CommonCpp/grpc/protos/backup.proto
31–37

At some point we should stop modifying the existing fields and only add a new ones.

services/backup/src/Reactors/server/CreateNewBackupReactor.cpp
23–38

I think it was discussed a couple of times, but having to send these one by one isn't too effective

This revision is now accepted and ready to land.May 23 2022, 4:09 AM
services/backup/src/Reactors/server/CreateNewBackupReactor.cpp
23–38

I believe this is the task for this https://linear.app/comm/issue/ENG-1052/reconsider-using-oneof-in-services.

I think we can do this separately.

ashoat added inline comments.
services/backup/src/Reactors/server/CreateNewBackupReactor.cpp
23–38

It would be good to prioritize this task, but I agree it doesn't make sense to change in this diff