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)
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
Unknown Object (File)
Nov 14 2024, 10:23 AM
Unknown Object (File)
Oct 27 2024, 6:01 AM
Unknown Object (File)
Oct 27 2024, 6:01 AM
Unknown Object (File)
Oct 27 2024, 6:00 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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

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

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

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

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