Skip to content

Iteration 2 Plan

Thanida Chaiwongnon edited this page Sep 5, 2023 · 2 revisions

Goal

The KU polls has more functionality and quality of life features such as the home button. Sensitive data should also be externalized and the code should be tested through automatic unit tests.

Features

  1. Polls has a closing date. Post-end date voting is not permitted.
  2. User can examine results without voting or return to the polls list screen at any time.
  3. Can vote and is published methods for the question have unit tests.
  4. If a user enters the URL of an unpublished poll, they will be informed that the poll is closed and will be directed back to the poll list.
  5. Unit testing should be automated.
  6. Put code and delicate configuration data apart.
  7. Poll results and detail pages should be formatted better. Collapse items into columns.
  8. Redirect users to the polls index and show an error message on the index page.

Tasks

  1. Externalize some configurations in settings.py.
  2. add end_date property, add can_vote method, add is_published method
  3. Add Unit tests
  4. Implement new features
  5. Rearrange the present template's layout to make it more attractive.

Evaluation

  1. Only votes cast between the publish date and the end date are allowed.
  2. The Home button appropriately takes the user back to the page with the polls list.
  3. Externalizing sensitive settings
  4. The layout is appealing, and the user interface is simple to use.
  5. All test should be passed.
Clone this wiki locally