Page MenuHomePhabricator

[lib] Update genesis.id to use authoritativeKeyserverID
ClosedPublic

Authored by inka on Feb 9 2024, 7:52 AM.
Tags
None
Referenced Files
F3538692: D11011.id37351.diff
Wed, Dec 25, 11:43 PM
F3538419: D11011.id37507.diff
Wed, Dec 25, 10:53 PM
F3537593: D11011.id37004.diff
Wed, Dec 25, 10:02 PM
Unknown Object (File)
Tue, Dec 24, 5:06 AM
Unknown Object (File)
Tue, Dec 24, 5:06 AM
Unknown Object (File)
Tue, Dec 24, 5:06 AM
Unknown Object (File)
Tue, Dec 24, 5:06 AM
Unknown Object (File)
Tue, Dec 24, 5:06 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-6727/use-authoritativekeyserverid-in-genesis
GENESIS is the community holding DMs and thick threads for now. We want to have one GENESIS in our setups, hosted by the authoritative keyserver

Test Plan

Tested on web and native that it is possible to create a thick thread, and no errors show up.
Checked on web that the created chat has parentThreadID: "256|1", where 256 is the value of authoritativeKeyserverID in my setup.
That checks that gnesis.id is set properly, because of code in lib/actions/thread-actions.js newTread action, which if not provided a parentThreadID uses genesis.id (I made sure that was the case)

Diff Detail

Repository
rCOMM Comm
Branch
inka/testing_multikeyservers
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Feb 9 2024, 8:07 AM
tomek added inline comments.
lib/facts/genesis.js
13
This revision is now accepted and ready to land.Feb 12 2024, 1:19 AM

Turn genesis into a funtion - in lib we cannot call authoritativeKeyserverID top level, because configs are not registered yet

inka requested review of this revision.Feb 20 2024, 4:40 AM
tomek added inline comments.
keyserver/src/database/migration-config.js
605–607 ↗(On Diff #37351)

Why was the formatting changed?

This revision is now accepted and ready to land.Feb 21 2024, 1:37 AM
keyserver/src/database/migration-config.js
605–607 ↗(On Diff #37351)

This code was over 80 characters