MDL-40547 added marking allocation and workflow to
mod_assign_get_assignments