Skip to main content

Module ownership

Module ownership 

Source
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§

HandoverEntry
One object that was moved (or skipped).
HandoverReport

Constants§

MAX_PER_KIND
Most objects of one kind that one hand-over moves.

Functions§

hand_over
Moves the work of from to to.
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.