Allow renewing and adding new users by number of terms #75
In the CEO API, currently you have to specify exactly what terms to add in
It would be better, if there was an extra option (similar to the GUI), where in addition to "terms" and "non_member_terms", there also is "number_of_terms" and possibly "number_of_non_member" terms. These options would be integers and would renew/create member for that many number of terms.
It should be straightforward, since get_terms_for_new_user, get_terms_for_renewal already exist in https://git.csclub.uwaterloo.ca/public/pyceo/src/branch/master/ceo/term_utils.py#L11, and the API would have to modified here to use them https://git.csclub.uwaterloo.ca/public/pyceo/src/branch/master/ceod/api/members.py
Say if a user has terms
and current term is
should adding 1 term add
get_terms_for_renewal would be
w2023 so I'll make it do that.
get_terms_for_renewal function is written for client so is not suitable for server side use
w2023so I'll make it do that.
No, it would be
f2022. See https://git.csclub.uwaterloo.ca/public/pyceo/src/branch/master/ceo/term_utils.py#L35.
@r389li, Yep, once this is deployed, it will remove that blocker for the membership webpage.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?