You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a SetPrivacyMode(ctx, mode) error to the RoomConfig interface
Add a new table by creating a new file in sqlite/migrations (probably 3-room-config.sql)
(the increasing numbers are just a convention to understand the order better)
Run bash ./generate-models.sh in roomdb/sqlite to update the models package
Start using the generated model of the new table to implement RoomConfig
and of course:
TESTS!!
The text was updated successfully, but these errors were encountered:
Documentation
https://ssb-ngi-pointer.github.io/rooms2/#stakeholders
https://ssb-ngi-pointer.github.io/rooms2/#privacy-modes
https://ssb-ngi-pointer.github.io/rooms2/#participation
background:
#12
implementation implications
The room server needs to support the three modes (open, community, restricted).
Areas where privacy mode needs to be considered:
remaining
the following tasks are what remains. they may be implemented in #100 or in a separate follow-up pr
muxrpc/test/go
verifying open mode behaviourmoved to Test open privacy mode behaviour #199ideas
First round: start server with a command line flag for the target privacy mode, expose in the interface what the current privacy mode is
☑️ add
type RoomConfig interface { ... }
to package roomdb but do not implement it in sqlite in the first pass of things.where
type PrivacyMode
similar to roomdb.RoleMember enum etcWhat actions are regulated by the privacy mode, and where?
https://github.com/ssb-ngi-pointer/go-ssb-room/blob/07feacb5587e2baa912b8203909cf41fa6f0a672/web/handlers/admin/invites.go#L47
https://github.com/ssb-ngi-pointer/go-ssb-room/blob/07feacb5587e2baa912b8203909cf41fa6f0a672/roomsrv/init_network.go#L30
https://github.com/ssb-ngi-pointer/go-ssb-room/blob/07feacb5587e2baa912b8203909cf41fa6f0a672/muxrpc/handlers/tunnel/server/state.go#L60
how to get the role of a member:
https://github.com/ssb-ngi-pointer/go-ssb-room/blob/07feacb5587e2baa912b8203909cf41fa6f0a672/web/handlers/admin/members.go#L81-L86
later (persistence)
SetPrivacyMode(ctx, mode) error
to theRoomConfig
interfacesqlite/migrations
(probably 3-room-config.sql)(the increasing numbers are just a convention to understand the order better)
bash ./generate-models.sh
inroomdb/sqlite
to update themodels
packageRoomConfig
and of course:
The text was updated successfully, but these errors were encountered: