Page MenuHomePhabricator

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

Authored by max on Sep 16 2022, 11:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 1:07 AM
Unknown Object (File)
Tue, Dec 3, 11:29 PM
Unknown Object (File)
Wed, Nov 27, 9:05 PM
Unknown Object (File)
Wed, Nov 27, 8:19 PM
Unknown Object (File)
Wed, Nov 27, 8:01 PM
Unknown Object (File)
Nov 23 2024, 11:39 PM
Unknown Object (File)
Oct 26 2024, 2:48 AM
Unknown Object (File)
Oct 26 2024, 2:48 AM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.