Page MenuHomePhabricator

[keyserver] refactor olm session creator
AbandonedPublic

Authored by varun on Oct 2 2023, 7:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 25, 2:06 AM
Unknown Object (File)
Wed, Dec 25, 2:06 AM
Unknown Object (File)
Wed, Dec 25, 2:02 AM
Unknown Object (File)
Sun, Dec 22, 10:35 PM
Unknown Object (File)
Sun, Dec 1, 3:15 AM
Unknown Object (File)
Nov 27 2024, 8:35 AM
Unknown Object (File)
Nov 27 2024, 5:34 AM
Unknown Object (File)
Nov 15 2024, 8:36 AM
Subscribers

Details

Reviewers
marcin
Summary

we need separate functions for creating and storing olm sessions because we may not know the cookie ID at creation time

Depends on D9334

Test Plan

registered a new device on the keyserver and confirmed the notif olm session was stored in my mariadb instance

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Oct 2 2023, 8:05 PM

@marcin should be back tomorrow, but might need some time to catch up on things... might be good to add another reviewer to this

we need separate functions for creating and storing olm sessions because we may not know the cookie ID at creation time

What is the example of such situation?

registered a new device on the keyserver and confirmed the notif olm session was stored in my mariadb instance

This should test that createAndStoreOlmSession works properly. How would you test that separate methods to create and store session work properly? Perhaps you should execute a scenario when session is needed before we have cookieID?