Skip to main content

Module manager_gaps

Module manager_gaps 

Source
Expand description

Project groups without an active manager (issue #173, step 7).

A group whose managers have all left or been deactivated can be managed by administrators only, and nobody notices: no one releases a leaver’s locks, adds the new members or confirms the access review. list shows such groups to administrators, together with the groups whose only active managers have shown no activity for STALE_DAYS; alert_admins (hourly housekeeping) tells the administrators once per gap.

Structs§

ManagerGap
An active project group without a present manager.

Constants§

STALE_DAYS
Active managers with no sign-in and no token use for this many days do not count as present (the stale threshold of the access review).

Functions§

alert_admins
Tells the active administrators about each group that has newly lost its last present manager, once per gap: the group is marked (projects.manager_gap_alerted_at) and the mark is cleared when the group has a present manager again, so a later gap is reported anew. Returns the number of groups reported. Run by the hourly housekeeping.
list
Active project groups without an active manager, or whose active managers have shown no activity for STALE_DAYS.
to_json
The gaps as JSON for pages and the API, with their kind.