Skip to main content

should_auto_push_index

Function should_auto_push_index 

Source
pub fn should_auto_push_index(
    auto_index: bool,
    logged_in: bool,
    local_index_exists: bool,
    last_push_for_project: Option<&str>,
    today: &str,
) -> bool
Expand description

Whether the background index push should run for this project (GL #392): separate opt-in, logged in, a local index actually exists, and this project hasn’t pushed today. Pure for unit testing.