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
Unknown Object (File)
Thu, Nov 14, 10:23 AM
Unknown Object (File)
Sun, Oct 27, 6:01 AM
Unknown Object (File)
Sun, Oct 27, 6:01 AM
Unknown Object (File)
Sun, Oct 27, 6:00 AM
Unknown Object (File)
Sun, Oct 27, 5:58 AM
Unknown Object (File)
Sep 28 2024, 2:27 PM
Unknown Object (File)
Sep 28 2024, 2:25 PM
Unknown Object (File)
Sep 27 2024, 4:32 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