Skip to content
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

Split site-selection endpoints to their own module #61

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

eemeli
Copy link
Member

@eemeli eemeli commented Sep 8, 2018

This builds on #60, and should only be merged after that. This is a bit of a work-in-progress, so this branch may get rebased on occasionally.

The REST API changes a little here, as what used to be GET people/:id/ballot is now GET siteselect/:id/ballot, and it no longer requires that a token has been purchased (this is the endpoint that returns a form-filled PDF ballot). Site-selection admins may now also fetch a member's ballot.

In order for the (newly added) tests to pass consistently, the reset_test_users() postgres function now also sets the [email protected] user's key.

There are a couple of integration points for site-selection actions that are not included in this module (token generation, transactional email contents, /config/siteselection). Not sure whether those should be pulled in here as well, and if so, how exactly.

@eemeli eemeli force-pushed the siteselect branch 3 times, most recently from 679e681 to 66bff81 Compare September 10, 2018 00:24
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