Skip to content

Split site-selection endpoints to their own module#61

Open
eemeli wants to merge 5 commits intomasterfrom
siteselect
Open

Split site-selection endpoints to their own module#61
eemeli wants to merge 5 commits intomasterfrom
siteselect

Conversation

@eemeli
Copy link
Copy Markdown
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 site-select@example.com 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