pub fn attained_candidates(
existing: &[RegistryAttainment],
) -> Vec<&RegistryAttainment>Expand description
The attainments a new one must improve on: every entry on the student and course code that is not
failed, matching the scope Suotar’s own import checks against.
Suotar excludes a misregistered entry by a flag this endpoint does not pass through to us, so an
unrecognised state counts as a real attainment rather than being whitelisted away: undercounting
here risks a duplicate Sisu registration, which is worse than the reverse.