Roles column in list views of user-defined types
User-defined types (e.g. books :authors) show a Roles column in the list view even with :list-form (:fields t). The column is not model-declared: fe-fields (backend.lisp) synthesizes a :roles checkbox-list field for every non-base, non-:suppress-roles type, and its non-base-roles-field clause forces it into every form — even a form whose :fields list doesn't name :roles. It's admin plumbing on ordinary app screens.
Fix in the backend, not the frontend: the schema stays authoritative (the frontend hard-codes no field lists), and /api/list is a first-class surface for API / marketplace consumers.
show-roles-palready takes FORM and ignores it; make it return nil for:list-formunless:rolesis explicitly in that form's:fieldslist (symmetry with base:users, which lists:rolesby name).- Keep
:rolesvalues in the record payload (add-roles-to-viewfor non-list forms, or ungated). The inline edit form populates from the list record; stripping values there makes a plain edit save clear the record's resource roles (update-roles's otherwise branch diffs against the submitted list — the D12 reattach trap's cousin). - Decide separately whether the add form should also drop the Roles palette (a new record has no resource yet; hard to pick roles for a row that doesn't exist).
- Slot
- 14100
- Status
- 10 Open
- Tags
- backend, frontend, model
- Contributors
- Donnie