Iteration 2 plan - KhunakornP/ku-polls GitHub Wiki
Iteration 2 plans
Goals
For the second iteration of ku-polls, the goal of the iteration aims to improve page navigation as well as adding an end
date feature to polls, where when a poll reaches it's end date the poll can no longer be voted on but results can still be viewed.
Poll votes will now be restricted to one vote per user. Security will also be improved by externalizing configuration data.
Milestones
- Pages have working buttons such as a "previous page" button to help navigate pages.
- Poll questions now have an end date which prevents polls from receiving votes (but results can still be viewed).
- Main index page is more readable and better organized.
Features
- Pages have buttons for page navigation using a base template
- Visitors can vote on polls only once.
- When a user accesses the base URL they are redirected to the /index page.
- When a user tries to access a poll that does not exits or is not published,
they are returned to the index page with an error message. - Each poll has an end date which stops users from submitting additional votes.
- Buttons for accessing a poll's voting page and it's result page.
Acceptance criteria
- The website displays poll questions and users can only vote on polls which have not reached the end date.
- The website correctly displays navigational buttons and the buttons have a uniform template.
- Polls that have concluded can only have their votes viewed.
- Users who access invalid polls (poll has ended or otherwise) are redirected to the index page with an appropriate message.
- Unit tests are created for new methods.
- The main index page has different buttons for voting on polls and for viewing poll results for each poll.