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

putRole silently drops `bot` and `assignable` when they are left out

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

default and repoCollections keep their earlier value when omitted (and the lexicon says so). bot and assignable are reset. Re-sending admin with a new name and its actions, but no assignable, leaves admins unable to give, admit or eject anyone. Every NotAssignable, because their assignable is now empty. The console's role form (web/src/routes/g/[handle]/settings/+page.server.ts:103) never sends bot, so saving an existing bot role through it un-marks the bots.

How to see it

Read against docs/fresh at 4636e6d, the code at: group_members.rs:261, 286. Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Treat bot and assignable as default is treated (omitted keeps the current value), and say so in putRole.json.

Where

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