isClubRep should be a live attribute #65

Open
opened 3 months ago by merenber · 0 comments
Owner

Currently the is_club_rep function (in ceod/model/utils.py) uses the maximum of a user's members and non-member terms to determine whether they are a club rep or not. This is incorrect - we should only look at whether the user has a non-member term entry for the current term.

This implies that the isClubRep LDAP attribute should be automatically updated at the beginning of every term. We should create a new API endpoint (e.g. /api/members/updateisclubrep) which will get called on a cron job (like we already do for the shadowExpire attribute).

Currently the `is_club_rep` function (in ceod/model/utils.py) uses the maximum of a user's members and non-member terms to determine whether they are a club rep or not. This is incorrect - we should only look at whether the user has a non-member term entry for the current term. This implies that the isClubRep LDAP attribute should be automatically updated at the beginning of every term. We should create a new API endpoint (e.g. `/api/members/updateisclubrep`) which will get called on a cron job (like we already do for the shadowExpire attribute).
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: public/pyceo#65
Loading…
There is no content yet.