Expand description
Revisions: attributes, check-out/check-in, revise and obsolete.
Structs§
Enums§
- Release
- How
cancel_checkoutwould treat the actor and the revision’s lock.
Constants§
- RELEASE_
REASON_ MAX - Longest reason for releasing a check-out.
- RELEASE_
REASON_ MIN - Shortest reason for releasing an active member’s check-out.
Functions§
- cancel_
checkout - Releases the edit lock without uploading anything (“cancel check-out”).
Administrators may release locks of other users, managers of the item’s
group those of users who are gone: no longer members (who cannot release
them themselves once a restricted group hides the revision) or
deactivated. A check-in with new file versions is
files::check_in; the bulk release for one holder ischeckouts::release_held. - check_
release_ reason - Checks a release reason as
cancel_checkoutwould (400), for callers that release many check-outs with one reason. - checked_
out_ by - Revisions currently checked out by the actor (only those it may still
read: a user who left a restricted group asks a manager of the group or
an admin to cancel them, see
cancel_checkout). - checkout
- Takes the exclusive edit lock of an in-work revision.
- ensure_
checkout_ possible - Fails unless
actorcould work onrev: project access, revision in work and not checked out by somebody else (the precondition for checking out). - ensure_
editable - Fails unless
actormay modifyrevright now: everything ofensure_checkout_possibleand the revision is checked out by the actor. Every change to attributes, files and BOM requires the lock. - ensure_
project_ access - Fails unless
actormay change data of the revision’s project: CAD editor (or admin) and member of the item’s project group. A revision the actor may not even read answers “not found”, so the message below (which names the group) never reaches outsiders of restricted groups. - get
- A revision the actor may read; hidden ones answer like missing ones.
- get_
by_ code - A revision of an item by its code (
A,B, …), if the actor may read it. - label
- Human readable label such as
PRT-000042/B. - may_
cancel_ checkout - For pages: whether
cancel_checkoutwould release the revision’s lock without a reason. - obsolete
- Marks a released revision as obsolete.
- release_
rule - For pages: whether and how
cancel_checkoutwould release the revision’s lock. - revise
- Creates the next revision of an item, copying attributes, files and BOM
lines from revision
id. Only possible when the item has no open revision. - state_
of - update
- Changes name, description, material, mass, cost and custom attributes of a revision.