Module filters

Module filters 

Source
Expand description

Contains functions to filter and group TimeLog.

Functionsยง

filter_by_date
Filter the TimeLog by date and return an iterator. The dates are both inclusive.
filter_by_last_n_days
Returns the time logs in the last X days. The number of days is specified as Duration. 1 day is the current day, 2 days is today and yesterday.
group_by_filter
Groups a list of nodes by a given filter. Returns an Iterator over a BTreeMap.
group_by_label
Group the TimeLogs by labels and return an iterator. Note that items with multiple labels are included multiple times. Items with no labels are included in the label other_label, if set.
group_by_milestone
Filter the TimeLog by milestone and returns an iterator over (Option<&Milestone>, Vec<&TimeLog>).
group_by_trackable_item
Group the TimeLog by trackable item (Issue/MR) and return an iterator.
group_by_type
Group the TimeLog by type (Issue/MR) and return an iterator. Will return a String containing the type name. Because TrackableItemKind is an enum where each variant carries data, it is not sensible to group directly on this type, because if the data inside is different, it counts as a different element.
group_by_user
Groups a slice of nodes by their user and returns a iterator over a BTreeMap.
total_time_spent
Returns the total time spent on the project.
total_time_spent_by_user
Returns the total time spent on the project by every user.