Scoring & Grading Methods (Fall '21): Difference between revisions
Jump to navigation
Jump to search
(Add significant pull requests) |
No edit summary |
||
Line 4: | Line 4: | ||
== Files Affected == | == 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: | |||
*[https://github.com/expertiza/expertiza/pull/2039 Refactor on_the_fly_calc] | |||
*[https://github.com/expertiza/expertiza/pull/2038 Refactor scores in assignment and participant] | |||
*[https://github.com/expertiza/expertiza/pull/2029 Grade refactoring] | |||
*[https://github.com/expertiza/expertiza/pull/2017 Answer refactoring] |
Revision as of 17:20, 5 November 2021
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: