Skip to content
New issue

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

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

Already on GitHub? # to your account

Change ballot title to election name #19

Merged
merged 10 commits into from
Mar 4, 2018

Conversation

rye
Copy link
Contributor

@rye rye commented Mar 3, 2018

This PR changes the ballot title to the election name and also incorporates some sanity checks and flow tweaks.

Closes #11.
Involves #12.
Closes #13.

rye added 9 commits March 3, 2018 14:17
This might need to be refactored later.

[GitHub] See #18 for more.
This was a bit of a fun one to solve---redirecting to @ballot then
triggers a "You do not have the ability to access this resource."
error, which is what sticks.  So, users would submit a ballot,
immediately be directed to the #show action on that ballot, and then
be immediately redirected back to the root url with an error message.
(But only if they weren't admin.)

[GitHub] This commit resolves #11.
This might not be rendered yet---I'd have to add a print for that.
Now that we have the sanity check to prevent people from opening the
form for a nonexistent election, we can make this change.
This will be accessible to everyone, and is more usable anyhow.
This lets not-logged-in people see any notices.
@rye rye self-assigned this Mar 3, 2018
@rye rye requested a review from erichkauffman March 3, 2018 20:33
Copy link

@erichkauffman erichkauffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rye
Copy link
Contributor Author

rye commented Mar 3, 2018

I'm gonna set up CI before I merge this one, so I don't have to keep rebuilding this locally.

@rye rye added this to the Version 1 milestone Mar 3, 2018
@rye rye mentioned this pull request Mar 3, 2018
@rye
Copy link
Contributor Author

rye commented Mar 4, 2018

Merging.

@rye rye merged commit 5c000fa into master Mar 4, 2018
@rye rye deleted the change-ballot-title-to-election-name branch March 4, 2018 00:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants