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)
Fri, Sep 27, 4:32 AM
Unknown Object (File)
Fri, Sep 27, 4:32 AM
Unknown Object (File)
Fri, Sep 27, 4:32 AM
Unknown Object (File)
Fri, Sep 27, 4:31 AM
Unknown Object (File)
Aug 27 2024, 4:55 PM
Unknown Object (File)
Aug 26 2024, 5:08 AM
Unknown Object (File)
Aug 24 2024, 3:36 PM
Unknown Object (File)
Aug 24 2024, 3:12 PM

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