Scoring & Grading Methods (Fall '21)

From Expertiza_Wiki
Revision as of 17:20, 5 November 2021 by Nnhimes (talk | contribs)
Jump to navigation Jump to search

Scoring and Grading was given a refactor in the Fall of 2021. This doc page describes the key files, methods, and how to use them.


Files Affected

assignment_helper.rb

Methods used in on_the_fly_calc were merged into this file as part of the refactor, since any previous calls to the methods took place through an instance of assignment. There is currently an attempt to further abstract these methods in assignment_helper.rb so that assignment is passed as a parameter (instead of using self).

The following methods in assignment_helper are part of the Scoring and Grading refactor:

  • compute_total_score(scores): When called with assignment.compute_total_score(scores) (such as in assignment_team.rb), it will sum the weighted scores of each questionnaire in an assignment using the scores passed to it and return the total.



Significant Pull Requests

These are the pull requests responsible for the refactor: