CSC/ECE 517 Fall 2014/OSS E1466 gjf: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
=E1466: Refactoring GradesController=
==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.
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.

Revision as of 18:51, 25 October 2014

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