Skip to main content

effective_priority

Function effective_priority 

Source
pub fn effective_priority(
    ticket: &Ticket,
    reverse_index: &HashMap<&str, Vec<&Ticket>>,
) -> u8
Expand description

Return the effective priority of a ticket: the max of its own priority and the priority of all direct and transitive dependents reachable via the reverse index. Uses a visited set to handle cycles safely.