Page MenuHomePhabricator

[services] Tunnelbroker - Add `updateSessionItemIsOnline` database method
ClosedPublic

Authored by max on Sep 16 2022, 11:51 AM.
Tags
None
Referenced Files
F1807805: D5165.diff
Tue, May 21, 7:33 AM
Unknown Object (File)
Sat, May 18, 7:03 AM
Unknown Object (File)
Sat, May 18, 7:03 AM
Unknown Object (File)
Sat, May 18, 7:03 AM
Unknown Object (File)
Sat, May 18, 7:03 AM
Unknown Object (File)
Sat, May 18, 7:01 AM
Unknown Object (File)
Fri, May 17, 6:33 PM
Unknown Object (File)
Fri, May 3, 1:00 PM

Details

Summary

This diff introduces adding of updateSessionItemIsOnline database method.

To send notifications if the device is offline we need to distinguish the device state. To do this we will ping the device and change the device status (online/offline) in the IsOnline field (D5164) using the introduced method.

More context is available in the Linear task description.

Related Linear task: ENG-1766

Test Plan
  1. Successfully built.
  2. Passed a unit test in D5166.

Diff Detail

Repository
rCOMM Comm
Branch
add-update-online-method
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max edited the test plan for this revision. (Show Details)
max added a reviewer: tomek.
tomek added inline comments.
services/tunnelbroker/src/Database/DatabaseManager.cpp
109–110 ↗(On Diff #16775)

We're not updating checkpoint time

This revision is now accepted and ready to land.Sep 19 2022, 6:02 AM
max added inline comments.
services/tunnelbroker/src/Database/DatabaseManager.cpp
109–110 ↗(On Diff #16775)

We're not updating checkpoint time

Wow, sorry about that. I'll fix this. Thanks @tomek ;)

max marked an inline comment as done.

Rebased on parent changes. Error message was fixed.