CSC/ECE 517 Fall 2014/OSS E1466 gjf

From Expertiza_Wiki
Revision as of 18:50, 25 October 2014 by Sxu11 (talk | contribs)
Jump to navigation Jump to search

E1466: Refactoring GradesController

This wiki deals with our implementation of a controller in expertiza: [grade_controller https://github.com/expertiza/expertiza/blob/rails4/app/controllers/grades_controller.rb] for the Expertiza Project using Ruby on Rails.This class lists the grades of all the participants for an assignments and also their reviews. The instructor can edit scores, calculate penalties and send emails for conflicts.


Introduction

Expertiza is a web application where students can submit and peer-review learning objects (articles, code, web sites, etc). It is used in select courses at NC State and by professors at several other colleges and universities.

Project Description


Classes involved: grades_controller.rb What needs to be done:

  • Modify calculate_all_penalties method which is too complex and long.
  • Put the get_body_text method in a mailer rather than in the grades_controller.
  • Refactor conflict_nofication method to conflict_email and make it delegated to the mailer.
  • Refactor view_my_scores method to grades_show and delete the unnecessary variables.
  • Try not to query for reviews and meta reviews in grades_show method.

Screenshots

Future Scope

Goals

Appendix

References