[checklist] Refactoring of checklist

Review Request #7176 - Created April 7, 2015 and submitted

Wang Jun Sun
rb-extension-pack
7099
7248
2124492...
rb-extension-pack, students

Refactoring includes

  • Use of request.user instead of passing user_id in every HTTP request
  • Updating of the view only after successful API response
  • Renamed status of each item from finished to checked
  • Use of ChecklistItem non-database resource API instead of using HTTP request parameters
  • Moving of front-end API logic from view to model
  • CSS hyphens everywhere instead of underscores
  • Improving Python code (renaming variables, removing redundant code)
  • Start checklist item IDs from 0 instead of 1.

Basic CRUD functionality remains. Ensured that the views will not update unless there is a successful response from the server.

  • 0
  • 0
  • 60
  • 1
  • 61
Description From Last Updated
Wang Jun Sun
Review Bot
Wang Jun Sun
Review Bot
Barret Rennie
Wang Jun Sun
Review Bot
Wang Jun Sun
Review Bot
Barret Rennie
Wang Jun Sun
Review Bot
Barret Rennie
Wang Jun Sun
Review Bot
Barret Rennie
Wang Jun Sun
Review Bot
David Trowbridge
Wang Jun Sun
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (27afa78)
Loading...