Expand description
Item owners and the hand-over of a leaving user’s work (issue #152, step 7).
set_item_owner: the owner of an item (default: its creator) can be changed by the managers of the item’s project group and by administrators. The new owner must be an active CAD editor or administrator who may read the item.hand_over: an administrator moves everything a user holds to another user in one transaction: item ownerships, draft (and rejected) change orders they authored, open change requests assigned to them and their pending reviews. The result lists what was moved and what was skipped with the reason (for example a review the new person may not do under the four-eyes principle). Every object gets its own audit entry.
The lists are bounded (MAX_PER_KIND per kind and run); truncated
says that another run is needed.
Structs§
- Handover
Entry - One object that was moved (or skipped).
- Handover
Report
Constants§
- MAX_
PER_ KIND - Most objects of one kind that one hand-over moves.
Functions§
- hand_
over - Moves the work of
fromtoto. - owner_
candidates - Users who can become the owner of an item of
project_id: active CAD editors and administrators who may read it, by name. - set_
item_ owner - Changes the owner of an item.