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)
Sat, Apr 6, 3:57 PM
Unknown Object (File)
Fri, Apr 5, 4:19 AM
Unknown Object (File)
Mar 28 2024, 1:04 PM
Unknown Object (File)
Mar 17 2024, 5:00 PM
Unknown Object (File)
Mar 2 2024, 5:40 AM
Unknown Object (File)
Mar 2 2024, 5:40 AM
Unknown Object (File)
Mar 2 2024, 5:40 AM
Unknown Object (File)
Mar 2 2024, 5:40 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.