Swapsea/swapsea

Patrol position sort order broken

Closed this issue · 1 comments

Following the refactor for foreign key, the sort order for patrol members by position has broken.
/rosters/:id/patrol

This is because it was using the default_position on the user table, but that column has gone in case a member is on >1 Patrol (in >1 club)

Desired order to be taken from the patrol, (to be refactored out of views into a model)
"Patrol Captain", "Patrol Vice Captain", "Vice Captain", "Patrol Application Captain", "IRB Driver", "IRB Crew", "ART Operator", "ART Member", "First Aid Officer", "First Aid Member", "Bronze Member", "Member", "SRC Member", "SRC"

Closed by #212