Skip to content

Iteration 3 Plan

Pakorn Laohakanniyom edited this page Sep 20, 2022 · 6 revisions

Goal

Add user authentication feature and Change the app from "anyone can vote" to "1 vote per 1 authorized user."

Features

  1. visitor can login and logout.
  2. Only an authenticated user can submit a vote.
  3. Anyone can view the list of polls and poll results.
  4. A user can change vote on a poll during the voting period.
  5. If a user selects a poll they already voted for, the list of choices shows which choice they previously selected.
  6. Add a link to “Login” or “Logout” to the polls index page.

Milestone

  • Users can login and logout.
  • Logged-in users can vote, but allowed only 1 vote per poll. User can change their vote on a poll.

Tasks

All tasks should be recorded on Task Board for Iteration 3.

  1. authenticated user can submit a vote
  2. add login/logout
  3. add user demo
  4. add user can modify vote feature
  5. Write unit tests to test new features.

Acceptance Criteria

  1. Application can be logged in and logged out.
  2. Only authenticated users can vote and change their votes.
  3. Anyone can view the list of polls and poll results.
  4. Application passes all unit tests.

Retrospective

What went well

successfully implemented with all the requirements. Users can login and logout. Authenticated users can vote only 1 vote per poll and they can change they choice after submit.

What didn't go well

I have problem with radio button and about result of the vote during development.

What did I learn

I have learn more a lot of Django and HTML

What to improve

  • Study more about HTML