Skip to content

Second Elections PR #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Second Elections PR #105

wants to merge 7 commits into from

Conversation

EarthenSky
Copy link
Collaborator

@EarthenSky EarthenSky commented Apr 11, 2025

For #25

Finalize elections backend. Support self-registration & return speeches from GET elections/by_name/{slug} endpoint

TODOs:

  • test every endpoint at least once
  • add more examples to the test db

@EarthenSky
Copy link
Collaborator Author

@gunmack I've added 7 more API endpoints, which handle uploading personal info & registering in elections. This should be everything we need for the elections pages!

It now also returns speeches and personal info for a person. There are a reasonable number of special cases, but the important ones are as follows:

  • you can only register, or modify/delete your registration for an election during the nomination period
  • registration will be rejected if you have not first provided nominee info. This means that, after logging into the website through SFU's authentication, a user will have to provide their legal name in order to register (if they have not already done so).

You may want to read the code in this PR to see what format the data will be returned as, but I can help clarify as well, so feel free to ask me any questions!

whew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant