~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The `eject` event kind is never written, and an eject's reason is lost

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

eventView.kind lists eject, but the only writers of mod_event are label (label/negate), resolve_subject (resolve/escalate/note) and create_report (report). eject_member calls put_out and records nothing, and the reason its lexicon takes (and opensocial membership eject --reason sends, crates/opensocial/src/lib.rs:447-448) is read by nobody. A moderator reading the lexicon expects an ejection, with its reason, in a member's history; getSubjectHistory never shows one.

How to see it

Read against docs/fresh at 4636e6d, the code at: lexicons/fyi/opensocial/defs.json:79 (eventView.kind); crates/group-host/src/group_members.rs:460-482; ejectMember.json:26. Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Either note an eject event on the member's DID (actor, reason) in the group's queue when eject_member succeeds, or take eject out of the known values and say in ejectMember.json that the reason is not kept (the schemas are not yet published, so either is allowed).

Where

The host, as built from 4636e6d. Found while checking the docs against the code.